From b9b63425c6db79f9e93990d8b17d22d40bbcd018 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 8 Feb 1994 19:30:01 -0500 Subject: [PATCH] Add popen and pclose to required list for stdio.h. Add putenv to required list for stdlib.h. Add getopt to required list for unistd.h. From-SVN: r6510 --- gcc/fixproto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/fixproto b/gcc/fixproto index 67241eaead1..6f7d701868c 100755 --- a/gcc/fixproto +++ b/gcc/fixproto @@ -110,12 +110,12 @@ if [ `echo $* | wc -w` != 0 ] ; then done fi -required_stdlib_h="abort abs atexit atof atoi atol bsearch calloc exit free getenv labs malloc qsort rand realloc srand strtod strtol strtoul system" +required_stdlib_h="abort abs atexit atof atoi atol bsearch calloc exit free getenv labs malloc putenv qsort rand realloc srand strtod strtol strtoul system" # "div ldiv", - ignored because these depend on div_t, ldiv_t # ignore these: "mblen mbstowcs mbstowc wcstombs wctomb" # Left out getgroups, because SunOS4 has incompatible BSD and SVR4 versions. # Should perhaps also add NULL -required_unistd_h="_exit access alarm chdir chown close ctermid cuserid dup dup2 execl execle execlp execv execve execvp fork fpathconf getcwd getegid geteuid getgid getlogin getpgrp getpid getppid getuid isatty link lseek pathconf pause pipe read rmdir setgid setpgid setsid setuid sleep sysconf tcgetpgrp tcsetpgrp ttyname unlink write" +required_unistd_h="_exit access alarm chdir chown close ctermid cuserid dup dup2 execl execle execlp execv execve execvp fork fpathconf getcwd getegid geteuid getgid getlogin getopt getpgrp getpid getppid getuid isatty link lseek pathconf pause pipe read rmdir setgid setpgid setsid setuid sleep sysconf tcgetpgrp tcsetpgrp ttyname unlink write" done_dirs="" echo "" >fixproto.list @@ -278,7 +278,7 @@ for code in ALL STD ; do # Most systems that provide them will also declare them. required_list="kill raise" ;; stdio.h) - required_list="clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell fwrite getc getchar gets perror printf putc putchar puts remove rename rewind scanf setbuf setvbuf sprintf sscanf vprintf vsprintf vfprintf tmpfile tmpnam ungetc" + required_list="clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell fwrite getc getchar gets pclose perror popen printf putc putchar puts remove rename rewind scanf setbuf setvbuf sprintf sscanf vprintf vsprintf vfprintf tmpfile tmpnam ungetc" if grep '[^_a-zA-Z0-9]_flsbuf' <$abs_source_file >/dev/null; then required_list="$required_list _flsbuf _filbuf" fi -- 2.30.2