On Mon, 18 Apr 2005, Jesper Juhl wrote:

> This patch adds a new function  valid_signal()  that tests if its argument 
> is a valid signal number. 
> 
> The reasons for adding this new function are:
> - some code currently testing _NSIG directly has off-by-one errors. Using 
> this function instead avoids such errors.
> - some code currently tests unsigned signal numbers for <0 which is 
> pointless and generates warnings when building with gcc -W. Using this 
> function instead avoids such warnings.
> 

Note to observers: I forgot to mention that the prelude to this patch can 
be found in the thread titled 
'[PATCH] fs/fcntl.c : don't test unsigned value for less than zero'


-- 
Jesper 


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to