OSDN Git Service

2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Tue, 3 Jun 2003 19:48:07 +0000 (19:48 +0000)
committerjjohnstn <jjohnstn>
Tue, 3 Jun 2003 19:48:07 +0000 (19:48 +0000)
        * libc/reent/execr.c: Use _DEFUN macro for function declaration.
        * libc/reent/fcntlr.c: Ditto.
        * libc/reent/fstat64r.c: Ditto.
        * libc/reent/linkr.c: Ditto.
        * libc/reent/lseek64r.c: Ditto.
        * libc/reent/lseekr.c: Ditto.
        * libc/reent/openr.c: Ditto.
        * libc/reent/readr.c: Ditto.
        * libc/reent/reent.c: Ditto.
        * libc/reent/sbrkr.c: Ditto.
        * libc/reent/signalr.c: Ditto.
        * libc/reent/signgam.c: Ditto.
        * libc/reent/statr.c: Ditto.
        * libc/reent/timer.c: Ditto.
        * libc/reent/unlinkr.c: Ditto.
        * libc/reent/writer.c: Ditto.
        * libc/syscalls/sysclose.c: Ditto.
        * libc/syscalls/sysexecve.c: Ditto.
        * libc/syscalls/sysfcntl.c: Ditto.
        * libc/syscalls/sysfork.c: Ditto.
        * libc/syscalls/sysfstat.c: Ditto.
        * libc/syscalls/sysgetpid.c: Ditto.
        * libc/syscalls/sysgettod.c: Ditto.
        * libc/syscalls/syskill.c: Ditto.
        * libc/syscalls/syslink.c: Ditto.
        * libc/syscalls/syslseek.c: Ditto.
        * libc/syscalls/sysopen.c: Ditto.
        * libc/syscalls/sysread.c: Ditto.
        * libc/syscalls/syssbrk.c: Ditto.
        * libc/syscalls/sysstat.c: Ditto.
        * libc/syscalls/systimes.c: Ditto.
        * libc/syscalls/sysunlink.c: Ditto.
        * libc/syscalls/syswait.c: Ditto.

35 files changed:
newlib/ChangeLog
newlib/libc/reent/execr.c
newlib/libc/reent/fcntlr.c
newlib/libc/reent/fstat64r.c
newlib/libc/reent/linkr.c
newlib/libc/reent/lseek64r.c
newlib/libc/reent/lseekr.c
newlib/libc/reent/openr.c
newlib/libc/reent/readr.c
newlib/libc/reent/reent.c
newlib/libc/reent/sbrkr.c
newlib/libc/reent/signalr.c
newlib/libc/reent/signgam.c
newlib/libc/reent/statr.c
newlib/libc/reent/timer.c
newlib/libc/reent/unlinkr.c
newlib/libc/reent/writer.c
newlib/libc/syscalls/sysclose.c
newlib/libc/syscalls/sysexecve.c
newlib/libc/syscalls/sysfcntl.c
newlib/libc/syscalls/sysfork.c
newlib/libc/syscalls/sysfstat.c
newlib/libc/syscalls/sysgetpid.c
newlib/libc/syscalls/sysgettod.c
newlib/libc/syscalls/syskill.c
newlib/libc/syscalls/syslink.c
newlib/libc/syscalls/syslseek.c
newlib/libc/syscalls/sysopen.c
newlib/libc/syscalls/sysread.c
newlib/libc/syscalls/syssbrk.c
newlib/libc/syscalls/sysstat.c
newlib/libc/syscalls/systimes.c
newlib/libc/syscalls/sysunlink.c
newlib/libc/syscalls/syswait.c
newlib/libc/syscalls/syswrite.c

