Browse Source

ansification: remove _DEFUN

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
sh3port_dev
Yaakov Selkowitz 4 years ago
parent
commit
9087163804
  1. 3
      libgloss/bfin/_exit.c
  2. 3
      libgloss/close.c
  3. 3
      libgloss/cr16/fstat.c
  4. 3
      libgloss/cr16/getpid.c
  5. 3
      libgloss/cr16/isatty.c
  6. 3
      libgloss/cr16/kill.c
  7. 3
      libgloss/cr16/putnum.c
  8. 3
      libgloss/cr16/stat.c
  9. 3
      libgloss/crx/fstat.c
  10. 3
      libgloss/crx/getpid.c
  11. 3
      libgloss/crx/isatty.c
  12. 3
      libgloss/crx/kill.c
  13. 3
      libgloss/crx/putnum.c
  14. 3
      libgloss/crx/stat.c
  15. 2
      libgloss/epiphany/_isatty.c
  16. 3
      libgloss/frv/fstat.c
  17. 3
      libgloss/frv/getpid.c
  18. 3
      libgloss/frv/isatty.c
  19. 3
      libgloss/frv/kill.c
  20. 3
      libgloss/frv/print.c
  21. 3
      libgloss/frv/putnum.c
  22. 9
      libgloss/frv/sim-time.c
  23. 3
      libgloss/frv/stat.c
  24. 3
      libgloss/fstat.c
  25. 3
      libgloss/ft32/fstat.c
  26. 3
      libgloss/ft32/getpid.c
  27. 3
      libgloss/ft32/isatty.c
  28. 3
      libgloss/ft32/kill.c
  29. 3
      libgloss/ft32/sim-lseek.S
  30. 3
      libgloss/ft32/sim-lseek.c
  31. 6
      libgloss/ft32/sim-time.c
  32. 3
      libgloss/ft32/stat.c
  33. 3
      libgloss/getpid.c
  34. 3
      libgloss/isatty.c
  35. 3
      libgloss/kill.c
  36. 3
      libgloss/libnosys/_exit.c
  37. 3
      libgloss/libnosys/chown.c
  38. 3
      libgloss/libnosys/close.c
  39. 3
      libgloss/libnosys/execve.c
  40. 3
      libgloss/libnosys/fork.c
  41. 3
      libgloss/libnosys/fstat.c
  42. 3
      libgloss/libnosys/getpid.c
  43. 3
      libgloss/libnosys/gettod.c
  44. 3
      libgloss/libnosys/isatty.c
  45. 3
      libgloss/libnosys/kill.c
  46. 3
      libgloss/libnosys/link.c
  47. 3
      libgloss/libnosys/lseek.c
  48. 3
      libgloss/libnosys/open.c
  49. 3
      libgloss/libnosys/read.c
  50. 3
      libgloss/libnosys/readlink.c
  51. 3
      libgloss/libnosys/stat.c
  52. 3
      libgloss/libnosys/symlink.c
  53. 3
      libgloss/libnosys/times.c
  54. 3
      libgloss/libnosys/unlink.c
  55. 3
      libgloss/libnosys/wait.c
  56. 3
      libgloss/libnosys/write.c
  57. 3
      libgloss/lm32/isatty.c
  58. 3
      libgloss/lseek.c
  59. 6
      libgloss/m68k/idp-outbyte.c
  60. 6
      libgloss/m68k/mc68ec.c
  61. 3
      libgloss/mcore/close.c
  62. 3
      libgloss/mcore/cmb-exit.c
  63. 3
      libgloss/mcore/cmb-inbyte.c
  64. 3
      libgloss/mcore/cmb-outbyte.c
  65. 3
      libgloss/mcore/fstat.c
  66. 3
      libgloss/mcore/getpid.c
  67. 3
      libgloss/mcore/kill.c
  68. 3
      libgloss/mcore/lseek.c
  69. 3
      libgloss/mcore/open.c
  70. 3
      libgloss/mcore/print.c
  71. 3
      libgloss/mcore/putnum.c
  72. 3
      libgloss/mcore/raise.c
  73. 3
      libgloss/mcore/read.c
  74. 3
      libgloss/mcore/stat.c
  75. 3
      libgloss/mcore/unlink.c
  76. 3
      libgloss/mcore/write.c
  77. 3
      libgloss/moxie/fstat.c
  78. 3
      libgloss/moxie/getpid.c
  79. 3
      libgloss/moxie/isatty.c
  80. 3
      libgloss/moxie/kill.c
  81. 3
      libgloss/moxie/print.c
  82. 3
      libgloss/moxie/putnum.c
  83. 9
      libgloss/moxie/qemu-time.c
  84. 3
      libgloss/moxie/sim-lseek.S
  85. 3
      libgloss/moxie/sim-lseek.c
  86. 9
      libgloss/moxie/sim-time.c
  87. 3
      libgloss/moxie/stat.c
  88. 3
      libgloss/open.c
  89. 3
      libgloss/print.c
  90. 3
      libgloss/putnum.c
  91. 3
      libgloss/read.c
  92. 2
      libgloss/spu/getpid.c
  93. 3
      libgloss/stat.c
  94. 3
      libgloss/tic6x/getpid.c
  95. 3
      libgloss/tic6x/kill.c
  96. 3
      libgloss/unlink.c
  97. 3
      libgloss/write.c
  98. 8
      libgloss/xc16x/misc.c
  99. 3
      libgloss/xstormy16/close.c
  100. 3
      libgloss/xstormy16/fstat.c

