diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-12 09:28:10 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-12 09:28:10 -0500 |
commit | 460429399df5fa080c6c09b8a08cddb592f4994a (patch) | |
tree | d2171c57732aedd86690c391374d516c1f1bf426 | |
parent | efb33255ea2b59a9c295ea64d6111c1e7767ecea (diff) | |
download | deheader-460429399df5fa080c6c09b8a08cddb592f4994a.tar.gz deheader-460429399df5fa080c6c09b8a08cddb592f4994a.tar.bz2 deheader-460429399df5fa080c6c09b8a08cddb592f4994a.tar.xz deheader-460429399df5fa080c6c09b8a08cddb592f4994a.zip |
Add test for cfgetispeed(3).
-rwxr-xr-x | deheader | 48 | ||||
-rw-r--r-- | test/cfgetispeed.c | 13 | ||||
-rw-r--r-- | test/regress.chk | 13 |
3 files changed, 46 insertions, 28 deletions
@@ -42,29 +42,31 @@ requirements = map(lambda (r, h): (re.compile(r), h), ( # Headers mandated by SuS that may not be required by a particular compiler, # usually because all the argument types and the return type are composed # from C scalar types. - (r"\Wa64l\s*\(", ["<stdlib.h>"]), - (r"\Wl64a\s*\(", ["<stdlib.h>"]), - (r"\Waccess\s*\(", ["<unistd.h>"]), - (r"\Wacos\s*\(", ["<math.h>"]), - (r"\Wacosh\s*\(", ["<math.h>"]), - (r"\Wadvance\s*\(", ["<regexp.h>"]), - (r"\Watan\s*\(", ["<math.h>"]), - (r"\Watanh\s*\(", ["<math.h>"]), - (r"\Watan2\s*\(", ["<math.h>"]), - (r"\Wbasename\s*\(", ["<libgen.h>"]), - (r"\Wbcmp\s*\(", ["<string.h>"]), - (r"\Wbrk\s*\(", ["<unistd.h>"]), - (r"\Wbsd_signal\s*\(",["<signal.h>"]), - (r"\Wbsort\s*\(", ["<stdlib.h>"]), - (r"\Wbtowc\s*\(", ["<stdio.h>", "<wchar.h>"]), - (r"\Wbzero\s*\(", ["<string.h>"]), - (r"\Wcalloc\s*\(", ["<stdlib.h>"]), - (r"\Wcatclose\s*\(", ["<nl_types.h>"]), - (r"\Wcatgets\s*\(", ["<nl_types.h>"]), - (r"\Wcatopen\s*\(", ["<nl_types.h>"]), - (r"\Wcbrt\s*\(", ["<math.h>"]), - (r"\Wceil\s*\(", ["<math.h>"]), - (r"\Wumask\s*\(", ["<sys/stat.h>", "<sys/types.h>"]), + (r"\Wa64l\s*\(", ["<stdlib.h>"]), + (r"\Wl64a\s*\(", ["<stdlib.h>"]), + (r"\Wabort\s*\(", ["<stdlib.h>"]), + (r"\Waccess\s*\(", ["<unistd.h>"]), + (r"\Wacos\s*\(", ["<math.h>"]), + (r"\Wacosh\s*\(", ["<math.h>"]), + (r"\Wadvance\s*\(", ["<regexp.h>"]), + (r"\Watan\s*\(", ["<math.h>"]), + (r"\Watanh\s*\(", ["<math.h>"]), + (r"\Watan2\s*\(", ["<math.h>"]), + (r"\Wbasename\s*\(", ["<libgen.h>"]), + (r"\Wbcmp\s*\(", ["<string.h>"]), + (r"\Wbrk\s*\(", ["<unistd.h>"]), + (r"\Wbsd_signal\s*\(", ["<signal.h>"]), + (r"\Wbsort\s*\(", ["<stdlib.h>"]), + (r"\Wbtowc\s*\(", ["<stdio.h>", "<wchar.h>"]), + (r"\Wbzero\s*\(", ["<string.h>"]), + (r"\Wcalloc\s*\(", ["<stdlib.h>"]), + (r"\Wcatclose\s*\(", ["<nl_types.h>"]), + (r"\Wcatgets\s*\(", ["<nl_types.h>"]), + (r"\Wcatopen\s*\(", ["<nl_types.h>"]), + (r"\Wcbrt\s*\(", ["<math.h>"]), + (r"\Wceil\s*\(", ["<math.h>"]), + (r"\Wcfgetispeed\s*\(", ["<termios.h>"]), + (r"\Wumask\s*\(", ["<sys/stat.h>", "<sys/types.h>"]), # Dependencies observed on systems other than the Linux this was # developed under. (r"<sys/socket.h>", ["<sys/stat.h>", "<sys/types.h>"]), diff --git a/test/cfgetispeed.c b/test/cfgetispeed.c new file mode 100644 index 0000000..3002759 --- /dev/null +++ b/test/cfgetispeed.c @@ -0,0 +1,13 @@ +/* + * Items: cfgetispeed( + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include <termios.h> + +main(int arg, char **argv) +{ + struct termios *t; + cfgetispeed(&t); +} diff --git a/test/regress.chk b/test/regress.chk index 3283b32..e2a43df 100644 --- a/test/regress.chk +++ b/test/regress.chk @@ -12,6 +12,8 @@ deheader: ./atol.c includes <stdlib.h> deheader: ./umask.c has requires <sys/stat.h>,<sys/types.h> from \Wumask\s*\( deheader: ./umask.c includes <sys/stat.h> deheader: ./umask.c includes <sys/types.h> +deheader: ./cfgetispeed.c has requires <termios.h> from \Wcfgetispeed\s*\( +deheader: ./cfgetispeed.c includes <termios.h> deheader: ./a64l.c has requires <stdlib.h> from \Wa64l\s*\( deheader: ./a64l.c includes <stdlib.h> deheader: ./bcmp.c has requires <string.h> from \Wbcmp\s*\( @@ -36,6 +38,7 @@ deheader: ./sbrk.c includes <unistd.h> deheader: ./alarm.c includes <unistd.h> deheader: ./acos.c has requires <math.h> from \Wacos\s*\( deheader: ./acos.c includes <math.h> +deheader: ./abort.c has requires <stdlib.h> from \Wabort\s*\( deheader: ./abort.c includes <stdlib.h> deheader: ./atanh.c has requires <math.h> from \Watanh\s*\( deheader: ./atanh.c includes <math.h> @@ -69,6 +72,7 @@ deheader: ./catclose.c includes <nl_types.h> deheader: in ./atan2.c, retaining required '#include <math.h>\n' deheader: ./asin.c without <math.h> succeeded. deheader: remove <math.h> from ./asin.c +deheader: in ./cbrt.c, retaining required '#include <math.h>\n' deheader: in ./acos.c, retaining required '#include <math.h>\n' deheader: in ./catopen.c, retaining required '#include <nl_types.h>\n' deheader: in ./brk.c, retaining required '#include <unistd.h>\n' @@ -76,13 +80,13 @@ deheader: ./string.c without <string.h> succeeded. deheader: remove <string.h> from ./string.c deheader: in ./bsort.c, retaining required '#include <stdlib.h>\n' deheader: in ./catclose.c, retaining required '#include <nl_types.h>\n' -deheader: in ./cbrt.c, retaining required '#include <math.h>\n' +deheader: in ./cfgetispeed.c, retaining required '#include <termios.h>\n' deheader: in ./ceil.c, retaining required '#include <math.h>\n' deheader: in ./bsd_signal.c, retaining required '#include <signal.h>\n' deheader: ./abs.c without <stdlib.h> succeeded. deheader: remove <stdlib.h> from ./abs.c deheader: in ./basename.c, retaining required '#include <libgen.h>\n' -deheader: ./atexit.c without <stdlib.h> failed (512). +deheader: in ./abort.c, retaining required '#include <stdlib.h>\n' deheader: in ./atan.c, retaining required '#include <math.h>\n' deheader: ./duplicate.c without <stdio.h> succeeded. deheader: ./duplicate.c without <stdio.h> succeeded. @@ -102,8 +106,7 @@ deheader: in ./atof.c, retaining required '#include <stdlib.h>\n' deheader: in ./umask.c, retaining required '#include <sys/types.h>\n' deheader: in ./umask.c, retaining required '#include <sys/stat.h>\n' deheader: in ./calloc.c, retaining required '#include <stdlib.h>\n' -deheader: ./abort.c without <stdlib.h> succeeded. -deheader: remove <stdlib.h> from ./abort.c +deheader: ./atexit.c without <stdlib.h> failed (512). deheader: in ./bzero.c, retaining required '#include <string.h>\n' deheader: in ./access.c, retaining required '#include <unistd.h>\n' deheader: in ./btowc.c, retaining required '#include <wchar.h>\n' @@ -113,4 +116,4 @@ deheader: in ./catgets.c, retaining required '#include <nl_types.h>\n' deheader: in ./bcmp.c, retaining required '#include <string.h>\n' deheader: in ./a64l.c, retaining required '#include <stdlib.h>\n' deheader: in ./advance.c, retaining required '#include <regexp.h>\n' -deheader: saw 36 files, 38 includes, 9 removed +deheader: saw 37 files, 39 includes, 8 removed |