From 2d0ec939c757bd1188b57d9e48ee847b371ab747 Mon Sep 17 00:00:00 2001
From: "Eric S. Raymond" <esr@thyrsus.com>
Date: Mon, 13 Dec 2010 16:20:21 -0500
Subject: Add many more requirements.

---
 deheader    | 17 +++++++++++++++++
 test/README |  9 ++++++++-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/deheader b/deheader
index b8aa44b..2d6cc9d 100755
--- a/deheader
+++ b/deheader
@@ -91,6 +91,23 @@ requirements = (
     (r"nrand48()",       ["<stdlib.h>"]),
     (r"seed48()",        ["<stdlib.h>"]),
     (r"srand48()",       ["<stdlib.h>"]),
+    #(r"dup()",           ["<unistd.h>"]),
+    #(r"dup2()",          ["<unistd.h>"]),    
+    #(r"exit()",          ["<stdlib.h>"]),    
+    #(r"_exit()",         ["<unistd.h>"]),    
+    #(r"ecvt()",          ["<stdlib.h>"]),    
+    #(r"fcvt()",          ["<stdlib.h>"]),    
+    #(r"gcvt()",          ["<stdlib.h>"]),
+    (r"encrypt()",        ["<unistd.h>"]),    
+    (r"erf()",           ["<math.h>"]),
+    (r"erfc()",          ["<math.h>"]),
+    (r"execl()",         ["<unistd.h>"]),
+    (r"execv()",         ["<unistd.h>"]),
+    (r"execle()",        ["<unistd.h>"]),
+    (r"execve()",        ["<unistd.h>"]),
+    (r"execlp()",        ["<unistd.h>"]),
+    (r"execvp()",        ["<unistd.h>"]),
+    (r"exp()",           ["<math.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 50c9e89..c602d37 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.
+unistd.h  - confstr() is not tested, nor are the exec* functions.
 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.
@@ -26,3 +26,10 @@ 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
+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.
+
+For other dependencies not tested, see the commented-out lines in deheader's
+dependency table.
-- 
cgit v1.2.3-70-g09d2