3
libgloss/bfin/_exit.c

@ -17,8 +17,7 @@
#include <_ansi.h>
void
_DEFUN (_exit, (rc),
int rc)
_exit (int rc)
{
while (1)
asm volatile ("EXCPT 0;");

3
libgloss/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);
}

3
libgloss/cr16/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 */

3
libgloss/cr16/getpid.c

@ -19,8 +19,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (_getpid, (),
)
_getpid (void)
{
return __MYPID;
}

3
libgloss/cr16/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);
}

3
libgloss/cr16/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)

3
libgloss/cr16/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;

3
libgloss/cr16/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;

3
libgloss/crx/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 */

3
libgloss/crx/getpid.c

@ -19,8 +19,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (getpid, (),
)
getpid (void)
{
return __MYPID;
}

3
libgloss/crx/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);
}

3
libgloss/crx/kill.c

@ -19,8 +19,7 @@
* kill -- go out via exit...
*/
int
_DEFUN (kill, (pid, sig),
int pid,
kill (int pid,
int sig)
{
if(pid == __MYPID)

3
libgloss/crx/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;

3
libgloss/crx/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;

2
libgloss/epiphany/_isatty.c

@ -20,7 +20,7 @@
#include <errno.h>
int
_DEFUN(_isatty, (fd), int fd)
_isatty (int fd)
{
struct stat buf;

3
libgloss/frv/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 */

3
libgloss/frv/getpid.c

@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (_getpid, (),
)
_getpid (void)
{
return __MYPID;
}

3
libgloss/frv/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);
}

3
libgloss/frv/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)

3
libgloss/frv/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++);

3
libgloss/frv/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;

9
libgloss/frv/sim-time.c

@ -38,8 +38,7 @@ extern time_t _sim_time (void) __asm__("_sim_time");
* time -- return current time in seconds.
*/
time_t
_DEFUN (time, time (t),
time_t *t)
time (time_t *t)
{
time_t ret = _sim_time ();
@ -53,8 +52,7 @@ _DEFUN (time, time (t),
* _times -- no clock, so return an error.
*/
int
_DEFUN (_times, _times (buf),
struct tms *buf)
_times (struct tms *buf)
{
errno = EINVAL;
return (-1);
@ -65,8 +63,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;

3
libgloss/frv/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;

3
libgloss/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 */

3
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 */

3
libgloss/ft32/getpid.c

@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (_getpid, (),
)
_getpid (void)
{
return __MYPID;
}

3
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);
}

3
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)

3
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)
{

3
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)
{

6
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;

3
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;

3
libgloss/getpid.c

@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (getpid, (),
)
getpid (void)
{
return __MYPID;
}

3
libgloss/isatty.c

@ -20,8 +20,7 @@
* serial port, we'll say yes, return a 1.
*/
int
_DEFUN (isatty, (fd),
int fd)
isatty (int fd)
{
return (1);
}

3
libgloss/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)

3
libgloss/libnosys/_exit.c

