kernel-ark/include
Jesper Juhl e5bdd883a1 [PATCH] new valid_signal() function
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.

I considered various places to add this function but eventually settled on
include/linux/signal.h as the most logical place for it.  If there's some
reason this is a bad choice then please let me know (hints as to a better
location are then welcome of course).

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01 08:59:13 -07:00
..
acpi
asm-alpha [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-arm [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-arm26 [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-cris [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-frv [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-generic [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-h8300 [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-i386 [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-ia64 [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-m32r [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-m68k [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-m68knommu [PATCH] __attribute__ placement fixes 2005-05-01 08:59:09 -07:00
asm-mips [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-parisc [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-ppc [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-ppc64 [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-s390 [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-sh [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-sh64 [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-sparc [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-sparc64 [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-um
asm-v850 [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-x86_64 [PATCH] consolidate sys_shmat 2005-05-01 08:59:12 -07:00
linux [PATCH] new valid_signal() function 2005-05-01 08:59:13 -07:00
math-emu
media
mtd
net
pcmcia
rxrpc
scsi
sound
video