Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-08-24 22:51:09 +0400
committerJeff Johnston <jjohnstn@redhat.com>2000-08-24 22:51:09 +0400
commit199359f062fbe9028de9de4741d365f932672241 (patch)
tree7b6c146b6a4da2e4b0bd0e62ba3827ef0e2b392a /newlib/libc/reent
parent78b8497ba3d6cc00f0221d7a41afe12a4945ca9e (diff)
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/reent')
-rw-r--r--newlib/libc/reent/execr.c1
-rw-r--r--newlib/libc/reent/fstatr.c1
-rw-r--r--newlib/libc/reent/openr.c1
-rw-r--r--newlib/libc/reent/signalr.c2
-rw-r--r--newlib/libc/reent/statr.c1
-rw-r--r--newlib/libc/reent/timer.c1
6 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/reent/execr.c b/newlib/libc/reent/execr.c
index 9e8f75a65..0fbddb94d 100644
--- a/newlib/libc/reent/execr.c
+++ b/newlib/libc/reent/execr.c
@@ -3,6 +3,7 @@
#include <reent.h>
#include <unistd.h>
+#include <sys/wait.h>
#include <_syslist.h>
/* Some targets provides their own versions of these functions. Those
diff --git a/newlib/libc/reent/fstatr.c b/newlib/libc/reent/fstatr.c
index df132d799..7f5d559da 100644
--- a/newlib/libc/reent/fstatr.c
+++ b/newlib/libc/reent/fstatr.c
@@ -3,6 +3,7 @@
#include <reent.h>
#include <unistd.h>
+#include <sys/stat.h>
#include <_syslist.h>
/* Some targets provides their own versions of these functions. Those
diff --git a/newlib/libc/reent/openr.c b/newlib/libc/reent/openr.c
index 2e3b608d7..c77310394 100644
--- a/newlib/libc/reent/openr.c
+++ b/newlib/libc/reent/openr.c
@@ -2,6 +2,7 @@
#include <reent.h>
#include <unistd.h>
+#include <fcntl.h>
#include <_syslist.h>
/* Some targets provides their own versions of this functions. Those
diff --git a/newlib/libc/reent/signalr.c b/newlib/libc/reent/signalr.c
index 7c85af142..3ac3e2cf8 100644
--- a/newlib/libc/reent/signalr.c
+++ b/newlib/libc/reent/signalr.c
@@ -2,6 +2,8 @@
These implementations just call the usual system calls. */
#include <reent.h>
+#include <signal.h>
+#include <unistd.h>
#include <_syslist.h>
/* Some targets provides their own versions of these functions. Those
diff --git a/newlib/libc/reent/statr.c b/newlib/libc/reent/statr.c
index 55d29bdb8..48a377344 100644
--- a/newlib/libc/reent/statr.c
+++ b/newlib/libc/reent/statr.c
@@ -3,6 +3,7 @@
#include <reent.h>
#include <unistd.h>
+#include <sys/stat.h>
#include <_syslist.h>
/* Some targets provides their own versions of these functions. Those
diff --git a/newlib/libc/reent/timer.c b/newlib/libc/reent/timer.c
index 526b4d135..689595249 100644
--- a/newlib/libc/reent/timer.c
+++ b/newlib/libc/reent/timer.c
@@ -6,6 +6,7 @@
#include <reent.h>
#include <time.h>
+#include <sys/time.h>
#include <sys/times.h>
#include <_syslist.h>