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>2003-06-03 23:48:08 +0400
committerJeff Johnston <jjohnstn@redhat.com>2003-06-03 23:48:08 +0400
commitbf3bcac28b4ef4891293e36c11b9bd5fd526612a (patch)
tree35ee7b52e9faceccbf19bc6e63c6f08ea897f7fe /newlib/libc/reent
parent702ceb233d9b363278387bdcbac69c86a0b83660 (diff)
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.
Diffstat (limited to 'newlib/libc/reent')
-rw-r--r--newlib/libc/reent/execr.c20
-rw-r--r--newlib/libc/reent/fcntlr.c10
-rw-r--r--newlib/libc/reent/fstat64r.c8
-rw-r--r--newlib/libc/reent/linkr.c8
-rw-r--r--newlib/libc/reent/lseek64r.c10
-rw-r--r--newlib/libc/reent/lseekr.c10
-rw-r--r--newlib/libc/reent/openr.c10
-rw-r--r--newlib/libc/reent/readr.c10
-rw-r--r--newlib/libc/reent/reent.c12
-rw-r--r--newlib/libc/reent/sbrkr.c6
-rw-r--r--newlib/libc/reent/signalr.c12
-rw-r--r--newlib/libc/reent/signgam.c2
-rw-r--r--newlib/libc/reent/statr.c8
-rw-r--r--newlib/libc/reent/timer.c14
-rw-r--r--newlib/libc/reent/unlinkr.c6
-rw-r--r--newlib/libc/reent/writer.c10
16 files changed, 78 insertions, 78 deletions
diff --git a/newlib/libc/reent/execr.c b/newlib/libc/reent/execr.c
index 0fbddb94d..8bc1208d7 100644
--- a/newlib/libc/reent/execr.c
+++ b/newlib/libc/reent/execr.c
@@ -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;
diff --git a/newlib/libc/reent/fcntlr.c b/newlib/libc/reent/fcntlr.c
index e64dfe28a..d632d183f 100644
--- a/newlib/libc/reent/fcntlr.c
+++ b/newlib/libc/reent/fcntlr.c
@@ -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;
diff --git a/newlib/libc/reent/fstat64r.c b/newlib/libc/reent/fstat64r.c
index c418778b7..1c4589713 100644
--- a/newlib/libc/reent/fstat64r.c
+++ b/newlib/libc/reent/fstat64r.c
@@ -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;
diff --git a/newlib/libc/reent/linkr.c b/newlib/libc/reent/linkr.c
index eda8d038c..ded636af7 100644
--- a/newlib/libc/reent/linkr.c
+++ b/newlib/libc/reent/linkr.c
@@ -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;
diff --git a/newlib/libc/reent/lseek64r.c b/newlib/libc/reent/lseek64r.c
index 342cae2eb..0207a1220 100644
--- a/newlib/libc/reent/lseek64r.c
+++ b/newlib/libc/reent/lseek64r.c
@@ -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;
diff --git a/newlib/libc/reent/lseekr.c b/newlib/libc/reent/lseekr.c
index 817d52a26..fa00695a8 100644
--- a/newlib/libc/reent/lseekr.c
+++ b/newlib/libc/reent/lseekr.c
@@ -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;
diff --git a/newlib/libc/reent/openr.c b/newlib/libc/reent/openr.c
index c77310394..35138c6de 100644
--- a/newlib/libc/reent/openr.c
+++ b/newlib/libc/reent/openr.c
@@ -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;
diff --git a/newlib/libc/reent/readr.c b/newlib/libc/reent/readr.c
index b05cbe2ab..38c1d9e39 100644
--- a/newlib/libc/reent/readr.c
+++ b/newlib/libc/reent/readr.c
@@ -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;
diff --git a/newlib/libc/reent/reent.c b/newlib/libc/reent/reent.c
index 192796908..9300e8cd0 100644
--- a/newlib/libc/reent/reent.c
+++ b/newlib/libc/reent/reent.c
@@ -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;
diff --git a/newlib/libc/reent/sbrkr.c b/newlib/libc/reent/sbrkr.c
index 8be82ddb1..b963307b6 100644
--- a/newlib/libc/reent/sbrkr.c
+++ b/newlib/libc/reent/sbrkr.c
@@ -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);
diff --git a/newlib/libc/reent/signalr.c b/newlib/libc/reent/signalr.c
index 3ac3e2cf8..7d8aa7d71 100644
--- a/newlib/libc/reent/signalr.c
+++ b/newlib/libc/reent/signalr.c
@@ -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 ();
diff --git a/newlib/libc/reent/signgam.c b/newlib/libc/reent/signgam.c
index 41d955d3a..bfb2dea51 100644
--- a/newlib/libc/reent/signgam.c
+++ b/newlib/libc/reent/signgam.c
@@ -8,7 +8,7 @@
#ifndef _REENT_ONLY
int *
-__signgam ()
+_DEFUN_VOID (__signgam)
{
return &_REENT_SIGNGAM(_REENT);
}
diff --git a/newlib/libc/reent/statr.c b/newlib/libc/reent/statr.c
index 48a377344..9ad2bb209 100644
--- a/newlib/libc/reent/statr.c
+++ b/newlib/libc/reent/statr.c
@@ -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;
diff --git a/newlib/libc/reent/timer.c b/newlib/libc/reent/timer.c
index 689595249..b604b90f3 100644
--- a/newlib/libc/reent/timer.c
+++ b/newlib/libc/reent/timer.c
@@ -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;
diff --git a/newlib/libc/reent/unlinkr.c b/newlib/libc/reent/unlinkr.c
index dbfc7e667..95b815f1b 100644
--- a/newlib/libc/reent/unlinkr.c
+++ b/newlib/libc/reent/unlinkr.c
@@ -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;
diff --git a/newlib/libc/reent/writer.c b/newlib/libc/reent/writer.c
index 7ede74fcc..128f7f7ac 100644
--- a/newlib/libc/reent/writer.c
+++ b/newlib/libc/reent/writer.c
@@ -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;