@ -6,8 +6,7 @@
#include <_syslist.h>
void
_DEFUN (_exit, (rc),
int rc)
_exit (int rc)
{
/* Default stub just causes a divide by 0 exception. */
int x = rc / INT_MAX;

3
libgloss/libnosys/chown.c

@ -12,8 +12,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_chown, (path, owner, group),
const char *path,
_chown (const char *path,
uid_t owner,
gid_t group)
{

3
libgloss/libnosys/close.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_close, (fildes),
int fildes)
_close (int fildes)
{
errno = ENOSYS;
return -1;

3
libgloss/libnosys/execve.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_execve, (name, argv, env),
char *name,
_execve (char *name,
char **argv,
char **env)
{

3
libgloss/libnosys/fork.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_fork, (),
void)
_fork (void)
{
errno = ENOSYS;
return -1;

3
libgloss/libnosys/fstat.c

@ -13,8 +13,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_fstat, (fildes, st),
int fildes,
_fstat (int fildes,
struct stat *st)
{
errno = ENOSYS;

3
libgloss/libnosys/getpid.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_getpid, (),
void)
_getpid (void)
{
errno = ENOSYS;
return -1;

3
libgloss/libnosys/gettod.c

@ -15,8 +15,7 @@ extern int errno;
struct timeval;
int
_DEFUN (_gettimeofday, (ptimeval, ptimezone),
struct timeval *ptimeval,
_gettimeofday (struct timeval *ptimeval,
void *ptimezone)
{
errno = ENOSYS;

3
libgloss/libnosys/isatty.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_isatty, (file),
int file)
_isatty (int file)
{
errno = ENOSYS;
return 0;

3
libgloss/libnosys/kill.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_kill, (pid, sig),
int pid,
_kill (int pid,
int sig)
{
errno = ENOSYS;

3
libgloss/libnosys/link.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_link, (existing, new),
char *existing,
_link (char *existing,
char *new)
{
errno = ENOSYS;

3
libgloss/libnosys/lseek.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_lseek, (file, ptr, dir),
int file,
_lseek (int file,
int ptr,
int dir)
{

3
libgloss/libnosys/open.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_open, (file, flags, mode),
char *file,
_open (char *file,
int flags,
int mode)
{

3
libgloss/libnosys/read.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_read, (file, ptr, len),
int file,
_read (int file,
char *ptr,
int len)
{

3
libgloss/libnosys/readlink.c

@ -12,8 +12,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_readlink, (path, buf, bufsize),
const char *path,
_readlink (const char *path,
char *buf,
size_t bufsize)
{

3
libgloss/libnosys/stat.c

@ -13,8 +13,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_stat, (file, st),
const char *file,
_stat (const char *file,
struct stat *st)
{
errno = ENOSYS;

3
libgloss/libnosys/symlink.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_symlink, (path1, path2),
const char *path1,
_symlink (const char *path1,
const char *path2)
{
errno = ENOSYS;

3
libgloss/libnosys/times.c

@ -12,8 +12,7 @@ extern int errno;
#include "warning.h"
clock_t
_DEFUN (_times, (buf),
struct tms *buf)
_times (struct tms *buf)
{
errno = ENOSYS;
return -1;

3
libgloss/libnosys/unlink.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_unlink, (name),
char *name)
_unlink (char *name)
{
errno = ENOSYS;
return -1;

3
libgloss/libnosys/wait.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_wait, (status),
int *status)
_wait (int *status)
{
errno = ENOSYS;
return -1;

3
libgloss/libnosys/write.c

@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
_DEFUN (_write, (file, ptr, len),
int file,
_write (int file,
char *ptr,
int len)
{

3
libgloss/lm32/isatty.c

@ -33,8 +33,7 @@
* other files are not.
*/
int
_DEFUN (_isatty, (fd),
int fd)
_isatty (int fd)
{
if ((fd == 0) || (fd == 1) || (fd == 2))
return 1;

3
libgloss/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)
{

6
libgloss/m68k/idp-outbyte.c

@ -32,8 +32,7 @@
* to channel A.
*/
static void
_DEFUN (raw_outbyte, (byte),
char byte)
raw_outbyte (char byte)
{
/* First, wait for the UART to finish clocking out the last
character we sent, if any. Then, give it the next character to
@ -64,8 +63,7 @@ _DEFUN (raw_outbyte, (byte),
* latter we put in libidp.a, which is selected by idp.ld.
*/
void
_DEFUN (outbyte, (byte),
char byte)
outbyte (char byte)
{
#ifdef GDB_MONITOR_OUTPUT
raw_outbyte (0x0f);

6
libgloss/m68k/mc68ec.c

@ -25,8 +25,7 @@
* prompt. It can be restarted from there.
*/
void
_DEFUN (_exit, (status),
int_status)
_exit (int_status)
{
/* Use `i' constraint to get proper immediate-operand syntax for
target assembler configuration. */
@ -38,8 +37,7 @@ _DEFUN (_exit, (status),
* use the timer, but I'm waiting for docs. (sigh)
*/
void
_DEFUN (delay, (num),
int num)
delay (int num)
{
while (num--)
{

3
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);
}

3
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");

3
libgloss/mcore/cmb-inbyte.c

@ -15,8 +15,7 @@
#include <_ansi.h>
int
_DEFUN (inbyte, (),
void)
inbyte (void)
{
return -1;

3
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))
;

3
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 */

3
libgloss/mcore/getpid.c

@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (_getpid, (),
)
_getpid (void)
{
return __MYPID;
}

3
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)

3
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)
{

3
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)
{

3
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++);

3
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;

3
libgloss/mcore/raise.c

@ -15,8 +15,7 @@
#include "glue.h"
int
_DEFUN (_raise, (sig),
int sig)
_raise (int sig)
{
return _kill (_getpid (), sig);
}

3
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)
{

3
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;

3
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);

3
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)
{

3
libgloss/moxie/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 */

3
libgloss/moxie/getpid.c

@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (_getpid, (),
)
_getpid (void)
{
return __MYPID;
}

3
libgloss/moxie/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);
}

3
libgloss/moxie/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)

3
libgloss/moxie/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++);

3
libgloss/moxie/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;

9
libgloss/moxie/qemu-time.c

@ -40,8 +40,7 @@
* _times -- FIXME
*/
int
_DEFUN (_times, _times (buf),
struct tms *buf)
_times (struct tms *buf)
{
errno = EINVAL;
return (-1);
@ -70,8 +69,7 @@ rtc_write (unsigned char reg, unsigned char val)
* time -- return current time in seconds.
*/
time_t
_DEFUN (time, time (t),
time_t *t)
time (time_t *t)
{
struct tm tm;
time_t ret;
@ -100,8 +98,7 @@ _DEFUN (time, time (t),
* return the microseconds.
*/
int
_DEFUN (_gettimeofday, _gettimeofday (tv, tz),
struct timeval *tv,
_gettimeofday (struct timeval *tv,
void *tzvp)
{
struct timezone *tz = tzvp;

3
libgloss/moxie/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)
{

3
libgloss/moxie/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)
{

9
libgloss/moxie/sim-time.c

@ -37,8 +37,7 @@ extern time_t _sim_time (void) __asm__("_sim_time");
* time -- return current time in seconds.
*/
time_t
_DEFUN (time, time (t),
time_t *t)
time (time_t *t)
{
time_t ret = _sim_time ();
@ -52,8 +51,7 @@ _DEFUN (time, time (t),
* _times -- no clock, so return an error.
*/
int
_DEFUN (_times, _times (buf),
struct tms *buf)
_times (struct tms *buf)
{
errno = EINVAL;
return (-1);
@ -64,8 +62,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;

3
libgloss/moxie/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;

3
libgloss/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)
{

3
libgloss/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++);

3
libgloss/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;

3
libgloss/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)
{

2
libgloss/spu/getpid.c

@ -31,7 +31,7 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
*/
int
getpid ()
getpid (void)
{
return (1);
}

3
libgloss/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;

3
libgloss/tic6x/getpid.c

@ -19,8 +19,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (getpid, (),
)
getpid (void)
{
return __MYPID;
}

3
libgloss/tic6x/kill.c

@ -19,8 +19,7 @@
* kill -- go out via exit...
*/
int
_DEFUN (kill, (pid, sig),
int pid,
kill (int pid,
int sig)
{
if(pid == __MYPID)

3
libgloss/unlink.c