summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-20 13:46:43 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-20 13:46:43 -0500
commit3b88fe6e76ee3f64f1c69910ccd99ff95e565054 (patch)
tree4aaac57e86c229ddee840518fc408c7122cfc702
parentde17eec4940b2cd1a2b5b0d83a81c76ba50ef8db (diff)
downloaddeheader-3b88fe6e76ee3f64f1c69910ccd99ff95e565054.tar.gz
deheader-3b88fe6e76ee3f64f1c69910ccd99ff95e565054.tar.bz2
deheader-3b88fe6e76ee3f64f1c69910ccd99ff95e565054.tar.xz
deheader-3b88fe6e76ee3f64f1c69910ccd99ff95e565054.zip
Ready to ship 0.4 point release.0.4
-rw-r--r--NEWS2
-rwxr-xr-xdeheader28
-rw-r--r--test/README12
3 files changed, 34 insertions, 8 deletions
diff --git a/NEWS b/NEWS
index 4ec7817..8b13e3b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
deheader project news
-0.4 @
+0.4 @ 2010-12-20
Script now removes generated objects.
Duplicate inclusions are now detected.
Absence of some headers required for portability is now detected.
diff --git a/deheader b/deheader
index 834cc52..eb03d4f 100755
--- a/deheader
+++ b/deheader
@@ -32,11 +32,12 @@ BATON_DEBUG = 1
PROGRESS_DEBUG = 2
COMMAND_DEBUG = 3
-version = "0.3"
+version = "0.4"
# Difference in various compiler implementations and OSes mean that for cross-
# platform compatibility you sometimes want to leave "unneeded" headers alone
# because they're required in order to satify dependencies on other platforms.
+# Note: This table is not yet complete.
requirements = (
# 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
@@ -121,15 +122,34 @@ requirements = (
(r"fclose()", ["<stdio.h>"]),
(r"fdatasync()", ["<unistd.h>"]),
(r"fdetach()", ["<stropts.h>"]),
- # Header dependencies implies by SuS
- (r"<dirent.h>", ["<sys/types.h>"]),
- (r"<fcntl.h>", ["<sys/stat.h>", "<sys/types.h>"]),
(r"fdopen()", ["<stdio.h>"]),
(r"ferror()", ["<stdio.h>"]),
(r"feof()", ["<stdio.h>"]),
(r"fflush()", ["<stdio.h>"]),
(r"ffs()", ["<strings.h>"]),
(r"fgetc()", ["<stdio.h>"]),
+ (r"fgetpos()", ["<stdio.h>"]),
+ (r"fgets()", ["<stdio.h>"]),
+ (r"fgetwc()", ["<stdio.h>", "<wchar.h>"]),
+ (r"fgetws()", ["<stdio.h>", "<wchar.h>"]),
+ (r"fileno()", ["<stdio.h>"]),
+ (r"flockfile()", ["<stdio.h>"]),
+ (r"ftrylockfile()", ["<stdio.h>"]),
+ (r"funlockfile()", ["<stdio.h>"]),
+ (r"fmod()", ["<math.h>"]),
+ (r"fmtmsg()", ["<fmtmsg.h>"]),
+ (r"fnmatch()", ["<fnmatch.h>"]),
+ (r"fopen()", ["<stdio.h>"]),
+ (r"fork()", ["<sys/types.h>", "<unistd.h>"]),
+ (r"fpathconf()", ["<unistd.h>"]),
+ (r"pathconf()", ["<unistd.h>"]),
+ (r"fputc()", ["<stdio.h>"]),
+ (r"fputwc()", ["<stdio.h>"]),
+ (r"fputws()", ["<stdio.h>"]),
+ (r"fread()", ["<stdio.h>"]),
+ # Header dependencies implies by SuS
+ (r"<dirent.h>", ["<sys/types.h>"]),
+ (r"<fcntl.h>", ["<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/README b/test/README
index 2d95305..ffe1b30 100644
--- a/test/README
+++ b/test/README
@@ -26,13 +26,19 @@ 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>
+grp.h - functions not tested, getgrent() depends on <grp.h>
+pwd.h - functions not tested, getpwent() depends on <pwd.h>
utmpx.h - functions not tested, most depend on <utmpx.h>
-math.h - erf(), erfc(), exp(), expm1(), fabs(), floor() not tested.
+math.h - erf(), erfc(), exp(), expm1(), fabs(), floor(). fmod() not tested.
stropts.h - fattach(), fdetach() not tested
time.h - FD_* macros are not tested
strings.h - ffs() not tested.
+stdio.h - fgetpos(), fgets(), fileno(), f*lockfile(), fopen(), not tested.
+wchar.h - fgetwc(), fgetws() not tested.
+fmtmsg.h - fmtmsg() not tested.
+fnmatch.h - fnmatch() not tested.
+unistd.h - fork(), fpathconf() not tested.
+stdio.h - *printf*, fputc(), fputwc(), fputws(), fread() not tested.
For other dependencies not tested, see the commented-out lines in deheader's
dependency table.