Re: [PATCH 1/2] new valid_signal function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux