summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-13 14:16:14 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-13 14:16:14 -0500
commitad690daf137763cb32b401d3742222d9c032e425 (patch)
treeba468fd5cd3988f2dff925a768e19bca2f190eda
parent1d4864eab4288498696c33c93541d2ce48f273d3 (diff)
downloaddeheader-ad690daf137763cb32b401d3742222d9c032e425.tar.gz
deheader-ad690daf137763cb32b401d3742222d9c032e425.tar.bz2
deheader-ad690daf137763cb32b401d3742222d9c032e425.tar.xz
deheader-ad690daf137763cb32b401d3742222d9c032e425.zip
D<stdlib> depenency for random-number functions.
-rwxr-xr-xdeheader9
-rw-r--r--test/README2
-rw-r--r--test/regress.chk14
3 files changed, 18 insertions, 7 deletions
diff --git a/deheader b/deheader
index 7a0e9fc..b8aa44b 100755
--- a/deheader
+++ b/deheader
@@ -82,6 +82,15 @@ requirements = (
(r"cuserid()", ["<stdio.h>"]),
(r"dirname()", ["<libgen.h>"]),
(r"umask()", ["<sys/stat.h>", "<sys/types.h>"]),
+ (r"drand48()", ["<stdlib.h>"]),
+ (r"erand48()", ["<stdlib.h>"]),
+ (r"jrand48()", ["<stdlib.h>"]),
+ (r"lcong48()", ["<stdlib.h>"]),
+ (r"lrand48()", ["<stdlib.h>"]),
+ (r"mrand48()", ["<stdlib.h>"]),
+ (r"nrand48()", ["<stdlib.h>"]),
+ (r"seed48()", ["<stdlib.h>"]),
+ (r"srand48()", ["<stdlib.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 9bfab56..50c9e89 100644
--- a/test/README
+++ b/test/README
@@ -24,3 +24,5 @@ stdio.h - cuserid() not tested; SuS includes <stdio.h>
ndbm.h - all functions rely on the DBM datatype
dirent.h - all entry points depend on struct dirent.
libgen.h - basename() tested, dirname() not.
+stdio.h - div() not tested; SuS includes <stdio.h>
+dlfcn.h - dlclose(), dlerror(), dlopen(), dlsym() not tested
diff --git a/test/regress.chk b/test/regress.chk
index 5ff5900..2ed456c 100644
--- a/test/regress.chk
+++ b/test/regress.chk
@@ -1,4 +1,3 @@
-deheader: ./chdir.c has requires <unistd.h> from chdir()
deheader: ./chdir.c includes <unistd.h>
deheader: ./string.c includes <string.h>
deheader: ./bzero.c has requires <string.h> from bzero()
@@ -76,7 +75,6 @@ deheader: ignoring <stdio.h> (conditional inclusion)
deheader: ./bsort.c includes <string.h>
deheader: ignoring <string.h> (conditional inclusion)
deheader: ./bsort.c includes <stdlib.h>
-deheader: ./chroot.c has requires <unistd.h> from chroot()
deheader: ./chroot.c includes <unistd.h>
deheader: ./catgets.c has requires <nl_types.h> from catgets()
deheader: ./catgets.c includes <nl_types.h>
@@ -93,7 +91,6 @@ 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()
deheader: ./catopen.c includes <nl_types.h>
-deheader: ./close.c has requires <unistd.h> from close()
deheader: ./close.c includes <unistd.h>
deheader: ./atan2.c has requires <math.h> from atan2()
deheader: ./atan2.c includes <math.h>
@@ -128,10 +125,13 @@ deheader: ./duplicate.c without <stdio.h> succeeded.
deheader: ./duplicate.c without <stdio.h> succeeded.
deheader: remove <stdio.h> from ./duplicate.c
deheader: remove <stdio.h> from ./duplicate.c
-deheader: in ./chdir.c, retaining required '#include <unistd.h>\n'
-deheader: in ./chroot.c, retaining required '#include <unistd.h>\n'
+deheader: ./chdir.c without <unistd.h> succeeded.
+deheader: remove <unistd.h> from ./chdir.c
+deheader: ./chroot.c without <unistd.h> succeeded.
+deheader: remove <unistd.h> from ./chroot.c
deheader: in ./atanh.c, retaining required '#include <math.h>\n'
-deheader: in ./close.c, retaining required '#include <unistd.h>\n'
+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: in ./crypt.c, retaining required '#include <unistd.h>\n'
@@ -163,4 +163,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, 8 removed
+deheader: saw 53 files, 58 includes, 11 removed