index 8087958..7759a94 100644 (file)
@@ -1,3 +1,40 @@
+2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * libc/reent/execr.c: Use _DEFUN macro for function declaration.
+       * libc/reent/fcntlr.c: Ditto.
+       * libc/reent/fstat64r.c: Ditto.
+       * libc/reent/linkr.c: Ditto.
+       * libc/reent/lseek64r.c: Ditto.
+       * libc/reent/lseekr.c: Ditto.
+       * libc/reent/openr.c: Ditto.
+       * libc/reent/readr.c: Ditto.
+       * libc/reent/reent.c: Ditto.
+       * libc/reent/sbrkr.c: Ditto.
+       * libc/reent/signalr.c: Ditto.
+       * libc/reent/signgam.c: Ditto.
+       * libc/reent/statr.c: Ditto.
+       * libc/reent/timer.c: Ditto.
+       * libc/reent/unlinkr.c: Ditto.
+       * libc/reent/writer.c: Ditto.
+       * libc/syscalls/sysclose.c: Ditto.
+       * libc/syscalls/sysexecve.c: Ditto.
+       * libc/syscalls/sysfcntl.c: Ditto.
+       * libc/syscalls/sysfork.c: Ditto.
+       * libc/syscalls/sysfstat.c: Ditto.
+       * libc/syscalls/sysgetpid.c: Ditto.
+       * libc/syscalls/sysgettod.c: Ditto.
+       * libc/syscalls/syskill.c: Ditto.
+       * libc/syscalls/syslink.c: Ditto.
+       * libc/syscalls/syslseek.c: Ditto.
+       * libc/syscalls/sysopen.c: Ditto.
+       * libc/syscalls/sysread.c: Ditto.
+       * libc/syscalls/syssbrk.c: Ditto.
+       * libc/syscalls/sysstat.c: Ditto.
+       * libc/syscalls/systimes.c: Ditto.
+       * libc/syscalls/sysunlink.c: Ditto.
+       * libc/syscalls/syswait.c: Ditto.
+       * libc/syscalls/syswrite.c: Ditto.
+
 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
 
        * libc/time/tzset_r.c: Change local variables that are
index 0fbddb9..8bc1208 100644 (file)
@@ -53,11 +53,11 @@ DESCRIPTION
 */
 
 int
