diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-08-24 18:51:09 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-08-24 18:51:09 +0000 |
commit | 199359f062fbe9028de9de4741d365f932672241 (patch) | |
tree | 7b6c146b6a4da2e4b0bd0e62ba3827ef0e2b392a /newlib/libc/stdlib/system.c | |
parent | 78b8497ba3d6cc00f0221d7a41afe12a4945ca9e (diff) | |
download | cygnal-199359f062fbe9028de9de4741d365f932672241.tar.gz cygnal-199359f062fbe9028de9de4741d365f932672241.tar.bz2 cygnal-199359f062fbe9028de9de4741d365f932672241.zip |
2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
* libc/stdlib/abort.c: changed description: uses "raise" instead of
"getpid" and "kill"; added: uses "write" and "_exit".
Also included unistd.h for "_exit" prototype.
* libc/stdlib/system.c: included unistd.h for "execve" prototype,
reent.h for "_fork_r" and "_wait_r" prototypes.
(do_system): changed extern char *environ[] to POSIX-friendly
extern char **environ.
* libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
prototypes.
* libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
* libc/reent/execr.c: included sys/wait.h for "wait" prototype.
* libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
* libc/reent/openr.c: included fcntl.h for "open" prototype.
* libc/reent/signalr.c: included signal.h for "kill" prototype,
unistd.h for "getpid" prototype.
* libc/reent/statr.c: included sys/stat.h for "stat" prototype.
* libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
* libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
prototype. Also included stdlib.h for "abort", string.h for
"strdup" and "strncmp" prototypes.
* libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
"strncpy", unistd.h for "read" and "close" prototypes.
* libc/posix/execvp.c: included string.h for "strchr", "strlen", and
"strcat" prototypes.
Diffstat (limited to 'newlib/libc/stdlib/system.c')
-rw-r--r-- | newlib/libc/stdlib/system.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c index 4584ae180..8a493d008 100644 --- a/newlib/libc/stdlib/system.c +++ b/newlib/libc/stdlib/system.c @@ -56,7 +56,9 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>, #include <errno.h> #include <stddef.h> #include <stdlib.h> +#include <unistd.h> #include <_syslist.h> +#include <reent.h> #if defined (unix) || defined (__CYGWIN32__) static int do_system (); @@ -112,7 +114,7 @@ do_system (ptr, s) { char *argv[4]; int pid, status; - extern char *environ[]; + extern char **environ; argv[0] = "sh"; argv[1] = "-c"; |