OSDN Git Service

2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
authorjjohnstn <jjohnstn>
Thu, 24 Aug 2000 18:51:08 +0000 (18:51 +0000)
committerjjohnstn <jjohnstn>
Thu, 24 Aug 2000 18:51:08 +0000 (18:51 +0000)
        * 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.

14 files changed:
newlib/ChangeLog
newlib/libc/posix/execvp.c
newlib/libc/reent/execr.c
newlib/libc/reent/fstatr.c
newlib/libc/reent/openr.c
newlib/libc/reent/signalr.c
newlib/libc/reent/statr.c
newlib/libc/reent/timer.c
newlib/libc/stdio/remove.c
newlib/libc/stdlib/abort.c
newlib/libc/stdlib/system.c
newlib/libc/stdlib/wctomb_r.c
newlib/libc/unix/getlogin.c
newlib/libc/unix/getut.c

index 01ea6fb..15e49f1 100644 (file)
@@ -1,5 +1,32 @@
 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.
+
+2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
+
        * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
        used later (ifdef __SCLE)
        * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
index 15b2e57..1b30f07 100644 (file)
@@ -6,6 +6,7 @@
 #include <_ansi.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 #include <errno.h>
 #include <ctype.h>
 
index 9e8f75a..0fbddb9 100644 (file)
@@ -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
index df132d7..7f5d559 100644 (file)
@@ -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
index 2e3b608..c773103 100644 (file)
@@ -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
index 7c85af1..3ac3e2c 100644 (file)
@@ -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
index 55d29bd..48a3773 100644 (file)
@@ -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
index 526b4d1..6895952 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <reent.h>
 #include <time.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <_syslist.h>
 
index 074dd9a..b24ce71 100644 (file)
@@ -45,6 +45,7 @@ Supporting OS subroutine required: <<unlink>>.
 */
 
 #include <stdio.h>
+#include <reent.h>
 
 int
 _remove_r (ptr, filename)
index b3d671e..93f7c2f 100644 (file)
@@ -43,10 +43,11 @@ RETURNS
 PORTABILITY
 ANSI C requires <<abort>>.
 
-Supporting OS subroutines required: <<getpid>>, <<kill>>.
+Supporting OS subroutines required: <<_exit>> and optionally, <<write>>.
 */
 
 #include <stdlib.h>
+#include <unistd.h>
 #include <signal.h>
 
 _VOID
index 4584ae1..8a493d0 100644 (file)
@@ -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";
index 8fa6e16..b382c99 100644 (file)
@@ -1,4 +1,5 @@
 #include <stdlib.h>
+#include <string.h>
 #include <locale.h>
 #include "mbctype.h"
 
index 7c1f310..e043b02 100644 (file)
@@ -1,3 +1,5 @@
+#include <string.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <utmp.h>
 #include <fcntl.h>
index d8e3e2f..1e2b755 100644 (file)
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+#include <string.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <utmp.h>
@@ -29,8 +31,6 @@ endutent ()
 void
 utmpname (_CONST char *file)
 {
-  extern char *strdup (char *);
-
   utmp_file = strdup (file);
 }