-_execve_r (ptr, name, argv, env)
-     struct _reent *ptr;
-     char *name;
-     char **argv;
-     char **env;
+_DEFUN (_execve_r, (ptr, name, argv, env),
+     struct _reent *ptr _AND
+     char *name _AND
+     char **argv _AND
+     char **env)
 {
   int ret;
 
@@ -93,8 +93,8 @@ DESCRIPTION
 #ifndef NO_FORK
 
 int
-_fork_r (ptr)
-     struct _reent *ptr;
+_DEFUN (_fork_r, (ptr),
+     struct _reent *ptr)
 {
   int ret;
 
@@ -130,9 +130,9 @@ DESCRIPTION
 */
 
 int
-_wait_r (ptr, status)
-     struct _reent *ptr;
-     int *status;
+_DEFUN (_wait_r, (ptr, status),
+     struct _reent *ptr _AND
+     int *status)
 {
   int ret;
 
index e64dfe2..d632d18 100644 (file)
@@ -48,11 +48,11 @@ DESCRIPTION
 */
 
 int
-_fcntl_r (ptr, fd, cmd, arg)
-     struct _reent *ptr;
-     int fd;
-     int cmd;
-     int arg;
+_DEFUN (_fcntl_r, (ptr, fd, cmd, arg),
+     struct _reent *ptr _AND
+     int fd _AND
+     int cmd _AND
+     int arg)
 {
   int ret;
 
index c418778..1c45897 100644 (file)
@@ -54,10 +54,10 @@ DESCRIPTION
 */
 
 int
-_fstat64_r (ptr, fd, pstat)
-     struct _reent *ptr;
-     int fd;
-     struct stat64 *pstat;
+_DEFUN (_fstat64_r, (ptr, fd, pstat),
+     struct _reent *ptr _AND
+     int fd _AND
+     struct stat64 *pstat)
 {
   int ret;
 
index eda8d03..ded636a 100644 (file)
@@ -50,10 +50,10 @@ DESCRIPTION
 */
 
 int
-_link_r (ptr, old, new)
-     struct _reent *ptr;
-     _CONST char *old;
-     _CONST char *new;
+_DEFUN (_link_r, (ptr, old, new),
+     struct _reent *ptr _AND
+     _CONST char *old _AND
+     _CONST char *new)
 {
   int ret;
 
index 342cae2..0207a12 100644 (file)
@@ -49,11 +49,11 @@ DESCRIPTION
 */
 
 _off64_t
-_lseek64_r (ptr, fd, pos, whence)
-     struct _reent *ptr;
-     int fd;
-     _off64_t pos;
-     int whence;
+_DEFUN (_lseek64_r, (ptr, fd, pos, whence),
+     struct _reent *ptr _AND
+     int fd _AND
+     _off64_t pos _AND
+     int whence)
 {
   _off64_t ret;
 
index 817d52a..fa00695 100644 (file)
@@ -46,11 +46,11 @@ DESCRIPTION
 */
 
 _off_t
-_lseek_r (ptr, fd, pos, whence)
-     struct _reent *ptr;
-     int fd;
-     _off_t pos;
-     int whence;
+_DEFUN (_lseek_r, (ptr, fd, pos, whence),
+     struct _reent *ptr _AND
+     int fd _AND
+     _off_t pos _AND
+     int whence)
 {
   _off_t ret;
 
index c773103..35138c6 100644 (file)
@@ -47,11 +47,11 @@ DESCRIPTION
 */
 
 int
-_open_r (ptr, file, flags, mode)
-     struct _reent *ptr;
-     _CONST char *file;
-     int flags;
-     int mode;
+_DEFUN (_open_r, (ptr, file, flags, mode),
+     struct _reent *ptr _AND
+     _CONST char *file _AND
+     int flags _AND
+     int mode)
 {
   int ret;
 
index b05cbe2..38c1d9e 100644 (file)
@@ -46,11 +46,11 @@ DESCRIPTION
 */
 
 _ssize_t
-_read_r (ptr, fd, buf, cnt)
-     struct _reent *ptr;
-     int fd;
-     _PTR buf;
-     size_t cnt;
+_DEFUN (_read_r, (ptr, fd, buf, cnt),
+     struct _reent *ptr _AND
+     int fd _AND
+     _PTR buf _AND
+     size_t cnt)
 {
   _ssize_t ret;
 
index 1927969..9300e8c 100644 (file)
@@ -30,9 +30,9 @@ int errno;
 /* Interim cleanup code */
 
 void
-cleanup_glue (ptr, glue)
-     struct _reent *ptr;
-     struct _glue *glue;
+_DEFUN (cleanup_glue, (ptr, glue),
+     struct _reent *ptr _AND
+     struct _glue *glue)
 {
   /* Have to reclaim these in reverse order: */
   if (glue->_next)
@@ -42,8 +42,8 @@ cleanup_glue (ptr, glue)
 }
 
 void
-_reclaim_reent (ptr)
-     struct _reent *ptr;
+_DEFUN (_reclaim_reent, (ptr),
+     struct _reent *ptr)
 {
   if (ptr != _impure_ptr)
     {
@@ -121,7 +121,7 @@ _reclaim_reent (ptr)
  */
 
 void
-_wrapup_reent(struct _reent *ptr)
+_DEFUN (_wrapup_reent, (ptr), struct _reent *ptr)
 {
   register struct _atexit *p;
   register int n;
index 8be82dd..b963307 100644 (file)
@@ -49,9 +49,9 @@ DESCRIPTION
 */
 
 void *
-_sbrk_r (ptr, incr)
-     struct _reent *ptr;
-     ptrdiff_t incr;
+_DEFUN (_sbrk_r, (ptr, incr),
+     struct _reent *ptr _AND
+     ptrdiff_t incr)
 {
   char *ret;
   void *_sbrk(ptrdiff_t);
index 3ac3e2c..7d8aa7d 100644 (file)
@@ -50,10 +50,10 @@ DESCRIPTION
 */
 
 int
-_kill_r (ptr, pid, sig)
-     struct _reent *ptr;
-     int pid;
-     int sig;
+_DEFUN (_kill_r, (ptr, pid, sig),
+     struct _reent *ptr _AND
+     int pid _AND
+     int sig)
 {
   int ret;
 
@@ -89,8 +89,8 @@ DESCRIPTION
 */
 
 int
-_getpid_r (ptr)
-     struct _reent *ptr;
+_DEFUN (_getpid_r, (ptr),
+     struct _reent *ptr)
 {
   int ret;
   ret = _getpid ();
index 41d955d..bfb2dea 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef _REENT_ONLY
 
 int *
-__signgam ()
+_DEFUN_VOID (__signgam)
 {
   return &_REENT_SIGNGAM(_REENT);
 }
index 48a3773..9ad2bb2 100644 (file)
@@ -52,10 +52,10 @@ DESCRIPTION
 */
 
 int
-_stat_r (ptr, file, pstat)
-     struct _reent *ptr;
-     _CONST char *file;
-     struct stat *pstat;
+_DEFUN (_stat_r, (ptr, file, pstat),
+     struct _reent *ptr _AND
+     _CONST char *file _AND
+     struct stat *pstat)
 {
   int ret;
 
index 6895952..b604b90 100644 (file)
@@ -55,9 +55,9 @@ DESCRIPTION
 */
 
 clock_t
-_times_r (ptr, ptms)
-     struct _reent *ptr;
-     struct tms *ptms;
+_DEFUN (_times_r, (ptr, ptms),
+     struct _reent *ptr _AND
+     struct tms *ptms)
 {
   clock_t ret;
 
@@ -97,10 +97,10 @@ DESCRIPTION
 */
 
 int
-_gettimeofday_r (ptr, ptimeval, ptimezone)
-     struct _reent *ptr;
-     struct timeval *ptimeval;
-     struct timezone *ptimezone;
+_DEFUN (_gettimeofday_r, (ptr, ptimeval, ptimezone),
+     struct _reent *ptr _AND
+     struct timeval *ptimeval _AND
+     struct timezone *ptimezone)
 {
   int ret;
 
index dbfc7e6..95b815f 100644 (file)
@@ -44,9 +44,9 @@ DESCRIPTION
 */
 
 int
-_unlink_r (ptr, file)
-     struct _reent *ptr;
-     _CONST char *file;
+_DEFUN (_unlink_r, (ptr, file),
+     struct _reent *ptr _AND
+     _CONST char *file)
 {
   int ret;
 
index 7ede74f..128f7f7 100644 (file)
@@ -46,11 +46,11 @@ DESCRIPTION
 */
 
 _ssize_t
-_write_r (ptr, fd, buf, cnt)
-     struct _reent *ptr;
-     int fd;
-     _CONST _PTR buf;
-     size_t cnt;
+_DEFUN (_write_r, (ptr, fd, buf, cnt),
+     struct _reent *ptr _AND
+     int fd _AND
+     _CONST _PTR buf _AND
+     size_t cnt)
 {
   _ssize_t ret;
 
index 632364a..90f321f 100644 (file)
@@ -3,8 +3,8 @@
 #include <reent.h>
 
 int
-close (fd)
-     int fd;
+_DEFUN (close, (fd),
+     int fd)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _close_r (_REENT, fd);
index c505047..a43b47a 100644 (file)
@@ -3,10 +3,10 @@
 #include <reent.h>
 
 int
-execve (name, argv, env)
-     char *name;
-     char **argv;
-     char **env;
+_DEFUN (execve, (name, argv, env),
+     char *name _AND
+     char **argv _AND
+     char **env)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _execve_r (_REENT, name, argv, env);
index d72403f..5e6de7e 100644 (file)
@@ -5,10 +5,10 @@
 #include <errno.h>
 
 int
-fcntl (fd, flag, arg)
-     int fd;
-     int flag;
-     int arg;
+_DEFUN (fcntl, (fd, flag, arg),
+     int fd _AND
+     int flag _AND
+     int arg)
 {
 #ifdef HAVE_FCNTL
 # ifdef REENTRANT_SYSCALLS_PROVIDED
index 9fe319f..96d23c7 100644 (file)
@@ -7,7 +7,7 @@
 #include <reent.h>
 
 int
-fork ()
+_DEFUN_VOID (fork)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _fork_r (_REENT);
index f167b3c..7d446e8 100644 (file)
@@ -4,9 +4,9 @@
 #include <unistd.h>
 
 int
-fstat (fd, pstat)
-     int fd;
-     struct stat *pstat;
+_DEFUN (fstat, (fd, pstat),
+     int fd _AND
+     struct stat *pstat)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _fstat_r (_REENT, fd, pstat);
index d7f7506..794f519 100644 (file)
@@ -3,7 +3,7 @@
 #include <reent.h>
 
 int
-getpid ()
+_DEFUN_VOID (getpid)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _getpid_r (_REENT);
index 24849d5..9208a30 100644 (file)
@@ -8,9 +8,9 @@ struct timeval;
 struct timezone;
 
 int
-gettimeofday (ptimeval, ptimezone)
-     struct timeval *ptimeval;
-     struct timezone *ptimezone;
+_DEFUN (gettimeofday, (ptimeval, ptimezone),
+     struct timeval *ptimeval _AND
+     struct timezone *ptimezone)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _gettimeofday_r (_REENT, ptimeval, ptimezone);
index 4ee2f64..15cfecb 100644 (file)
@@ -3,9 +3,9 @@
 #include <reent.h>
 
 int
-kill (pid, sig)
-     int pid;
-     int sig;
+_DEFUN (kill, (pid, sig),
+     int pid _AND
+     int sig)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _kill_r (_REENT, pid, sig);
index 6abe184..df235ee 100644 (file)
@@ -3,9 +3,9 @@
 #include <reent.h>
 
 int
-link (old, new)
-     char *old;
-     char *new;
+_DEFUN (link, (old, new),
+     char *old _AND
+     char *new)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _link_r (_REENT, old, new);
index 57d6423..a172247 100644 (file)
@@ -4,10 +4,10 @@
 #include <unistd.h>
 
 off_t
-lseek (fd, pos, whence)
-     int fd;
-     off_t pos;
-     int whence;
+_DEFUN (lseek, (fd, pos, whence),
+     int fd _AND
+     off_t pos _AND
+     int whence)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _lseek_r (_REENT, fd, pos, whence);
index 6b3836f..7e7df99 100644 (file)
@@ -10,7 +10,9 @@
 #include <stdarg.h>
 
 int
-open (const char *file, int flags, ...)
+_DEFUN (open, (file, flags, ...),
+        const char *file _AND
+        int flags _DOTS)
 {
   va_list ap;
   int ret;
index bdb3932..ae19f5b 100644 (file)
@@ -4,10 +4,10 @@
 #include <unistd.h>
 
 _READ_WRITE_RETURN_TYPE
-read (fd, buf, cnt)
-     int fd;
-     void *buf;
-     size_t cnt;
+_DEFUN (read, (fd, buf, cnt),
+     int fd _AND
+     void *buf _AND
+     size_t cnt)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _read_r (_REENT, fd, buf, cnt);
index 91673c9..de36867 100644 (file)
@@ -7,8 +7,8 @@ extern void *_sbrk_r (struct _reent *, ptrdiff_t);
 extern void *_sbrk (ptrdiff_t);
 
 void *
-sbrk (incr)
-     ptrdiff_t incr;
+_DEFUN (sbrk, (incr),
+     ptrdiff_t incr)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _sbrk_r (_REENT, incr);
index 39a5061..e2247dc 100644 (file)
@@ -4,9 +4,9 @@
 #include <unistd.h>
 
 int
-stat (file, pstat)
-     char *file;
-     struct stat *pstat;
+_DEFUN (stat, (file, pstat),
+     char *file _AND
+     struct stat *pstat)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _stat_r (_REENT, file, pstat);
index f74d6fa..353553b 100644 (file)
@@ -4,8 +4,8 @@
 #include <sys/times.h>
 
 clock_t
-times (buf)
-     struct tms *buf;
+_DEFUN (times, (buf),
+     struct tms *buf)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _times_r (_REENT, buf);
index a910f96..ac04184 100644 (file)
@@ -3,8 +3,8 @@
 #include <reent.h>
 
 int
-unlink (file)
-     char *file;
+_DEFUN (unlink, (file),
+        char *file)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _unlink_r (_REENT, file);
index 86544fa..355906c 100644 (file)
@@ -3,8 +3,8 @@
 #include <reent.h>
 
 int
-wait (status)
-     int *status;
+_DEFUN (wait, (status),
+        int *status)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _wait_r (_REENT, status);
index 00fc8a3..0899759 100644 (file)
@@ -4,10 +4,10 @@
 #include <unistd.h>
 
 _READ_WRITE_RETURN_TYPE
-write (fd, buf, cnt)
-     int fd;
-     const void *buf;
-     size_t cnt;
+_DEFUN (write, (fd, buf, cnt),
+     int fd _AND
+     const void *buf _AND
+     size_t cnt)
 {
 #ifdef REENTRANT_SYSCALLS_PROVIDED
   return _write_r (_REENT, fd, buf, cnt);