diff options
Diffstat (limited to 'newlib/libc/syscalls')
-rw-r--r-- | newlib/libc/syscalls/sysclose.c | 1 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysexecve.c | 7 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysfork.c | 1 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysfstat.c | 1 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysgetpid.c | 1 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysgettod.c | 5 | ||||
-rw-r--r-- | newlib/libc/syscalls/syskill.c | 1 | ||||
-rw-r--r-- | newlib/libc/syscalls/syslink.c | 5 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysstat.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysunlink.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/syswait.c | 3 |
11 files changed, 19 insertions, 12 deletions
diff --git a/newlib/libc/syscalls/sysclose.c b/newlib/libc/syscalls/sysclose.c index d05d2866c..946544bed 100644 --- a/newlib/libc/syscalls/sysclose.c +++ b/newlib/libc/syscalls/sysclose.c @@ -1,6 +1,7 @@ /* connector for close */ #include <reent.h> +#include <unistd.h> int _DEFUN (close, (fd), diff --git a/newlib/libc/syscalls/sysexecve.c b/newlib/libc/syscalls/sysexecve.c index 4917446a9..154c082f9 100644 --- a/newlib/libc/syscalls/sysexecve.c +++ b/newlib/libc/syscalls/sysexecve.c @@ -1,12 +1,13 @@ /* connector for execve */ #include <reent.h> +#include <unistd.h> int _DEFUN (execve, (name, argv, env), - char *name _AND - char **argv _AND - char **env) + _CONST char *name _AND + char *_CONST argv[] _AND + char *_CONST env[]) { return _execve_r (_REENT, name, argv, env); } diff --git a/newlib/libc/syscalls/sysfork.c b/newlib/libc/syscalls/sysfork.c index fd2839148..21e6be0e2 100644 --- a/newlib/libc/syscalls/sysfork.c +++ b/newlib/libc/syscalls/sysfork.c @@ -5,6 +5,7 @@ #ifndef NO_FORK #include <reent.h> +#include <unistd.h> int _DEFUN_VOID (fork) diff --git a/newlib/libc/syscalls/sysfstat.c b/newlib/libc/syscalls/sysfstat.c index 864c0ab9c..7ce2c9dfe 100644 --- a/newlib/libc/syscalls/sysfstat.c +++ b/newlib/libc/syscalls/sysfstat.c @@ -1,6 +1,7 @@ /* connector for fstat */ #include <reent.h> +#include <sys/stat.h> #include <unistd.h> int diff --git a/newlib/libc/syscalls/sysgetpid.c b/newlib/libc/syscalls/sysgetpid.c index a7048acc7..f18783c75 100644 --- a/newlib/libc/syscalls/sysgetpid.c +++ b/newlib/libc/syscalls/sysgetpid.c @@ -1,6 +1,7 @@ /* connector for getpid */ #include <reent.h> +#include <unistd.h> int _DEFUN_VOID (getpid) diff --git a/newlib/libc/syscalls/sysgettod.c b/newlib/libc/syscalls/sysgettod.c index 273d19e59..9f25b052e 100644 --- a/newlib/libc/syscalls/sysgettod.c +++ b/newlib/libc/syscalls/sysgettod.c @@ -2,10 +2,7 @@ #include <reent.h> #include <sys/types.h> -#include <sys/times.h> - -struct timeval; -struct timezone; +#include <sys/time.h> int _DEFUN (gettimeofday, (ptimeval, ptimezone), diff --git a/newlib/libc/syscalls/syskill.c b/newlib/libc/syscalls/syskill.c index fb364f511..27f16be97 100644 --- a/newlib/libc/syscalls/syskill.c +++ b/newlib/libc/syscalls/syskill.c @@ -1,6 +1,7 @@ /* connector for kill */ #include <reent.h> +#include <signal.h> int _DEFUN (kill, (pid, sig), diff --git a/newlib/libc/syscalls/syslink.c b/newlib/libc/syscalls/syslink.c index 841684f46..327870769 100644 --- a/newlib/libc/syscalls/syslink.c +++ b/newlib/libc/syscalls/syslink.c @@ -1,11 +1,12 @@ /* connector for link */ #include <reent.h> +#include <unistd.h> int _DEFUN (link, (old, new), - char *old _AND - char *new) + _CONST char *old _AND + _CONST char *new) { return _link_r (_REENT, old, new); } diff --git a/newlib/libc/syscalls/sysstat.c b/newlib/libc/syscalls/sysstat.c index e93f61919..fdf029cef 100644 --- a/newlib/libc/syscalls/sysstat.c +++ b/newlib/libc/syscalls/sysstat.c @@ -1,11 +1,12 @@ /* connector for stat */ #include <reent.h> +#include <sys/stat.h> #include <unistd.h> int _DEFUN (stat, (file, pstat), - char *file _AND + _CONST char *file _AND struct stat *pstat) { return _stat_r (_REENT, file, pstat); diff --git a/newlib/libc/syscalls/sysunlink.c b/newlib/libc/syscalls/sysunlink.c index 1c5a69cfe..1399a80e5 100644 --- a/newlib/libc/syscalls/sysunlink.c +++ b/newlib/libc/syscalls/sysunlink.c @@ -1,10 +1,11 @@ /* connector for unlink */ #include <reent.h> +#include <unistd.h> int _DEFUN (unlink, (file), - char *file) + _CONST char *file) { return _unlink_r (_REENT, file); } diff --git a/newlib/libc/syscalls/syswait.c b/newlib/libc/syscalls/syswait.c index ec38a321f..070160342 100644 --- a/newlib/libc/syscalls/syswait.c +++ b/newlib/libc/syscalls/syswait.c @@ -1,8 +1,9 @@ /* connector for wait */ #include <reent.h> +#include <sys/wait.h> -int +pid_t _DEFUN (wait, (status), int *status) { |