diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-04 06:43:30 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 20:47:26 +0300 |
commit | 9087163804df8af6dc2ec1f675a2341c25f7795f (patch) | |
tree | 86fcb38236347d0e97a16c957e41dca597b8e8a8 /newlib/libc/syscalls | |
parent | 44276afe2a0365d655425702205604640829668d (diff) |
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/syscalls')
-rw-r--r-- | newlib/libc/syscalls/sysclose.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysexecve.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysfcntl.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysfstat.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysgettod.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysisatty.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/syskill.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/syslink.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/syslseek.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysopen.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysread.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/syssbrk.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysstat.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/systimes.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/sysunlink.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/syswait.c | 3 | ||||
-rw-r--r-- | newlib/libc/syscalls/syswrite.c | 3 |
17 files changed, 17 insertions, 34 deletions
diff --git a/newlib/libc/syscalls/sysclose.c b/newlib/libc/syscalls/sysclose.c index 946544bed..44ec36eb3 100644 --- a/newlib/libc/syscalls/sysclose.c +++ b/newlib/libc/syscalls/sysclose.c @@ -4,8 +4,7 @@ #include <unistd.h> int -_DEFUN (close, (fd), - int fd) +close (int fd) { return _close_r (_REENT, fd); } diff --git a/newlib/libc/syscalls/sysexecve.c b/newlib/libc/syscalls/sysexecve.c index 1a593117d..52dbaddc3 100644 --- a/newlib/libc/syscalls/sysexecve.c +++ b/newlib/libc/syscalls/sysexecve.c @@ -4,8 +4,7 @@ #include <unistd.h> int -_DEFUN (execve, (name, argv, env), - const char *name, +execve (const char *name, char *const argv[], char *const env[]) { diff --git a/newlib/libc/syscalls/sysfcntl.c b/newlib/libc/syscalls/sysfcntl.c index b063d766f..feccbf072 100644 --- a/newlib/libc/syscalls/sysfcntl.c +++ b/newlib/libc/syscalls/sysfcntl.c @@ -5,8 +5,7 @@ #include <errno.h> int -_DEFUN (fcntl, (fd, flag, arg), - int fd, +fcntl (int fd, int flag, int arg) { diff --git a/newlib/libc/syscalls/sysfstat.c b/newlib/libc/syscalls/sysfstat.c index 1ab7d62fa..c95e9aab1 100644 --- a/newlib/libc/syscalls/sysfstat.c +++ b/newlib/libc/syscalls/sysfstat.c @@ -5,8 +5,7 @@ #include <unistd.h> int -_DEFUN (fstat, (fd, pstat), - int fd, +fstat (int fd, struct stat *pstat) { return _fstat_r (_REENT, fd, pstat); diff --git a/newlib/libc/syscalls/sysgettod.c b/newlib/libc/syscalls/sysgettod.c index f52f0045f..e050d35e2 100644 --- a/newlib/libc/syscalls/sysgettod.c +++ b/newlib/libc/syscalls/sysgettod.c @@ -5,8 +5,7 @@ #include <sys/time.h> int -_DEFUN (gettimeofday, (ptimeval, ptimezone), - struct timeval *ptimeval, +gettimeofday (struct timeval *ptimeval, void *ptimezone) { return _gettimeofday_r (_REENT, ptimeval, ptimezone); diff --git a/newlib/libc/syscalls/sysisatty.c b/newlib/libc/syscalls/sysisatty.c index 5a6b8d455..697c54bc4 100644 --- a/newlib/libc/syscalls/sysisatty.c +++ b/newlib/libc/syscalls/sysisatty.c @@ -4,8 +4,7 @@ #include <unistd.h> int -_DEFUN (isatty, (fd), - int fd) +isatty (int fd) { #ifdef REENTRANT_SYSCALLS_PROVIDED return _isatty_r (_REENT, fd); diff --git a/newlib/libc/syscalls/syskill.c b/newlib/libc/syscalls/syskill.c index 03e06c07a..34b9f17de 100644 --- a/newlib/libc/syscalls/syskill.c +++ b/newlib/libc/syscalls/syskill.c @@ -4,8 +4,7 @@ #include <signal.h> int -_DEFUN (kill, (pid, sig), - int pid, +kill (int pid, int sig) { return _kill_r (_REENT, pid, sig); diff --git a/newlib/libc/syscalls/syslink.c b/newlib/libc/syscalls/syslink.c index 188040e4e..2f7dec6f9 100644 --- a/newlib/libc/syscalls/syslink.c +++ b/newlib/libc/syscalls/syslink.c @@ -4,8 +4,7 @@ #include <unistd.h> int -_DEFUN (link, (old, new), - const char *old, +link (const char *old, const char *new) { return _link_r (_REENT, old, new); diff --git a/newlib/libc/syscalls/syslseek.c b/newlib/libc/syscalls/syslseek.c index 41cfbf745..4d5edd0f3 100644 --- a/newlib/libc/syscalls/syslseek.c +++ b/newlib/libc/syscalls/syslseek.c @@ -4,8 +4,7 @@ #include <unistd.h> off_t -_DEFUN (lseek, (fd, pos, whence), - int fd, +lseek (int fd, off_t pos, int whence) { diff --git a/newlib/libc/syscalls/sysopen.c b/newlib/libc/syscalls/sysopen.c index 36523fc67..4d1a29953 100644 --- a/newlib/libc/syscalls/sysopen.c +++ b/newlib/libc/syscalls/sysopen.c @@ -10,8 +10,7 @@ #include <stdarg.h> int -_DEFUN (open, (file, flags, ...), - const char *file, +open (const char *file, int flags, ...) { va_list ap; diff --git a/newlib/libc/syscalls/sysread.c b/newlib/libc/syscalls/sysread.c index e45b76336..25d4e3bcf 100644 --- a/newlib/libc/syscalls/sysread.c +++ b/newlib/libc/syscalls/sysread.c @@ -4,8 +4,7 @@ #include <unistd.h> _READ_WRITE_RETURN_TYPE -_DEFUN (read, (fd, buf, cnt), - int fd, +read (int fd, void *buf, size_t cnt) { diff --git a/newlib/libc/syscalls/syssbrk.c b/newlib/libc/syscalls/syssbrk.c index a3e550579..79b876321 100644 --- a/newlib/libc/syscalls/syssbrk.c +++ b/newlib/libc/syscalls/syssbrk.c @@ -7,8 +7,7 @@ extern void *_sbrk_r (struct _reent *, ptrdiff_t); extern void *_sbrk (ptrdiff_t); void * -_DEFUN (sbrk, (incr), - ptrdiff_t incr) +sbrk (ptrdiff_t incr) { return _sbrk_r (_REENT, incr); } diff --git a/newlib/libc/syscalls/sysstat.c b/newlib/libc/syscalls/sysstat.c index 3e0287ec8..0490df164 100644 --- a/newlib/libc/syscalls/sysstat.c +++ b/newlib/libc/syscalls/sysstat.c @@ -5,8 +5,7 @@ #include <unistd.h> int -_DEFUN (stat, (file, pstat), - const char *file, +stat (const char *file, struct stat *pstat) { return _stat_r (_REENT, file, pstat); diff --git a/newlib/libc/syscalls/systimes.c b/newlib/libc/syscalls/systimes.c index cc30a3e38..ecd958348 100644 --- a/newlib/libc/syscalls/systimes.c +++ b/newlib/libc/syscalls/systimes.c @@ -4,8 +4,7 @@ #include <sys/times.h> clock_t -_DEFUN (times, (buf), - struct tms *buf) +times (struct tms *buf) { return _times_r (_REENT, buf); } diff --git a/newlib/libc/syscalls/sysunlink.c b/newlib/libc/syscalls/sysunlink.c index 06b4fc086..ecd052e7d 100644 --- a/newlib/libc/syscalls/sysunlink.c +++ b/newlib/libc/syscalls/sysunlink.c @@ -4,8 +4,7 @@ #include <unistd.h> int -_DEFUN (unlink, (file), - const char *file) +unlink (const char *file) { return _unlink_r (_REENT, file); } diff --git a/newlib/libc/syscalls/syswait.c b/newlib/libc/syscalls/syswait.c index 070160342..25b5c4788 100644 --- a/newlib/libc/syscalls/syswait.c +++ b/newlib/libc/syscalls/syswait.c @@ -4,8 +4,7 @@ #include <sys/wait.h> pid_t -_DEFUN (wait, (status), - int *status) +wait (int *status) { return _wait_r (_REENT, status); } diff --git a/newlib/libc/syscalls/syswrite.c b/newlib/libc/syscalls/syswrite.c index 35a1e8430..3b9b878f5 100644 --- a/newlib/libc/syscalls/syswrite.c +++ b/newlib/libc/syscalls/syswrite.c @@ -4,8 +4,7 @@ #include <unistd.h> _READ_WRITE_RETURN_TYPE -_DEFUN (write, (fd, buf, cnt), - int fd, +write (int fd, const void *buf, size_t cnt) { |