summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeheader177
1 files changed, 159 insertions, 18 deletions
diff --git a/deheader b/deheader
index d0f3659..e13de9a 100755
--- a/deheader
+++ b/deheader
@@ -91,8 +91,6 @@ requirements = (
(r"bcopy()", ["<strings.h>"]),
# brk, sbrk - change space allocation (LEGACY)
(r"brk()", ["<unistd.h>"]),
- # bsd_signal - simplified signal facilities
- (r"bsd_signal()", ["<signal.h>"]),
# bsearch - binary search a sorted table
(r"bsort()", ["<stdlib.h>"]),
# btowc - single-byte to wide-character conversion
@@ -111,14 +109,6 @@ requirements = (
(r"cbrt()", ["<math.h>"]),
# ceil - ceiling value function
(r"ceil()", ["<math.h>"]),
- # cfgetispeed - get input baud rate
- (r"cfgetispeed()", ["<termios.h>"]),
- # cfgetospeed - get output baud rate
- (r"cfgetospeed()", ["<termios.h>"]),
- # cfsetispeed - set input baud rate
- (r"cfsetispeed()", ["<termios.h>"]),
- # cfsetospeed - set output baud rate
- (r"cfsetospeed()", ["<termios.h>"]),
# chdir - change working directory
(r"chdir()", ["<unistd.h>"]),
# chmod - change mode of a file
@@ -177,6 +167,8 @@ requirements = (
(r"toascii()", ["<ctype.h>"]),
(r"tolower()", ["<ctype.h>"]),
(r"toupper()", ["<ctype.h>"]),
+ (r"_tolower()", ["<ctype.h>"]),
+ (r"_toupper()", ["<ctype.h>"]),
# cuserid - character login name of the user
(r"cuserid()", ["<stdio.h>"]),
# daylight - daylight savings time flag
@@ -203,7 +195,7 @@ requirements = (
(r"dlerror()", ["<dlfcn.h>"]),
# dlsym - obtain the address of a symbol from a dlopen() object
(r"dlsym()", ["<dlfcn.h>"]),
- # drand48, erand48, jrand48, lcong48, lrand48, mrand48, nrand48, seed48, srand48 - generate uniformly distributed pseudo-random numbers
+ # drand48, erand48, jrand48, lcong48, lrand48, mrand48, nrand48, seed48, srand48 - generate uniformly distributed pseudo-random numbers
(r"drand48()", ["<stdlib.h>"]),
(r"erand48()", ["<stdlib.h>"]),
(r"jrand48()", ["<stdlib.h>"]),
@@ -507,10 +499,6 @@ requirements = (
(r"j0()", ["<math.h>"]),
(r"j1()", ["<math.h>"]),
(r"jn()", ["<math.h>"]),
- # kill - send a signal to a process or a group of processes
- (r"kill()", ["<sys/types.h>", "<signal.h>"]),
- # killpg - send a signal to a process group
- (r"killpg()", ["<signal.h>"]),
# labs - return a long integer absolute value
(r"labs()", ["<stdlib.h>"]),
# lchown - change the owner and group of a symbolic link
@@ -636,8 +624,6 @@ requirements = (
(r"pow()", ["<math.h>"]),
# pread - read from a file
("pread()", ["<unistd.h>"]),
- # printf - print formatted output
- (r"printf()", ["<stdio.h>"]),
# pthread.h - threads
(r"pthread_attr_destroy()", ["<pthread.h>"]),
(r"pthread_attr_getdetachstate()", ["<pthread.h>"]),
@@ -826,7 +812,25 @@ requirements = (
(r"setgrent()", ["<grp.h>"]),
# setkey - set encoding key
(r"setkey()", ["<stdlib.h>"]),
-
+ # setpgid - set process group ID for job control
+ (r"setpgid()", ["<sys/types.h>", "<unistd.h>"]),
+ # setpgrp - set process group ID
+ (r"setpgrp()", ["<unistd.h>"]),
+ # setregid - set real and effective group IDs
+ (r"setregid()", ["<unistd.h>"]),
+ # setreuid - set real and effective user IDs
+ (r"setreuid()", ["<unistd.h>"]),
+ # setsid - create session and set process group ID
+ (r"setsid()", ["<sys/types.h>", "<unistd.h>"]),
+ # setuid - set-user-ID
+ (r"setuid()", ["<sys/types.h>", "<unistd.h>"]),
+ # setvbuf - assign buffering to a stream
+ (r"setvbuf()", ["<stdio.h>"]),
+ # sys/shm.h - shared memory facility
+ (r"shmat()", ["<sys/shm.h>"]),
+ (r"shmctl()", ["<sys/shm.h>"]),
+ (r"shmdt()", ["<sys/shm.h>"]),
+ (r"shmget()", ["<sys/shm.h>"]),
# setjmp.h - stack environment declarations
(r"longjmp()", ["<setjmp.h>"]),
(r"siglongjmp()", ["<setjmp.h>"]),
@@ -834,6 +838,61 @@ requirements = (
(r"setjmp()", ["<setjmp.h>"]),
(r"sigsetjmp()", ["<setjmp.h>"]),
(r"_setjmp()", ["<setjmp.h>"]),
+ # signal.h - signals
+ (r"bsd_signal()", ["<signal.h>"]),
+ (r"kill()", ["<signal.h>"]),
+ (r"killpg()", ["<signal.h>"]),
+ (r"pthread_kill()", ["<signal.h>"]),
+ (r"pthread_sigmask()", ["<signal.h>"]),
+ (r"raise()", ["<signal.h>"]),
+ (r"sigaction()", ["<signal.h>"]),
+ (r"sigaddset()", ["<signal.h>"]),
+ (r"sigaltstack()", ["<signal.h>"]),
+ (r"sigdelset()", ["<signal.h>"]),
+ (r"sigemptyset()", ["<signal.h>"]),
+ (r"sigfillset()", ["<signal.h>"]),
+ (r"sighold()", ["<signal.h>"]),
+ (r"sigignore()", ["<signal.h>"]),
+ (r"siginterrupt()", ["<signal.h>"]),
+ (r"sigismember()", ["<signal.h>"]),
+ (r"signal()", ["<signal.h>"]),
+ (r"sigpause()", ["<signal.h>"]),
+ (r"sigpending()", ["<signal.h>"]),
+ (r"sigprocmask()", ["<signal.h>"]),
+ (r"sigqueue()", ["<signal.h>"]),
+ (r"sigrelse()", ["<signal.h>"]),
+ (r"sigset()", ["<signal.h>"]),
+ (r"sigstack()", ["<signal.h>"]),
+ (r"sigsuspend()", ["<signal.h>"]),
+ (r"sigtimedwait()", ["<signal.h>"]),
+ (r"sigwait()", ["<signal.h>"]),
+ (r"sigwaitinfo()", ["<signal.h>"]),
+ # sin - sine function
+ (r"sin()", ["<math.h>"]),
+ # sinh - hyperbolic sine function
+ (r"sinh()", ["<math.h>"]),
+ # sleep - suspend execution for an interval of time
+ (r"sleep()", ["<unistd.h>"]),
+ # fprintf, printf, snprintf, sprintf - print formatted output
+ (r"fprintf()", ["<stdio.h>"]),
+ (r"printf()", ["<stdio.h>"]),
+ (r"snprintf()", ["<stdio.h>"]),
+ (r"sprintf()", ["<stdio.h>"]),
+ # sqrt - square root function
+ (r"sqrt()", ["<math.h>"]),
+ # stat - get file status
+ (r"stat()", ["<sys/types.h>", "<sys/stat.h>"]),
+ # stdarg.h - handle variable argument list
+ (r"va_start()", ["<stdarg.h>"]),
+ (r"va_arg()", ["<stdarg.h>"]),
+ (r"va_end()", ["<stdarg.h>"]),
+ # stddef.h - standard type definitions
+ (r"offsetof()", ["<stddef.h>"]),
+ # step - pattern match with regular expressions
+ (r"step()", ["<regexp.h>"]),
+ # strcasecmp, strncasecmp - case-insensitive string comparisons
+ (r"strcasecmp()", ["<strings.h>"]),
+ (r"strncasecmp()", ["<strings.h>"]),
# string.h - string operations
(r"memccpy()", ["<string.h>"]),
(r"memchr()", ["<string.h>"]),
@@ -879,6 +938,88 @@ requirements = (
(r"towupper()", ["<wctype.h>"]),
(r"wctrans()", ["<wctype.h>"]),
(r"wctype()", ["<wctype.h>"]),
+ # strftime - convert date and time to a string
+ (r"strftime()", ["<time.h>"]),
+ # strptime - date and time conversion
+ (r"strptime()", ["<time.h>"]),
+ # strtod - convert string to a double-precision number
+ (r"strtod()", ["<stdlib.h>"]),
+ # strtol - convert string to a long integer
+ (r"strtol()", ["<stdlib.h>"]),
+ # strtoul - convert string to an unsigned long
+ (r"strtoul()", ["<stdlib.h>"]),
+ # swab - swap bytes
+ (r"swab()", ["<stdlib.h>"]),
+ # symlink - make symbolic link to a file
+ (r"symlink()", ["<stdlib.h>"]),
+ # sync - schedule filesystem updates
+ (r"sync()", ["<stdlib.h>"]),
+ # sysconf - get configurable system variables
+ (r"sysconf()", ["<stdlib.h>"]),
+ # system - issue a command
+ (r"system()", ["<stdlib.h>"]),
+ # sys/wait.h - declarations for waiting
+ (r"wait()", ["<sys/wait.h>"]),
+ (r"wait3()", ["<sys/wait.h>"]),
+ (r"waitid()", ["<sys/wait.h>"]),
+ (r"waitpid()", ["<sys/wait.h>"]),
+ # tan - tangent function
+ (r"tan()", ["<math.h>"]),
+ # tanh - hyperbolic tangent function
+ (r"tanh()", ["<math.h>"]),
+ # tcgetpgrp - get the foreground process group ID
+ (r"tcgetpgrp()", ["<sys/types.h>", "<unistd.h>"]),
+ # tcsetpgrp - set the foreground process group ID
+ (r"tcsetpgrp()", ["<sys/types.h>", "<unistd.h>"]),
+ # tdelete - delete node from binary search tree
+ (r"tdelete()", ["<search.h>"]),
+ # telldir - current location of a named directory stream
+ (r"telldir()", ["<dirent.h>"]),
+ # tempnam - create a name for a temporary file
+ (r"tempnam()", ["<stdio.h>"]),
+ # termios.h - define values for termios
+ (r"cfgetispeed()", ["<termios.h>"]),
+ (r"cfgetospeed()", ["<termios.h>"]),
+ (r"cfsetispeed()", ["<termios.h>"]),
+ (r"cfsetospeed()", ["<termios.h>"]),
+ (r"tcdrain()", ["<termios.h>"]),
+ (r"tcflow()", ["<termios.h>"]),
+ (r"tcflush()", ["<termios.h>"]),
+ (r"tcgetattr()", ["<termios.h>"]),
+ (r"tcgetsid()", ["<termios.h>"]),
+ (r"tcsendbreak()", ["<termios.h>"]),
+ (r"tcsetattr()", ["<termios.h>"]),
+ # tdelete, tfind, tsearch, twalk - manage a binary search tree
+ (r"tsearch()", ["<termios.h>"]),
+ (r"tfind()", ["<termios.h>"]),
+ (r"tdelete()", ["<termios.h>"]),
+ (r"twalk()", ["<termios.h>"]),
+ # time - get time
+ (r"time()", ["<time.h>"]),
+ # timer_create - create a per-process timer
+ (r"timer_create()", ["<time.h>", "<signal.h>"]),
+ # timer_delete - delete a per-process timer
+ (r"timer_delete()", ["<time.h>", "<signal.h>"]),
+ # timer_settime, timer_gettime, timer_getoverrun - per-process timers
+ (r"timer_settime()", ["<time.h>"]),
+ (r"timer_gettime()", ["<time.h>"]),
+ (r"timer_getoverrun()", ["<time.h>"]),
+ # times - get process and waited-for child process times
+ (r"times()", ["<sys/time.h>"]),
+ # tmpfile - create a temporary file
+ (r"tmpfile()", ["<stdio.h>"]),
+ # tmpnam - create a name for a temporary file
+ (r"tmpnam()", ["<stdio.h>"]),
+ # truncate - truncate a file to a specified length
+ (r"truncate()", ["<stdio.h>"]),
+ # ttyname, ttyname_r - find pathname of a terminal
+ ("ttyname()", ["<unistd.h>"]),
+ ("ttyname_r()", ["<unistd.h>"]),
+ # ttyslot - find the slot of the current user in the user accounting database
+ ("ttyslot()", ["<unistd.h>"]),
+ # tzset - set time zone conversion information
+ ("tzset()", ["<time.h>"]),
+
# umask - set and get file mode creation mask
(r"umask()", ["<sys/stat.h>", "<sys/types.h>"]),
# Dependencies observed on systems other than the Linux this was