diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-12 05:43:57 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-12 05:43:57 -0500 |
commit | 410ac85a02c63fd96cad1b9e3b0ecc4d63829b3a (patch) | |
tree | 326955136f0f6b78e726bfa2b842224108537b7a | |
parent | 4d3402ac34f125b3ab6f416825371c23c7e7e0e0 (diff) | |
download | deheader-410ac85a02c63fd96cad1b9e3b0ecc4d63829b3a.tar.gz deheader-410ac85a02c63fd96cad1b9e3b0ecc4d63829b3a.tar.bz2 deheader-410ac85a02c63fd96cad1b9e3b0ecc4d63829b3a.tar.xz deheader-410ac85a02c63fd96cad1b9e3b0ecc4d63829b3a.zip |
Add test for bsd_signal.
-rw-r--r-- | test/bsd_signal.c | 19 | ||||
-rw-r--r-- | test/regress.chk | 5 |
2 files changed, 23 insertions, 1 deletions
diff --git a/test/bsd_signal.c b/test/bsd_signal.c new file mode 100644 index 0000000..b7f0c9e --- /dev/null +++ b/test/bsd_signal.c @@ -0,0 +1,19 @@ +/* bsd_signal(3) needs <string.h> */ + +/* + * Items: bsd_signal( + * Requires: <signal.h> + * Standardized-By: SuS + * Detected-by: gcc-4.4.3 + Linux + */ + +#include <signal.h> + +void handler(int sig) +{ +} + +main(int arg, char **argv) +{ + (void) bsd_signal(0, handler); +} diff --git a/test/regress.chk b/test/regress.chk index 1edf712..7ab6389 100644 --- a/test/regress.chk +++ b/test/regress.chk @@ -17,6 +17,7 @@ deheader: test/bcmp.c includes <string.h> deheader: test/bcopy.c includes <string.h> deheader: test/atexit.c includes <stdlib.h> deheader: test/abs.c includes <stdlib.h> +deheader: test/bsd_signal.c includes <signal.h> deheader: test/access.c has requires <unistd.h> from \Waccess\s*\( deheader: test/access.c includes <unistd.h> deheader: test/atoi.c has requires <stdlib.h> from \Wl64a\s*\( @@ -72,9 +73,11 @@ deheader: in test/brk.c, retaining required '#include <unistd.h>\n' deheader: in test/bcmp.c, retaining required '#include <string.h>\n' deheader: test/abs.c without <stdlib.h> succeeded. deheader: remove <stdlib.h> from test/abs.c +deheader: test/bsd_signal.c without <signal.h> succeeded. +deheader: remove <signal.h> from test/bsd_signal.c deheader: in test/atan.c, retaining required '#include <math.h>\n' deheader: test/atexit.c without <stdlib.h> failed (512). deheader: test/sbrk.c without <unistd.h> succeeded. deheader: remove <unistd.h> from test/sbrk.c deheader: in test/acos.c, retaining required '#include <math.h>\n' -deheader: saw 26 files, 27 includes, 9 removed +deheader: saw 27 files, 28 includes, 10 removed |