From 9087163804df8af6dc2ec1f675a2341c25f7795f Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 3 Dec 2017 21:43:30 -0600 Subject: ansification: remove _DEFUN Signed-off-by: Yaakov Selkowitz --- libgloss/ft32/fstat.c | 3 +-- libgloss/ft32/getpid.c | 3 +-- libgloss/ft32/isatty.c | 3 +-- libgloss/ft32/kill.c | 3 +-- libgloss/ft32/sim-lseek.S | 3 +-- libgloss/ft32/sim-lseek.c | 3 +-- libgloss/ft32/sim-time.c | 6 ++---- libgloss/ft32/stat.c | 3 +-- 8 files changed, 9 insertions(+), 18 deletions(-) (limited to 'libgloss/ft32') diff --git a/libgloss/ft32/fstat.c b/libgloss/ft32/fstat.c index 0bd432e58..517d13442 100644 --- a/libgloss/ft32/fstat.c +++ b/libgloss/ft32/fstat.c @@ -19,8 +19,7 @@ * fstat -- Since we have no file system, we just return an error. */ int -_DEFUN (_fstat, (fd, buf), - int fd, +_fstat (int fd, struct stat *buf) { buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ diff --git a/libgloss/ft32/getpid.c b/libgloss/ft32/getpid.c index 75bba424a..435d0933f 100644 --- a/libgloss/ft32/getpid.c +++ b/libgloss/ft32/getpid.c @@ -18,8 +18,7 @@ * getpid -- only one process, so just return 1. */ int -_DEFUN (_getpid, (), - ) +_getpid (void) { return __MYPID; } diff --git a/libgloss/ft32/isatty.c b/libgloss/ft32/isatty.c index fd2d73760..def8ff01c 100644 --- a/libgloss/ft32/isatty.c +++ b/libgloss/ft32/isatty.c @@ -20,8 +20,7 @@ * serial port, we'll say yes and return a 1. */ int -_DEFUN (_isatty, (fd), - int fd) +_isatty (int fd) { return (1); } diff --git a/libgloss/ft32/kill.c b/libgloss/ft32/kill.c index 4b2241f56..06ec59c61 100644 --- a/libgloss/ft32/kill.c +++ b/libgloss/ft32/kill.c @@ -20,8 +20,7 @@ extern void _exit (int) __attribute__((__noreturn__)); * kill -- go out via exit... */ int -_DEFUN (_kill, (pid, sig), - int pid, +_kill (int pid, int sig) { if(pid == __MYPID) diff --git a/libgloss/ft32/sim-lseek.S b/libgloss/ft32/sim-lseek.S index c2a134ca1..488edf3df 100644 --- a/libgloss/ft32/sim-lseek.S +++ b/libgloss/ft32/sim-lseek.S @@ -22,8 +22,7 @@ * an error. */ off_t -_DEFUN (_lseek, (fd, offset, whence), - int fd, +_lseek (int fd, off_t offset, int whence) { diff --git a/libgloss/ft32/sim-lseek.c b/libgloss/ft32/sim-lseek.c index e5c08c8e7..d35e08272 100644 --- a/libgloss/ft32/sim-lseek.c +++ b/libgloss/ft32/sim-lseek.c @@ -22,8 +22,7 @@ * an error. */ off_t -_DEFUN (_lseek, (fd, offset, whence), - int fd, +_lseek (int fd, off_t offset, int whence) { diff --git a/libgloss/ft32/sim-time.c b/libgloss/ft32/sim-time.c index 8f417ebb7..9d2993b88 100644 --- a/libgloss/ft32/sim-time.c +++ b/libgloss/ft32/sim-time.c @@ -21,8 +21,7 @@ * _times -- no clock, so return an error. */ int -_DEFUN (_times, _times (buf), - struct tms *buf) +_times (struct tms *buf) { errno = EINVAL; return (-1); @@ -33,8 +32,7 @@ _DEFUN (_times, _times (buf), * microseconds. */ int -_DEFUN (_gettimeofday, _gettimeofday (tv, tz), - struct timeval *tv, +_gettimeofday (struct timeval *tv, void *tzvp) { struct timezone *tz = tzvp; diff --git a/libgloss/ft32/stat.c b/libgloss/ft32/stat.c index 4d738efe2..df7ef39ee 100644 --- a/libgloss/ft32/stat.c +++ b/libgloss/ft32/stat.c @@ -20,8 +20,7 @@ * stat -- Since we have no file system, we just return an error. */ int -_DEFUN (_stat, (path, buf), - const char *path, +_stat (const char *path, struct stat *buf) { errno = EIO; -- cgit v1.2.3