diff options
-rwxr-xr-x | deheader | 9 | ||||
-rw-r--r-- | test/README | 6 | ||||
-rw-r--r-- | test/ctime.c | 12 | ||||
-rw-r--r-- | test/fchmod.c | 12 | ||||
-rw-r--r-- | test/fchown.c | 12 | ||||
-rw-r--r-- | test/fclose.c | 12 | ||||
-rw-r--r-- | test/regress.chk | 13 |
7 files changed, 72 insertions, 4 deletions
@@ -108,6 +108,15 @@ requirements = ( (r"execlp()", ["<unistd.h>"]), (r"execvp()", ["<unistd.h>"]), (r"exp()", ["<math.h>"]), + (r"expm1()", ["<math.h>"]), + (r"FD_CLR()", ["<time.h>"]), + (r"FD_ISSET()", ["<time.h>"]), + (r"FD_SET()", ["<time.h>"]), + (r"FD_ZERO()", ["<time.h>"]), + (r"fabs()", ["<math.h>"]), + (r"fattach()", ["<stropts.h>"]), + (r"fchdir()", ["<unistd.h>"]), + (r"fchmod()", ["<sys/stat,h>"]), # Header dependencies implies by SuS (r"<dirent.h>", ["<sys/types.h>"]), (r"<fcntl.h>", ["<sys/stat.h>", "<sys/types.h>"]), diff --git a/test/README b/test/README index c602d37..936785f 100644 --- a/test/README +++ b/test/README @@ -15,7 +15,7 @@ time.h - asctime() and asctime_r() assert.h - assert() macro syslog.h - closelog(), openlog(), setlogmask(), syslog() rexgexp.h - advance() is tested, compile() is not. -unistd.h - confstr() is not tested, nor are the exec* functions. +unistd.h - confstr(), exec*(), fchdir() not tested. math.h - cos(), cosh(): these will need <math.h>. stdio.h - ctermid() not tested; SuS includes <stdio.h> time.h - ctime_r(), difftime(), and daylight are not tested, but ctime() is. @@ -29,7 +29,9 @@ dlfcn.h - dlclose(), dlerror(), dlopen(), dlsym() not tested grp.h - functions not tested, getgrent() depends omn <grp.h> pwd.h - functions not tested, getpwent() depends omn <pwd.h> utmpx.h - functions not tested, most depend on <utmpx.h> -math.h - erf(), erfc(), exp() not tested. +math.h - erf(), erfc(), exp(), expm1(), fabs() not tested. +stropts.h - fattach() not tested +time.h - FD_* macros are not tested For other dependencies not tested, see the commented-out lines in deheader's dependency table. diff --git a/test/ctime.c b/test/ctime.c new file mode 100644 index 0000000..9386cd6 --- /dev/null +++ b/test/ctime.c @@ -0,0 +1,12 @@ +/* + * Items: ctime( + * Standardized-By: SuS + * Detected-by: gcc-4.4.3 + Linux + */ + +#include <time.h> + +main(int arg, char **argv) +{ + (void)ctime(NULL); +} diff --git a/test/fchmod.c b/test/fchmod.c new file mode 100644 index 0000000..1b97537 --- /dev/null +++ b/test/fchmod.c @@ -0,0 +1,12 @@ +/* + * Items: fchmod( + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include <sys/types.h> + +main(int arg, char **argv) +{ + (void)fchmod(0, 0); +} diff --git a/test/fchown.c b/test/fchown.c new file mode 100644 index 0000000..adb3982 --- /dev/null +++ b/test/fchown.c @@ -0,0 +1,12 @@ +/* + * Items: fchown( + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include <unistd.h> + +main(int arg, char **argv) +{ + (void)fchown(0, 0); +} diff --git a/test/fclose.c b/test/fclose.c new file mode 100644 index 0000000..5659fce --- /dev/null +++ b/test/fclose.c @@ -0,0 +1,12 @@ +/* + * Items: fclose( + * Standardized-By: SuS + * Detected-by: gcc-4.4.3 + Linux + */ + +#include <stdio.h> + +main(int arg, char **argv) +{ + (void)fclose(stdin); +} diff --git a/test/regress.chk b/test/regress.chk index 2ed456c..b411272 100644 --- a/test/regress.chk +++ b/test/regress.chk @@ -13,6 +13,8 @@ deheader: ./closedir.c includes <sys/types.h> deheader: ./closedir.c includes <dirent.h> deheader: ./closedir.c has requires <sys/types.h> from <dirent.h> deheader: ./asinh.c includes <math.h> +deheader: ./fchmod.c has requires <sys/stat,h> from fchmod() +deheader: ./fchmod.c includes <sys/types.h> deheader: ./atol.c has requires <stdlib.h> from l64a() deheader: ./atol.c includes <stdlib.h> deheader: ./umask.c has requires <sys/stat.h>,<sys/types.h> from umask() @@ -44,6 +46,7 @@ deheader: ./cfsetispeed.c has requires <termios.h> from cfsetispeed() deheader: ./cfsetispeed.c includes <termios.h> deheader: ./sbrk.c includes <unistd.h> deheader: ./ctime.c includes <time.h> +deheader: ./fclose.c includes <stdio.h> deheader: ./alarm.c includes <unistd.h> deheader: ./cfgetospeed.c has requires <termios.h> from cfgetospeed() deheader: ./cfgetospeed.c includes <termios.h> @@ -87,6 +90,7 @@ deheader: ./clock_settime.c includes <time.h> deheader: ./crypt.c has requires <unistd.h> from crypt() deheader: ./crypt.c includes <unistd.h> deheader: ./clock_getres.c includes <time.h> +deheader: ./fchown.c includes <unistd.h> deheader: ./advance.c has requires <regexp.h> from advance() deheader: ./advance.c includes <regexp.h> deheader: ./catopen.c has requires <nl_types.h> from catopen() @@ -134,6 +138,11 @@ deheader: ./close.c without <unistd.h> succeeded. deheader: remove <unistd.h> from ./close.c deheader: ./bcopy.c without <string.h> failed (512). deheader: in ./cfsetispeed.c, retaining required '#include <termios.h>\n' +deheader: ./fchmod.c without <sys/types.h> succeeded. +deheader: in ./fchmod.c, <sys/stat,h> is required for portability but not present. + +deheader: remove <sys/types.h> from ./fchmod.c +deheader: in ./atof.c, retaining required '#include <stdlib.h>\n' deheader: in ./crypt.c, retaining required '#include <unistd.h>\n' deheader: in ./atol.c, retaining required '#include <stdlib.h>\n' deheader: in ./atoi.c, retaining required '#include <stdlib.h>\n' @@ -143,7 +152,7 @@ deheader: ./alarm.c without <unistd.h> succeeded. deheader: remove <unistd.h> from ./alarm.c deheader: ./sbrk.c without <unistd.h> succeeded. deheader: remove <unistd.h> from ./sbrk.c -deheader: in ./atof.c, retaining required '#include <stdlib.h>\n' +deheader: ./fclose.c without <stdio.h> failed (512). 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' @@ -163,4 +172,4 @@ deheader: in ./chown.c, retaining required '#include <unistd.h>\n' deheader: in ./chown.c, retaining required '#include <sys/types.h>\n' deheader: in ./advance.c, retaining required '#include <regexp.h>\n' deheader: ./clearerr.c without <stdio.h> failed (512). -deheader: saw 53 files, 58 includes, 11 removed +deheader: saw 56 files, 61 includes, 12 removed |