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/syscalls
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/syscalls')
-rw-r--r--newlib/libc/syscalls/sysclose.c4
-rw-r--r--newlib/libc/syscalls/sysexecve.c8
-rw-r--r--newlib/libc/syscalls/sysfcntl.c8
-rw-r--r--newlib/libc/syscalls/sysfork.c2
-rw-r--r--newlib/libc/syscalls/sysfstat.c6
-rw-r--r--newlib/libc/syscalls/sysgetpid.c2
-rw-r--r--newlib/libc/syscalls/sysgettod.c6
-rw-r--r--newlib/libc/syscalls/syskill.c6
-rw-r--r--newlib/libc/syscalls/syslink.c6
-rw-r--r--newlib/libc/syscalls/syslseek.c8
-rw-r--r--newlib/libc/syscalls/sysopen.c4
-rw-r--r--newlib/libc/syscalls/sysread.c8
-rw-r--r--newlib/libc/syscalls/syssbrk.c4
-rw-r--r--newlib/libc/syscalls/sysstat.c6
-rw-r--r--newlib/libc/syscalls/systimes.c4
-rw-r--r--newlib/libc/syscalls/sysunlink.c4
-rw-r--r--newlib/libc/syscalls/syswait.c4
-rw-r--r--newlib/libc/syscalls/syswrite.c8
18 files changed, 50 insertions, 48 deletions
diff --git a/newlib/libc/syscalls/sysclose.c b/newlib/libc/syscalls/sysclose.c
index 632364ac1..90f321fc0 100644
--- a/newlib/libc/syscalls/sysclose.c
+++ b/newlib/libc/syscalls/sysclose.c
@@ -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);
diff --git a/newlib/libc/syscalls/sysexecve.c b/newlib/libc/syscalls/sysexecve.c
index c5050472c..a43b47a0b 100644
--- a/newlib/libc/syscalls/sysexecve.c
+++ b/newlib/libc/syscalls/sysexecve.c
@@ -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);
diff --git a/newlib/libc/syscalls/sysfcntl.c b/newlib/libc/syscalls/sysfcntl.c
index d72403f6a..5e6de7e77 100644
--- a/newlib/libc/syscalls/sysfcntl.c
+++ b/newlib/libc/syscalls/sysfcntl.c
@@ -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
diff --git a/newlib/libc/syscalls/sysfork.c b/newlib/libc/syscalls/sysfork.c
index 9fe319ff0..96d23c7dd 100644
--- a/newlib/libc/syscalls/sysfork.c
+++ b/newlib/libc/syscalls/sysfork.c
@@ -7,7 +7,7 @@
#include <reent.h>
int
-fork ()
+_DEFUN_VOID (fork)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _fork_r (_REENT);
diff --git a/newlib/libc/syscalls/sysfstat.c b/newlib/libc/syscalls/sysfstat.c
index f167b3cd8..7d446e825 100644
--- a/newlib/libc/syscalls/sysfstat.c
+++ b/newlib/libc/syscalls/sysfstat.c
@@ -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);
diff --git a/newlib/libc/syscalls/sysgetpid.c b/newlib/libc/syscalls/sysgetpid.c
index d7f75064d..794f5194b 100644
--- a/newlib/libc/syscalls/sysgetpid.c
+++ b/newlib/libc/syscalls/sysgetpid.c
@@ -3,7 +3,7 @@
#include <reent.h>
int
-getpid ()
+_DEFUN_VOID (getpid)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _getpid_r (_REENT);
diff --git a/newlib/libc/syscalls/sysgettod.c b/newlib/libc/syscalls/sysgettod.c
index 24849d5ce..9208a30b9 100644
--- a/newlib/libc/syscalls/sysgettod.c
+++ b/newlib/libc/syscalls/sysgettod.c
@@ -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);
diff --git a/newlib/libc/syscalls/syskill.c b/newlib/libc/syscalls/syskill.c
index 4ee2f64df..15cfecba8 100644
--- a/newlib/libc/syscalls/syskill.c
+++ b/newlib/libc/syscalls/syskill.c
@@ -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);
diff --git a/newlib/libc/syscalls/syslink.c b/newlib/libc/syscalls/syslink.c
index 6abe184ea..df235eeaa 100644
--- a/newlib/libc/syscalls/syslink.c
+++ b/newlib/libc/syscalls/syslink.c
@@ -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);
diff --git a/newlib/libc/syscalls/syslseek.c b/newlib/libc/syscalls/syslseek.c
index 57d6423e9..a1722471c 100644
--- a/newlib/libc/syscalls/syslseek.c
+++ b/newlib/libc/syscalls/syslseek.c
@@ -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);
diff --git a/newlib/libc/syscalls/sysopen.c b/newlib/libc/syscalls/sysopen.c
index 6b3836f24..7e7df995f 100644
--- a/newlib/libc/syscalls/sysopen.c
+++ b/newlib/libc/syscalls/sysopen.c
@@ -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;
diff --git a/newlib/libc/syscalls/sysread.c b/newlib/libc/syscalls/sysread.c
index bdb39323d..ae19f5b46 100644
--- a/newlib/libc/syscalls/sysread.c
+++ b/newlib/libc/syscalls/sysread.c
@@ -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);
diff --git a/newlib/libc/syscalls/syssbrk.c b/newlib/libc/syscalls/syssbrk.c
index 91673c960..de368678e 100644
--- a/newlib/libc/syscalls/syssbrk.c
+++ b/newlib/libc/syscalls/syssbrk.c
@@ -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);
diff --git a/newlib/libc/syscalls/sysstat.c b/newlib/libc/syscalls/sysstat.c
index 39a506169..e2247dcf0 100644
--- a/newlib/libc/syscalls/sysstat.c
+++ b/newlib/libc/syscalls/sysstat.c
@@ -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);
diff --git a/newlib/libc/syscalls/systimes.c b/newlib/libc/syscalls/systimes.c
index f74d6fa15..353553be7 100644
--- a/newlib/libc/syscalls/systimes.c
+++ b/newlib/libc/syscalls/systimes.c
@@ -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);
diff --git a/newlib/libc/syscalls/sysunlink.c b/newlib/libc/syscalls/sysunlink.c
index a910f96c2..ac04184f2 100644
--- a/newlib/libc/syscalls/sysunlink.c
+++ b/newlib/libc/syscalls/sysunlink.c
@@ -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);
diff --git a/newlib/libc/syscalls/syswait.c b/newlib/libc/syscalls/syswait.c
index 86544fa0b..355906c37 100644
--- a/newlib/libc/syscalls/syswait.c
+++ b/newlib/libc/syscalls/syswait.c
@@ -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);
diff --git a/newlib/libc/syscalls/syswrite.c b/newlib/libc/syscalls/syswrite.c
index 00fc8a381..089975958 100644
--- a/newlib/libc/syscalls/syswrite.c
+++ b/newlib/libc/syscalls/syswrite.c
@@ -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);