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 /libgloss/mcore | |
parent | 44276afe2a0365d655425702205604640829668d (diff) |
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'libgloss/mcore')
-rw-r--r-- | libgloss/mcore/close.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/cmb-exit.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/cmb-inbyte.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/cmb-outbyte.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/fstat.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/getpid.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/kill.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/lseek.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/open.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/print.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/putnum.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/raise.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/read.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/stat.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/unlink.c | 3 | ||||
-rw-r--r-- | libgloss/mcore/write.c | 3 |
16 files changed, 16 insertions, 32 deletions
diff --git a/libgloss/mcore/close.c b/libgloss/mcore/close.c index b94cb602a..0a9f81141 100644 --- a/libgloss/mcore/close.c +++ b/libgloss/mcore/close.c @@ -18,8 +18,7 @@ * close -- We don't need to do anything, but pretend we did. */ int -_DEFUN (_close ,(fd), - int fd) +_close (int fd) { return (0); } diff --git a/libgloss/mcore/cmb-exit.c b/libgloss/mcore/cmb-exit.c index 0e1de85f3..84703eb0d 100644 --- a/libgloss/mcore/cmb-exit.c +++ b/libgloss/mcore/cmb-exit.c @@ -18,8 +18,7 @@ * _exit -- Just cause a breakpoint so user can see why we exited. */ void -_DEFUN (_exit, (val), - int val) +_exit (int val) { while (1) { asm("bkpt"); diff --git a/libgloss/mcore/cmb-inbyte.c b/libgloss/mcore/cmb-inbyte.c index 839ffe605..9bfbbde81 100644 --- a/libgloss/mcore/cmb-inbyte.c +++ b/libgloss/mcore/cmb-inbyte.c @@ -15,8 +15,7 @@ #include <_ansi.h> int -_DEFUN (inbyte, (), - void) +inbyte (void) { return -1; diff --git a/libgloss/mcore/cmb-outbyte.c b/libgloss/mcore/cmb-outbyte.c index ea2aaef8b..ea31cc5af 100644 --- a/libgloss/mcore/cmb-outbyte.c +++ b/libgloss/mcore/cmb-outbyte.c @@ -33,8 +33,7 @@ * outbyte -- send a byte to the UART. */ void -_DEFUN (outbyte, (ch), - char ch) +outbyte (char ch) { while (!(*SRREG & TRDY)) ; diff --git a/libgloss/mcore/fstat.c b/libgloss/mcore/fstat.c index 6a2323a6e..671f56ad9 100644 --- a/libgloss/mcore/fstat.c +++ b/libgloss/mcore/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/mcore/getpid.c b/libgloss/mcore/getpid.c index eee2ac030..cc9e85749 100644 --- a/libgloss/mcore/getpid.c +++ b/libgloss/mcore/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/mcore/kill.c b/libgloss/mcore/kill.c index 8883c8ecd..833fe89d7 100644 --- a/libgloss/mcore/kill.c +++ b/libgloss/mcore/kill.c @@ -18,8 +18,7 @@ * kill -- go out via exit... */ int -_DEFUN (_kill, (pid, sig), - int pid, +_kill (int pid, int sig) { if(pid == __MYPID) diff --git a/libgloss/mcore/lseek.c b/libgloss/mcore/lseek.c index 423e11e55..dc419c753 100644 --- a/libgloss/mcore/lseek.c +++ b/libgloss/mcore/lseek.c @@ -20,8 +20,7 @@ * lseek -- Since a serial port is non-seekable, we return an error. */ off_t -_DEFUN (_lseek, (fd, offset, whence), - int fd, +_lseek (int fd, off_t offset, int whence) { diff --git a/libgloss/mcore/open.c b/libgloss/mcore/open.c index 6b816e891..fdc1b3081 100644 --- a/libgloss/mcore/open.c +++ b/libgloss/mcore/open.c @@ -20,8 +20,7 @@ * we return an error. */ int -_DEFUN (_open, (buf, flags, mode), - const char *buf, +_open (const char *buf, int flags, int mode) { diff --git a/libgloss/mcore/print.c b/libgloss/mcore/print.c index d0d2bcef7..f5d0dba20 100644 --- a/libgloss/mcore/print.c +++ b/libgloss/mcore/print.c @@ -18,8 +18,7 @@ * print -- do a raw print of a string */ void -_DEFUN (_print, (ptr), -char *ptr) +_print (char *ptr) { while (*ptr) { outbyte (*ptr++); diff --git a/libgloss/mcore/putnum.c b/libgloss/mcore/putnum.c index 2e37c0993..10e298b95 100644 --- a/libgloss/mcore/putnum.c +++ b/libgloss/mcore/putnum.c @@ -18,8 +18,7 @@ * putnum -- print a 32 bit number in hex */ void -_DEFUN (_putnum, (num), - unsigned int num) +_putnum (unsigned int num) { char buf[9]; int cnt; diff --git a/libgloss/mcore/raise.c b/libgloss/mcore/raise.c index 6657aa649..e39207792 100644 --- a/libgloss/mcore/raise.c +++ b/libgloss/mcore/raise.c @@ -15,8 +15,7 @@ #include "glue.h" int -_DEFUN (_raise, (sig), - int sig) +_raise (int sig) { return _kill (_getpid (), sig); } diff --git a/libgloss/mcore/read.c b/libgloss/mcore/read.c index d97d98d22..d7c5670b0 100644 --- a/libgloss/mcore/read.c +++ b/libgloss/mcore/read.c @@ -21,8 +21,7 @@ extern char inbyte (void); * we only have stdin. */ int -_DEFUN (_read, (fd, buf, nbytes), - int fd, +_read (int fd, char *buf, int nbytes) { diff --git a/libgloss/mcore/stat.c b/libgloss/mcore/stat.c index d07042a51..1e16e0e53 100644 --- a/libgloss/mcore/stat.c +++ b/libgloss/mcore/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; diff --git a/libgloss/mcore/unlink.c b/libgloss/mcore/unlink.c index 16dda14f2..9cbcfc53c 100644 --- a/libgloss/mcore/unlink.c +++ b/libgloss/mcore/unlink.c @@ -20,8 +20,7 @@ * we just return an error. */ int -_DEFUN (_unlink, (path), - char * path) +_unlink (char * path) { errno = EIO; return (-1); diff --git a/libgloss/mcore/write.c b/libgloss/mcore/write.c index 189ea6222..87dca10a1 100644 --- a/libgloss/mcore/write.c +++ b/libgloss/mcore/write.c @@ -22,8 +22,7 @@ extern int _EXFUN (outbyte, (char x)); * open will only return an error. */ int -_DEFUN (_write, (fd, buf, nbytes), - int fd, +_write (int fd, char *buf, int nbytes) { |