@@ -17,8 +17,7 @@
#include <_ansi.h>
void
-_DEFUN (_exit, (rc),
- int rc)
+_exit (int rc)
{
while (1)
asm volatile ("EXCPT 0;");
@@ -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);
}
@@ -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 */
@@ -19,8 +19,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (_getpid, (),
- )
+_getpid (void)
{
return __MYPID;
}
@@ -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);
}
@@ -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)
@@ -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;
@@ -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;
@@ -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 */
@@ -19,8 +19,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (getpid, (),
- )
+getpid (void)
{
return __MYPID;
}
@@ -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);
}
@@ -19,8 +19,7 @@
* kill -- go out via exit...
*/
int
-_DEFUN (kill, (pid, sig),
- int pid,
+kill (int pid,
int sig)
{
if(pid == __MYPID)
@@ -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;
@@ -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;
@@ -20,7 +20,7 @@
#include <errno.h>
int
-_DEFUN(_isatty, (fd), int fd)
+_isatty (int fd)
{
struct stat buf;
@@ -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 */
@@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (_getpid, (),
- )
+_getpid (void)
{
return __MYPID;
}
@@ -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);
}
@@ -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)
@@ -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++);
@@ -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;
@@ -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;
@@ -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;
@@ -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 */
@@ -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 */
@@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (_getpid, (),
- )
+_getpid (void)
{
return __MYPID;
}
@@ -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);
}
@@ -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)
@@ -22,8 +22,7 @@
* an error.
*/
off_t
-_DEFUN (_lseek, (fd, offset, whence),
- int fd,
+_lseek (int fd,
off_t offset,
int whence)
{
@@ -22,8 +22,7 @@
* an error.
*/
off_t
-_DEFUN (_lseek, (fd, offset, whence),
- int fd,
+_lseek (int fd,
off_t offset,
int whence)
{
@@ -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;
@@ -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;
@@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (getpid, (),
- )
+getpid (void)
{
return __MYPID;
}
@@ -20,8 +20,7 @@
* serial port, we'll say yes, return a 1.
*/
int
-_DEFUN (isatty, (fd),
- int fd)
+isatty (int fd)
{
return (1);
}
@@ -18,8 +18,7 @@
* kill -- go out via exit...
*/
int
-_DEFUN (kill, (pid, sig),
- int pid,
+kill (int pid,
int sig)
{
if(pid == __MYPID)
@@ -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;
@@ -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)
{
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_close, (fildes),
- int fildes)
+_close (int fildes)
{
errno = ENOSYS;
return -1;
@@ -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)
{
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_fork, (),
- void)
+_fork (void)
{
errno = ENOSYS;
return -1;
@@ -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;
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_getpid, (),
- void)
+_getpid (void)
{
errno = ENOSYS;
return -1;
@@ -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;
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_isatty, (file),
- int file)
+_isatty (int file)
{
errno = ENOSYS;
return 0;
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_kill, (pid, sig),
- int pid,
+_kill (int pid,
int sig)
{
errno = ENOSYS;
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_link, (existing, new),
- char *existing,
+_link (char *existing,
char *new)
{
errno = ENOSYS;
@@ -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)
{
@@ -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)
{
@@ -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)
{
@@ -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)
{
@@ -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;
@@ -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;
@@ -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;
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_unlink, (name),
- char *name)
+_unlink (char *name)
{
errno = ENOSYS;
return -1;
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_wait, (status),
- int *status)
+_wait (int *status)
{
errno = ENOSYS;
return -1;
@@ -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)
{
@@ -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;
@@ -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)
{
@@ -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);
@@ -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--)
{
@@ -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);
}
@@ -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");
@@ -15,8 +15,7 @@
#include <_ansi.h>
int
-_DEFUN (inbyte, (),
- void)
+inbyte (void)
{
return -1;
@@ -33,8 +33,7 @@
* outbyte -- send a byte to the UART.
*/
void
-_DEFUN (outbyte, (ch),
- char ch)
+outbyte (char ch)
{
while (!(*SRREG & TRDY))
;
@@ -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 */
@@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (_getpid, (),
- )
+_getpid (void)
{
return __MYPID;
}
@@ -18,8 +18,7 @@
* kill -- go out via exit...
*/
int
-_DEFUN (_kill, (pid, sig),
- int pid,
+_kill (int pid,
int sig)
{
if(pid == __MYPID)
@@ -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)
{
@@ -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)
{
@@ -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++);
@@ -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;
@@ -15,8 +15,7 @@
#include "glue.h"
int
-_DEFUN (_raise, (sig),
- int sig)
+_raise (int sig)
{
return _kill (_getpid (), sig);
}
@@ -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)
{
@@ -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;
@@ -20,8 +20,7 @@
* we just return an error.
*/
int
-_DEFUN (_unlink, (path),
- char * path)
+_unlink (char * path)
{
errno = EIO;
return (-1);
@@ -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)
{
@@ -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 */
@@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (_getpid, (),
- )
+_getpid (void)
{
return __MYPID;
}
@@ -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);
}
@@ -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)
@@ -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++);
@@ -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;
@@ -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;
@@ -22,8 +22,7 @@
* an error.
*/
off_t
-_DEFUN (_lseek, (fd, offset, whence),
- int fd,
+_lseek (int fd,
off_t offset,
int whence)
{
@@ -22,8 +22,7 @@
* an error.
*/
off_t
-_DEFUN (_lseek, (fd, offset, whence),
- int fd,
+_lseek (int fd,
off_t offset,
int whence)
{
@@ -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;
@@ -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;
@@ -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)
{
@@ -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++);
@@ -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;
@@ -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)
{
@@ -31,7 +31,7 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
*/
int
-getpid ()
+getpid (void)
{
return (1);
}
@@ -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;
@@ -19,8 +19,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (getpid, (),
- )
+getpid (void)
{
return __MYPID;
}
@@ -19,8 +19,7 @@
* kill -- go out via exit...
*/
int
-_DEFUN (kill, (pid, sig),
- int pid,
+kill (int pid,
int sig)
{
if(pid == __MYPID)
@@ -20,8 +20,7 @@
* we just return an error.
*/
int
-_DEFUN (unlink, (path),
- char * path)
+unlink (char * path)
{
errno = EIO;
return (-1);
@@ -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)
{
@@ -17,21 +17,19 @@
/* _raise(), getpid(), and kill() are required by abort().
getpid/kill are prefixed with '_' because of MISSING_SYSCALL_NAMES. */
-int _DEFUN(_raise,(sig),
- int sig)
+int _raise (int sig)
{
errno = ENOSYS;
return -1;
}
-int _DEFUN(_getpid,(),)
+int _getpid (void)
{
errno = ENOSYS;
return -1;
}
-int _DEFUN(_kill,(pid, sig),
- int pid,
+int _kill (int pid,
int sig)
{
errno = ENOSYS;
@@ -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);
}
@@ -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 */
@@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
-_DEFUN (_getpid, (),
- )
+_getpid (void)
{
return __MYPID;
}
@@ -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);
}
@@ -18,8 +18,7 @@
* kill -- go out via exit...
*/
int
-_DEFUN (_kill, (pid, sig),
- int pid,
+_kill (int pid,
int sig)
{
if(pid == __MYPID)
@@ -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)
{
@@ -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)
{
@@ -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;
@@ -20,8 +20,7 @@
* we just return an error.
*/
int
-_DEFUN (_unlink, (path),
- char * path)
+_unlink (char * path)
{
errno = EIO;
return (-1);
@@ -11,8 +11,7 @@
#include <stdlib.h>
error_t
-_DEFUN (argz_add, (argz, argz_len, str),
- char **argz,
+argz_add (char **argz,
size_t *argz_len,
const char *str)
{
@@ -11,8 +11,7 @@
#include <argz.h>
error_t
-_DEFUN (argz_add_sep, (argz, argz_len, str, sep),
- char **argz,
+argz_add_sep (char **argz,
size_t *argz_len,
const char *str,
int sep)
@@ -11,8 +11,7 @@
#include <stdlib.h>
error_t
-_DEFUN (argz_append, (argz, argz_len, buf, buf_len),
- char **argz,
+argz_append (char **argz,
size_t *argz_len,
const char *buf,
size_t buf_len)
@@ -10,8 +10,7 @@
#include <sys/types.h>
size_t
-_DEFUN (argz_count, (argz, argz_len),
- const char *argz,
+argz_count (const char *argz,
size_t argz_len)
{
int i;
@@ -11,8 +11,7 @@
#include <stdlib.h>
error_t
-_DEFUN (argz_create, (argv, argz, argz_len),
- char *const argv[],
+argz_create (char *const argv[],
char **argz,
size_t *argz_len)
{
@@ -11,8 +11,7 @@
#include <stdlib.h>
error_t
-_DEFUN (argz_create_sep, (string, sep, argz, argz_len),
- const char *string,
+argz_create_sep (const char *string,
int sep,
char **argz,
size_t *argz_len)
@@ -11,8 +11,7 @@
#include <stdlib.h>
error_t
-_DEFUN (argz_delete, (argz, argz_len, entry),
- char **argz,
+argz_delete (char **argz,
size_t *argz_len,
char *entry)
{
@@ -9,8 +9,7 @@
#include <sys/types.h>
void
-_DEFUN (argz_extract, (argz, argz_len, argv),
- char *argz,
+argz_extract (char *argz,
size_t argz_len,
char **argv)
{
@@ -13,8 +13,7 @@
#include <stddef.h>
error_t
-_DEFUN (argz_insert, (argz, argz_len, before, entry),
- char **argz,
+argz_insert (char **argz,
size_t *argz_len,
char *before,
const char *entry)
@@ -11,8 +11,7 @@
#include <stdlib.h>
char *
-_DEFUN (argz_next, (argz, argz_len, entry),
- char *argz,
+argz_next (char *argz,
size_t argz_len,
const char *entry)
{
@@ -13,8 +13,7 @@
#include "buf_findstr.h"
error_t
-_DEFUN (argz_replace, (argz, argz_len, str, with, replace_count),
- char **argz,
+argz_replace (char **argz,
size_t *argz_len,
const char *str,
const char *with,
@@ -10,8 +10,7 @@
#include <sys/types.h>
void
-_DEFUN (argz_stringify, (argz, argz_len, sep),
- char *argz,
+argz_stringify (char *argz,
size_t argz_len,
int sep)
{
@@ -12,8 +12,7 @@
#include <envz.h>
error_t
-_DEFUN (envz_add, (envz, envz_len, name, value),
- char **envz,
+envz_add (char **envz,
size_t *envz_len,
const char *name,
const char *value)
@@ -13,8 +13,7 @@
#include "buf_findstr.h"
char *
-_DEFUN (envz_entry, (envz, envz_len, name),
- const char *envz,
+envz_entry (const char *envz,
size_t envz_len,
const char *name)
{
@@ -13,8 +13,7 @@
#include "buf_findstr.h"
char *
-_DEFUN (envz_get, (envz, envz_len, name),
- const char *envz,
+envz_get (const char *envz,
size_t envz_len,
const char *name)
{
@@ -12,8 +12,7 @@
#include <envz.h>
error_t
-_DEFUN (envz_merge, (envz, envz_len, envz2, envz2_len, override),
- char **envz,
+envz_merge (char **envz,
size_t *envz_len,
const char *envz2,
size_t envz2_len,
@@ -12,8 +12,7 @@
#include <envz.h>
void
-_DEFUN (envz_remove, (envz, envz_len, name),
- char **envz,
+envz_remove (char **envz,
size_t *envz_len,
const char *name)
{
@@ -12,8 +12,7 @@
#include <envz.h>
void
-_DEFUN (envz_strip, (envz, envz_len),
- char **envz,
+envz_strip (char **envz,
size_t *envz_len)
{
char *entry = 0;
@@ -44,7 +44,7 @@ No OS subroutines are required.
#undef isalnum
int
-_DEFUN(isalnum,(c),int c)
+isalnum (int c)
{
return(__CTYPE_PTR[c+1] & (_U|_L|_N));
}
@@ -43,7 +43,7 @@ No supporting OS subroutines are required.
#undef isalpha
int
-_DEFUN(isalpha,(c),int c)
+isalpha (int c)
{
return(__CTYPE_PTR[c+1] & (_U|_L));
}
@@ -44,7 +44,7 @@ No supporting OS subroutines are required.
#undef isascii
int
-_DEFUN(isascii,(c),int c)
+isascii (int c)
{
return c >= 0 && c< 128;
}
@@ -42,7 +42,7 @@ No supporting OS subroutines are required.
#undef isblank
int
-_DEFUN(isblank,(c),int c)
+isblank (int c)
{
return ((__CTYPE_PTR[c+1] & _B) || (c == '\t'));
}
@@ -46,7 +46,7 @@ No supporting OS subroutines are required.
#undef iscntrl
int
-_DEFUN(iscntrl,(c),int c)
+iscntrl (int c)
{
return(__CTYPE_PTR[c+1] & _C);
}
@@ -45,7 +45,7 @@ No supporting OS subroutines are required.
#undef isdigit
int
-_DEFUN(isdigit,(c),int c)
+isdigit (int c)
{
return(__CTYPE_PTR[c+1] & _N);
}
@@ -43,7 +43,7 @@ No supporting OS subroutines are required.
#undef islower
int
-_DEFUN(islower,(c),int c)
+islower (int c)
{
return ((__CTYPE_PTR[c+1] & (_U|_L)) == _L);
}
@@ -57,7 +57,7 @@ No supporting OS subroutines are required.
#undef isgraph
int
-_DEFUN(isgraph,(c),int c)
+isgraph (int c)
{
return(__CTYPE_PTR[c+1] & (_P|_U|_L|_N));
}
@@ -65,7 +65,7 @@ _DEFUN(isgraph,(c),int c)
#undef isprint
int
-_DEFUN(isprint,(c),int c)
+isprint (int c)
{
return(__CTYPE_PTR[c+1] & (_P|_U|_L|_N|_B));
}
@@ -45,7 +45,7 @@ No supporting OS subroutines are required.
#undef ispunct
int
-_DEFUN(ispunct,(c),int c)
+ispunct (int c)
{
return(__CTYPE_PTR[c+1] & _P);
}
@@ -44,7 +44,7 @@ No supporting OS subroutines are required.
#undef isspace
int
-_DEFUN(isspace,(c),int c)
+isspace (int c)
{
return(__CTYPE_PTR[c+1] & _S);
}
@@ -41,7 +41,7 @@ No supporting OS subroutines are required.
#undef isupper
int
-_DEFUN(isupper,(c),int c)
+isupper (int c)
{
return ((__CTYPE_PTR[c+1] & (_U|_L)) == _U);
}
@@ -37,7 +37,7 @@ No supporting OS subroutines are required.
#include <wctype.h>
int
-_DEFUN(iswalnum,(c),wint_t c)
+iswalnum (wint_t c)
{
return (iswalpha (c) || iswdigit (c));
}
@@ -74,7 +74,7 @@ No supporting OS subroutines are required.
#endif /* _MB_CAPABLE */
int
-_DEFUN(iswalpha,(c), wint_t c)
+iswalpha (wint_t c)
{
#ifdef _MB_CAPABLE
unsigned const char *table;
@@ -69,7 +69,7 @@ No supporting OS subroutines are required.
#include "local.h"
int
-_DEFUN(iswblank,(c), wint_t c)
+iswblank (wint_t c)
{
#ifdef _MB_CAPABLE
c = _jp2uc (c);
@@ -69,7 +69,7 @@ No supporting OS subroutines are required.
#include "local.h"
int
-_DEFUN(iswcntrl,(c), wint_t c)
+iswcntrl (wint_t c)
{
#ifdef _MB_CAPABLE
c = _jp2uc (c);
@@ -38,7 +38,7 @@ No supporting OS subroutines are required.
#include "local.h"
int
-_DEFUN(iswctype,(c, desc), wint_t c, wctype_t desc)
+iswctype (wint_t c, wctype_t desc)
{
switch (desc)
{
@@ -36,7 +36,7 @@ No supporting OS subroutines are required.
#include <wctype.h>
int
-_DEFUN(iswdigit,(c), wint_t c)
+iswdigit (wint_t c)
{
return (c >= (wint_t)'0' && c <= (wint_t)'9');
}
@@ -65,7 +65,7 @@ No supporting OS subroutines are required.
#include <wctype.h>
int
-_DEFUN(iswgraph,(c),wint_t c)
+iswgraph (wint_t c)
{
return (iswprint (c) && !iswspace (c));
}
@@ -36,7 +36,7 @@ No supporting OS subroutines are required.
#include <wctype.h>
int
-_DEFUN(iswlower,(c),wint_t c)
+iswlower (wint_t c)
{
return (towupper (c) != c);
}
@@ -73,7 +73,7 @@ No supporting OS subroutines are required.
#endif /* _MB_CAPABLE */
int
-_DEFUN(iswprint,(c), wint_t c)
+iswprint (wint_t c)
{
#ifdef _MB_CAPABLE
unsigned const char *table;
@@ -69,7 +69,7 @@ No supporting OS subroutines are required.
#include "local.h"
int
-_DEFUN(iswpunct,(c), wint_t c)
+iswpunct (wint_t c)
{
return (!iswalnum (c) && iswgraph (c));
}
@@ -69,7 +69,7 @@ No supporting OS subroutines are required.
#include "local.h"
int
-_DEFUN(iswspace,(c), wint_t c)
+iswspace (wint_t c)
{
#ifdef _MB_CAPABLE
c = _jp2uc (c);
@@ -36,7 +36,7 @@ No supporting OS subroutines are required.
#include <wctype.h>
int
-_DEFUN(iswupper,(c),wint_t c)
+iswupper (wint_t c)
{
return (towlower (c) != c);
}
@@ -36,7 +36,7 @@ No supporting OS subroutines are required.
#include <wctype.h>
int
-_DEFUN(iswxdigit,(c), wint_t c)
+iswxdigit (wint_t c)
{
return ((c >= (wint_t)'0' && c <= (wint_t)'9') ||
(c >= (wint_t)'a' && c <= (wint_t)'f') ||
@@ -44,7 +44,7 @@ No supporting OS subroutines are required.
#undef isxdigit
int
-_DEFUN(isxdigit,(c),int c)
+isxdigit (int c)
{
return(__CTYPE_PTR[c+1] & ((_X)|(_N)));
}
@@ -48,7 +48,7 @@
#define JP_EUCJP 3
static wint_t
-_DEFUN (__jp2uc, (c, type), wint_t c, int type)
+__jp2uc (wint_t c, int type)
{
int index, adj;
unsigned char byte1, byte2;
@@ -152,7 +152,7 @@ _DEFUN (__jp2uc, (c, type), wint_t c, int type)
}
wint_t
-_DEFUN (_jp2uc, (c), wint_t c)
+_jp2uc (wint_t c)
{
if (!strcmp (__current_locale_charset (), "JIS"))
c = __jp2uc (c, JP_JIS);
@@ -41,7 +41,7 @@ No supporting OS subroutines are required.
#undef toascii
int
-_DEFUN(toascii,(c),int c)
+toascii (int c)
{
return (c)&0177;
}
@@ -62,7 +62,7 @@ No supporting OS subroutines are required.
#undef tolower
int
-_DEFUN(tolower,(c),int c)
+tolower (int c)
{
#if defined (_MB_EXTENDED_CHARSETS_ISO) || defined (_MB_EXTENDED_CHARSETS_WINDOWS)
if ((unsigned char) c <= 0x7f)
@@ -62,7 +62,7 @@ No supporting OS subroutines are required.
#undef toupper
int
-_DEFUN(toupper,(c),int c)
+toupper (int c)
{
#if defined (_MB_EXTENDED_CHARSETS_ISO) || defined (_MB_EXTENDED_CHARSETS_WINDOWS)
if ((unsigned char) c <= 0x7f)
@@ -76,8 +76,7 @@ No supporting OS subroutines are required.
#include "local.h"
wint_t
-_DEFUN (_towctrans_r, (r, c, w),
- struct _reent *r,
+_towctrans_r (struct _reent *r,
wint_t c,
wctrans_t w)
{
@@ -94,8 +93,7 @@ _DEFUN (_towctrans_r, (r, c, w),
#ifndef _REENT_ONLY
wint_t
-_DEFUN (towctrans, (c, w),
- wint_t c,
+towctrans (wint_t c,
wctrans_t w)
{
return _towctrans_r (_REENT, c, w);
@@ -73,7 +73,7 @@ No supporting OS subroutines are required.
#include "local.h"
wint_t
-_DEFUN(towlower,(c), wint_t c)
+towlower (wint_t c)
{
#ifdef _MB_CAPABLE
c = _jp2uc (c);
@@ -73,7 +73,7 @@ No supporting OS subroutines are required.
#include "local.h"
wint_t
-_DEFUN(towupper,(c), wint_t c)
+towupper (wint_t c)
{
#ifdef _MB_CAPABLE
c = _jp2uc (c);
@@ -75,8 +75,7 @@ No supporting OS subroutines are required.
#include "local.h"
wctrans_t
-_DEFUN (_wctrans_r, (r, c),
- struct _reent *r,
+_wctrans_r (struct _reent *r,
const char *c)
{
if (!strcmp (c, "tolower"))
@@ -92,8 +91,7 @@ _DEFUN (_wctrans_r, (r, c),
#ifndef _REENT_ONLY
wctrans_t
-_DEFUN (wctrans, (c),
- const char *c)
+wctrans (const char *c)
{
return _wctrans_r (_REENT, c);
}
@@ -76,8 +76,7 @@ No supporting OS subroutines are required.
#include "local.h"
wctype_t
-_DEFUN (_wctype_r, (r, c),
- struct _reent *r,
+_wctype_r (struct _reent *r,
const char *c)
{
switch (*c)
@@ -135,8 +134,7 @@ _DEFUN (_wctype_r, (r, c),
#ifndef _REENT_ONLY
wctype_t
-_DEFUN (wctype, (c),
- const char *c)
+wctype (const char *c)
{
return _wctype_r (_REENT, c);
}
@@ -101,8 +101,7 @@ static euc_cs_desc_t euc_kr_cs_desc [] =
#if defined (ICONV_FROM_UCS_CES_EUC)
static void *
-_DEFUN(euc_from_ucs_init, (rptr, encoding),
- struct _reent *rptr,
+euc_from_ucs_init (struct _reent *rptr,
const char *encoding)
{
int i;
@@ -165,8 +164,7 @@ error1:
}
static size_t
-_DEFUN(euc_from_ucs_close, (rptr, data),
- struct _reent *rptr,
+euc_from_ucs_close (struct _reent *rptr,
void *data)
{
int i;
@@ -185,8 +183,7 @@ _DEFUN(euc_from_ucs_close, (rptr, data),
}
static size_t
-_DEFUN(euc_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+euc_convert_from_ucs (void *data,
register ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -261,8 +258,7 @@ _DEFUN(euc_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_EUC)
static void *
-_DEFUN(euc_to_ucs_init, (rptr, encoding),
- struct _reent *rptr,
+euc_to_ucs_init (struct _reent *rptr,
const char *encoding)
{
int i;
@@ -325,8 +321,7 @@ error1:
}
static size_t
-_DEFUN(euc_to_ucs_close, (rptr, data),
- struct _reent *rptr,
+euc_to_ucs_close (struct _reent *rptr,
void *data)
{
int i;
@@ -345,8 +340,7 @@ _DEFUN(euc_to_ucs_close, (rptr, data),
}
static ucs4_t
-_DEFUN(euc_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+euc_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -432,8 +426,7 @@ _DEFUN(euc_convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_EUC */
static int
-_DEFUN(euc_get_mb_cur_max, (data),
- void *data)
+euc_get_mb_cur_max (void *data)
{
return ((euc_data_t *)data)->mb_cur_max;
}
@@ -40,8 +40,7 @@
#if defined (ICONV_FROM_UCS_CES_TABLE_PCS)
static size_t
-_DEFUN(table_pcs_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+table_pcs_convert_from_ucs (void *data,
ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -65,24 +64,21 @@ _DEFUN(table_pcs_convert_from_ucs, (data, in, outbuf, outbytesleft),
}
static void *
-_DEFUN(table_pcs_from_ucs_init, (rptr, encoding),
- struct _reent *rptr,
+table_pcs_from_ucs_init (struct _reent *rptr,
const char *encoding)
{
return _iconv_from_ucs_ces_handlers_table.init (rptr, encoding);
}
static size_t
-_DEFUN(table_pcs_from_ucs_close, (rptr, data),
- struct _reent *rptr,
+table_pcs_from_ucs_close (struct _reent *rptr,
void *data)
{
return _iconv_from_ucs_ces_handlers_table.close (rptr, data);
}
static int
-_DEFUN(table_pcs_from_ucs_get_mb_cur_max, (data),
- void *data)
+table_pcs_from_ucs_get_mb_cur_max (void *data)
{
return _iconv_from_ucs_ces_handlers_table.get_mb_cur_max (data);
}
@@ -91,8 +87,7 @@ _DEFUN(table_pcs_from_ucs_get_mb_cur_max, (data),
#if defined (ICONV_TO_UCS_CES_TABLE_PCS)
static ucs4_t
-_DEFUN(table_pcs_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+table_pcs_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -113,24 +108,21 @@ _DEFUN(table_pcs_convert_to_ucs, (data, inbuf, inbytesleft),
}
static void *
-_DEFUN(table_pcs_to_ucs_init, (rptr, encoding),
- struct _reent *rptr,
+table_pcs_to_ucs_init (struct _reent *rptr,
const char *encoding)
{
return _iconv_to_ucs_ces_handlers_table.init (rptr, encoding);
}
static size_t
-_DEFUN(table_pcs_to_ucs_close, (rptr, data),
- struct _reent *rptr,
+table_pcs_to_ucs_close (struct _reent *rptr,
void *data)
{
return _iconv_to_ucs_ces_handlers_table.close (rptr, data);
}
static int
-_DEFUN(table_pcs_to_ucs_get_mb_cur_max, (data),
- void *data)
+table_pcs_to_ucs_get_mb_cur_max (void *data)
{
return _iconv_to_ucs_ces_handlers_table.get_mb_cur_max (data);
}
@@ -74,8 +74,7 @@ _EXFUN(load_file, (struct _reent *rptr, const char *name, int direction));
* Interface data and functions implementation.
*/
static size_t
-_DEFUN(table_close, (rptr, data),
- struct _reent *rptr,
+table_close (struct _reent *rptr,
void *data)
{
const iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
@@ -89,8 +88,7 @@ _DEFUN(table_close, (rptr, data),
#if defined (ICONV_FROM_UCS_CES_TABLE)
static void *
-_DEFUN(table_init_from_ucs, (rptr, encoding),
- struct _reent *rptr,
+table_init_from_ucs (struct _reent *rptr,
const char *encoding)
{
int i;
@@ -127,8 +125,7 @@ _DEFUN(table_init_from_ucs, (rptr, encoding),
}
static size_t
-_DEFUN(table_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+table_convert_from_ucs (void *data,
ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -172,8 +169,7 @@ _DEFUN(table_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_TABLE)
static void *
-_DEFUN(table_init_to_ucs, (rptr, encoding),
- struct _reent *rptr,
+table_init_to_ucs (struct _reent *rptr,
const char *encoding)
{
int i;
@@ -210,8 +206,7 @@ _DEFUN(table_init_to_ucs, (rptr, encoding),
}
static ucs4_t
-_DEFUN(table_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+table_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -253,8 +248,7 @@ _DEFUN(table_convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_TABLE */
static int
-_DEFUN(table_get_mb_cur_max, (data),
- void *data)
+table_get_mb_cur_max (void *data)
{
return ((iconv_ccs_desc_t *)data)->bits/8;
}
@@ -303,8 +297,7 @@ _iconv_from_ucs_ces_handlers_table =
* Code that corresponds to 'code'.
*/
static __inline ucs2_t
-_DEFUN(find_code_speed, (code, tblp),
- ucs2_t code,
+find_code_speed (ucs2_t code,
const __uint16_t *tblp)
{
int idx = tblp[code >> 8];
@@ -326,8 +319,7 @@ _DEFUN(find_code_speed, (code, tblp),
* Code that corresponds to 'code'.
*/
static __inline ucs2_t
-_DEFUN(find_code_speed_8bit, (code, tblp),
- ucs2_t code,
+find_code_speed_8bit (ucs2_t code,
const unsigned char *tblp)
{
int idx;
@@ -366,8 +358,7 @@ _DEFUN(find_code_speed_8bit, (code, tblp),
* Code that corresponds to 'code'.
*/
static ucs2_t
-_DEFUN(find_code_size, (code, tblp),
- ucs2_t code,
+find_code_size (ucs2_t code,
const __uint16_t *tblp)
{
int first, last, cur, center;
@@ -460,8 +451,7 @@ _DEFUN(find_code_size, (code, tblp),
* iconv_ccs_desc_t * pointer is success, NULL if failure.
*/
static const iconv_ccs_desc_t *
-_DEFUN(load_file, (rptr, name, direction),
- struct _reent *rptr,
+load_file (struct _reent *rptr,
const char *name,
int direction)
{
@@ -44,8 +44,7 @@
#if defined (ICONV_FROM_UCS_CES_UCS_2_INTERNAL)
static size_t
-_DEFUN(ucs_2_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+ucs_2_internal_convert_from_ucs (void *data,
register ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -66,8 +65,7 @@ _DEFUN(ucs_2_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UCS_2_INTERNAL)
static ucs4_t
-_DEFUN(ucs_2_internal_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+ucs_2_internal_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -89,8 +87,7 @@ _DEFUN(ucs_2_internal_convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_UCS_2_INTERNAL */
static int
-_DEFUN(ucs_2_internal_get_mb_cur_max, (data),
- void *data)
+ucs_2_internal_get_mb_cur_max (void *data)
{
return 2;
}
@@ -50,8 +50,7 @@
#define UCS_2LE "ucs_2le"
static void *
-_DEFUN(ucs_2_init, (rptr, encoding),
- struct _reent *rptr,
+ucs_2_init (struct _reent *rptr,
const char *encoding)
{
int *data;
@@ -68,8 +67,7 @@ _DEFUN(ucs_2_init, (rptr, encoding),
}
static size_t
-_DEFUN(ucs_2_close, (rptr, data),
- struct _reent *rptr,
+ucs_2_close (struct _reent *rptr,
void *data)
{
_free_r (rptr, data);
@@ -78,8 +76,7 @@ _DEFUN(ucs_2_close, (rptr, data),
#if defined (ICONV_FROM_UCS_CES_UCS_2)
static size_t
-_DEFUN(ucs_2_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+ucs_2_convert_from_ucs (void *data,
ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -105,8 +102,7 @@ _DEFUN(ucs_2_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UCS_2)
static ucs4_t
-_DEFUN(ucs_2_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+ucs_2_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -132,8 +128,7 @@ _DEFUN(ucs_2_convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_UCS_2 */
static int
-_DEFUN(ucs_2_get_mb_cur_max, (data),
- void *data)
+ucs_2_get_mb_cur_max (void *data)
{
return 2;
}
@@ -44,8 +44,7 @@
#if defined (ICONV_FROM_UCS_CES_UCS_4_INTERNAL)
static size_t
-_DEFUN(ucs_4_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+ucs_4_internal_convert_from_ucs (void *data,
register ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -66,8 +65,7 @@ _DEFUN(ucs_4_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UCS_4_INTERNAL)
static ucs4_t
-_DEFUN(ucs_4_internal_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+ucs_4_internal_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -89,8 +87,7 @@ _DEFUN(ucs_4_internal_convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_UCS_4_INTERNAL */
static int
-_DEFUN(ucs_4_internal_get_mb_cur_max, (data),
- void *data)
+ucs_4_internal_get_mb_cur_max (void *data)
{
return 2;
}
@@ -51,8 +51,7 @@
#define UCS_4LE "ucs_4le"
static void *
-_DEFUN(ucs_4_init, (rptr, encoding),
- struct _reent *rptr,
+ucs_4_init (struct _reent *rptr,
const char *encoding)
{
int *data;
@@ -69,8 +68,7 @@ _DEFUN(ucs_4_init, (rptr, encoding),
}
static size_t
-_DEFUN(ucs_4_close, (rptr, data),
- struct _reent *rptr,
+ucs_4_close (struct _reent *rptr,
void *data)
{
_free_r(rptr, data);
@@ -80,8 +78,7 @@ _DEFUN(ucs_4_close, (rptr, data),
#if defined (ICONV_FROM_UCS_CES_UCS_4)
static size_t
-_DEFUN(ucs_4_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+ucs_4_convert_from_ucs (void *data,
ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -107,8 +104,7 @@ _DEFUN(ucs_4_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UCS_4)
static ucs4_t
-_DEFUN(ucs_4_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+ucs_4_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -134,8 +130,7 @@ _DEFUN(ucs_4_convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_UCS_4 */
static int
-_DEFUN(ucs_4_get_mb_cur_max, (data),
- void *data)
+ucs_4_get_mb_cur_max (void *data)
{
return 4;
}
@@ -40,8 +40,7 @@
#if defined (ICONV_FROM_UCS_CES_US_ASCII)
static size_t
-_DEFUN(us_ascii_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+us_ascii_convert_from_ucs (void *data,
ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -60,8 +59,7 @@ _DEFUN(us_ascii_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_US_ASCII)
static ucs4_t
-_DEFUN(us_ascii_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+us_ascii_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -83,8 +81,7 @@ _DEFUN(us_ascii_convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_US_ASCII */
static int
-_DEFUN(us_ascii_get_mb_cur_max, (data),
- void *data)
+us_ascii_get_mb_cur_max (void *data)
{
return 2;
}
@@ -58,8 +58,7 @@
#define UTF_16LE "utf_16le"
static size_t
-_DEFUN(utf_16_close, (rptr, data),
- struct _reent *rptr,
+utf_16_close (struct _reent *rptr,
void *data)
{
_free_r(rptr, data);
@@ -68,8 +67,7 @@ _DEFUN(utf_16_close, (rptr, data),
#if defined (ICONV_FROM_UCS_CES_UTF_16)
static void *
-_DEFUN(utf_16_init_from_ucs, (rptr, encoding),
- struct _reent *rptr,
+utf_16_init_from_ucs (struct _reent *rptr,
const char *encoding)
{
int *data;
@@ -88,8 +86,7 @@ _DEFUN(utf_16_init_from_ucs, (rptr, encoding),
}
static size_t
-_DEFUN(utf_16_convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+utf_16_convert_from_ucs (void *data,
register ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -170,8 +167,7 @@ _DEFUN(utf_16_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UTF_16)
static void *
-_DEFUN(utf_16_init_to_ucs, (rptr, encoding),
- struct _reent *rptr,
+utf_16_init_to_ucs (struct _reent *rptr,
const char *encoding)
{
int *data;
@@ -190,8 +186,7 @@ _DEFUN(utf_16_init_to_ucs, (rptr, encoding),
}
static ucs4_t
-_DEFUN(utf_16_convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+utf_16_convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -268,8 +263,7 @@ _DEFUN(utf_16_convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_UTF_16 */
static int
-_DEFUN(utf_16_get_mb_cur_max, (data),
- void *data)
+utf_16_get_mb_cur_max (void *data)
{
return 6;
}
@@ -43,8 +43,7 @@
#if defined (ICONV_FROM_UCS_CES_UTF_8)
static size_t
-_DEFUN(convert_from_ucs, (data, in, outbuf, outbytesleft),
- void *data,
+convert_from_ucs (void *data,
register ucs4_t in,
unsigned char **outbuf,
size_t *outbytesleft)
@@ -125,8 +124,7 @@ _DEFUN(convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UTF_8)
static ucs4_t
-_DEFUN(convert_to_ucs, (data, inbuf, inbytesleft),
- void *data,
+convert_to_ucs (void *data,
const unsigned char **inbuf,
size_t *inbytesleft)
{
@@ -259,8 +257,7 @@ _DEFUN(convert_to_ucs, (data, inbuf, inbytesleft),
#endif /* ICONV_TO_UCS_CES_UTF_8 */
static int
-_DEFUN(get_mb_cur_max, (data),
- void *data)
+get_mb_cur_max (void *data)
{
return UTF8_MB_CUR_MAX;
}
@@ -48,8 +48,7 @@
* Returns canonical form of 'str' if success, NULL if failure.
*/
static const char *
-_DEFUN(canonical_form, (rptr, str),
- struct _reent *rptr,
+canonical_form (struct _reent *rptr,
const char *str)
{
char *p, *p1;
@@ -93,8 +92,7 @@ _DEFUN(canonical_form, (rptr, str),
* and sets current thread's/process's errno.
*/
static char *
-_DEFUN(find_alias, (rptr, alias, table, len),
- struct _reent *rptr,
+find_alias (struct _reent *rptr,
const char *alias,
const char *table,
int len)
@@ -147,8 +145,7 @@ search_again:
* and sets current thread's/process's errno.
*/
char *
-_DEFUN(_iconv_resolve_encoding_name, (rptr, cname, path),
- struct _reent *rptr,
+_iconv_resolve_encoding_name (struct _reent *rptr,
const char *ca)
{
char *p = (char *)ca;
@@ -120,8 +120,7 @@ No supporting OS subroutine calls are required.
*/
iconv_t
-_DEFUN(iconv_open, (to, from),
- const char *to,
+iconv_open (const char *to,
const char *from)
{
return _iconv_open_r (_REENT, to, from);
@@ -129,8 +128,7 @@ _DEFUN(iconv_open, (to, from),
size_t
-_DEFUN(iconv, (cd, inbuf, inbytesleft, outbuf, outbytesleft),
- iconv_t cd,
+iconv (iconv_t cd,
char **__restrict inbuf,
size_t *__restrict inbytesleft,
char **__restrict outbuf,
@@ -142,7 +140,7 @@ _DEFUN(iconv, (cd, inbuf, inbytesleft, outbuf, outbytesleft),
int
-_DEFUN(iconv_close, (cd), iconv_t cd)
+iconv_close (iconv_t cd)
{
return _iconv_close_r (_REENT, cd);
}
@@ -150,8 +148,7 @@ _DEFUN(iconv_close, (cd), iconv_t cd)
#ifndef _REENT_ONLY
iconv_t
-_DEFUN(_iconv_open_r, (rptr, to, from),
- struct _reent *rptr,
+_iconv_open_r (struct _reent *rptr,
const char *to,
const char *from)
{
@@ -201,8 +198,7 @@ _DEFUN(_iconv_open_r, (rptr, to, from),
size_t
-_DEFUN(_iconv_r, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
- struct _reent *rptr,
+_iconv_r (struct _reent *rptr,
iconv_t cd,
const char **inbuf,
size_t *inbytesleft,
@@ -288,8 +284,7 @@ _DEFUN(_iconv_r, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
int
-_DEFUN(_iconv_close_r, (rptr, cd),
- struct _reent *rptr,
+_iconv_close_r (struct _reent *rptr,
iconv_t cd)
{
int res;
@@ -59,8 +59,7 @@
* and sets current thread's/process's errno.
*/
const char *
-_DEFUN(_iconv_nls_construct_filename, (rptr, file, ext),
- struct _reent *rptr,
+_iconv_nls_construct_filename (struct _reent *rptr,
const char *file,
const char *dir,
const char *ext)
@@ -114,8 +113,7 @@ _DEFUN(_iconv_nls_construct_filename, (rptr, file, ext),
* "to" encoding's value if 'direction' isn't 0.
*/
int
-_DEFUN(_iconv_nls_get_mb_cur_max, (cd, direction),
- iconv_t cd,
+_iconv_nls_get_mb_cur_max (iconv_t cd,
int direction)
{
iconv_conversion_t *ic = (iconv_conversion_t *)cd;
@@ -137,8 +135,7 @@ _DEFUN(_iconv_nls_get_mb_cur_max, (cd, direction),
*/
int
-_DEFUN(_iconv_nls_is_stateful, (cd, direction),
- iconv_t cd,
+_iconv_nls_is_stateful (iconv_t cd,
int direction)
{
iconv_conversion_t *ic = (iconv_conversion_t *)cd;
@@ -166,8 +163,7 @@ _DEFUN(_iconv_nls_is_stateful, (cd, direction),
* Same as _iconv_r.
*/
size_t
-_DEFUN(_iconv_nls_conv, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
- struct _reent *rptr,
+_iconv_nls_conv (struct _reent *rptr,
iconv_t cd,
const char **inbuf,
size_t *inbytesleft,
@@ -220,8 +216,7 @@ _DEFUN(_iconv_nls_conv, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
* if 'direction' isn't 0.
*/
void
-_DEFUN(_iconv_nls_get_state, (cd, ps, direction),
- iconv_t cd,
+_iconv_nls_get_state (iconv_t cd,
mbstate_t *ps,
int direction)
{
@@ -247,8 +242,7 @@ _DEFUN(_iconv_nls_get_state, (cd, ps, direction),
* 0 if success, -1 if failure.
*/
int
-_DEFUN(_iconv_nls_set_state, (cd, ps, direction),
- iconv_t cd,
+_iconv_nls_set_state (iconv_t cd,
mbstate_t *ps,
int direction)
{
@@ -259,8 +253,7 @@ _DEFUN(_iconv_nls_set_state, (cd, ps, direction),
/* Same as iconv_open() but don't perform name resolving */
static iconv_t
-_DEFUN(iconv_open1, (rptr, to, from),
- struct _reent *rptr,
+iconv_open1 (struct _reent *rptr,
const char *to,
const char *from)
{
@@ -316,8 +309,7 @@ _DEFUN(iconv_open1, (rptr, to, from),
* If successful - return 0, else set errno and return -1.
*/
int
-_DEFUN(_iconv_nls_open, (rptr, encoding, towc, tomb),
- struct _reent *rptr,
+_iconv_nls_open (struct _reent *rptr,
const char *encoding,
iconv_t *tomb,
iconv_t *towc,
@@ -36,8 +36,7 @@ static int null_conversion_dummy_data;
static void *
-_DEFUN(null_conversion_open, (rptr, to, from),
- struct _reent *rptr,
+null_conversion_open (struct _reent *rptr,
const char *to,
const char *from)
{
@@ -46,8 +45,7 @@ _DEFUN(null_conversion_open, (rptr, to, from),
static size_t
-_DEFUN(null_conversion_close, (rptr, data),
- struct _reent *rptr,
+null_conversion_close (struct _reent *rptr,
void *data)
{
return 0;
@@ -55,9 +53,7 @@ _DEFUN(null_conversion_close, (rptr, data),
static size_t
-_DEFUN(null_conversion_convert,
- (rptr, data, inbuf, inbytesleft, outbuf, outbytesleft),
- struct _reent *rptr,
+null_conversion_convert (struct _reent *rptr,
void *data,
const unsigned char **inbuf,
size_t *inbytesleft,
@@ -93,8 +89,7 @@ _DEFUN(null_conversion_convert,
static int
-_DEFUN(null_conversion_get_mb_cur_max, (data, direction),
- void *data,
+null_conversion_get_mb_cur_max (void *data,
int direction)
{
return ICONV_MB_LEN_MAX;
@@ -102,8 +97,7 @@ _DEFUN(null_conversion_get_mb_cur_max, (data, direction),
static void
-_DEFUN(null_conversion_get_state, (data, state, size),
- void *data,
+null_conversion_get_state (void *data,
mbstate_t *state,
int direction)
{
@@ -112,8 +106,7 @@ _DEFUN(null_conversion_get_state, (data, state, size),
static int
-_DEFUN(null_conversion_set_state, (data, state, direction),
- void *data,
+null_conversion_set_state (void *data,
mbstate_t *state,
int direction)
{
@@ -121,8 +114,7 @@ _DEFUN(null_conversion_set_state, (data, state, direction),
}
static int
-_DEFUN(null_conversion_is_stateful, (data, direction),
- void *data,
+null_conversion_is_stateful (void *data,
int direction)
{
return 0;
@@ -45,8 +45,7 @@ _EXFUN(find_encoding_name, (const char *searchee,
*/
static void *
-_DEFUN(ucs_based_conversion_open, (rptr, to, from),
- struct _reent *rptr,
+ucs_based_conversion_open (struct _reent *rptr,
const char *to,
const char *from)
{
@@ -123,8 +122,7 @@ error:
static size_t
-_DEFUN(ucs_based_conversion_close, (rptr, data),
- struct _reent *rptr,
+ucs_based_conversion_close (struct _reent *rptr,
void *data)
{
iconv_ucs_conversion_t *uc;
@@ -144,9 +142,7 @@ _DEFUN(ucs_based_conversion_close, (rptr, data),
static size_t
-_DEFUN(ucs_based_conversion_convert,
- (rptr, data, inbuf, inbytesleft, outbuf, outbytesleft, flags),
- struct _reent *rptr,
+ucs_based_conversion_convert (struct _reent *rptr,
void *data,
const unsigned char **inbuf,
size_t *inbytesleft,
@@ -238,8 +234,7 @@ _DEFUN(ucs_based_conversion_convert,
static int
-_DEFUN(ucs_based_conversion_get_mb_cur_max, (data, direction),
- void *data,
+ucs_based_conversion_get_mb_cur_max (void *data,
int direction)
{
iconv_ucs_conversion_t *uc = (iconv_ucs_conversion_t *)data;
@@ -252,8 +247,7 @@ _DEFUN(ucs_based_conversion_get_mb_cur_max, (data, direction),
static void
-_DEFUN(ucs_based_conversion_get_state, (data, state, direction),
- void *data,
+ucs_based_conversion_get_state (void *data,
mbstate_t *state,
int direction)
{
@@ -280,8 +274,7 @@ _DEFUN(ucs_based_conversion_get_state, (data, state, direction),
static int
-_DEFUN(ucs_based_conversion_set_state, (data, state, direction),
- void *data,
+ucs_based_conversion_set_state (void *data,
mbstate_t *state,
int direction)
{
@@ -302,8 +295,7 @@ _DEFUN(ucs_based_conversion_set_state, (data, state, direction),
}
static int
-_DEFUN(ucs_based_conversion_is_stateful, (data, direction),
- void *data,
+ucs_based_conversion_is_stateful (void *data,
int direction)
{
iconv_ucs_conversion_t *uc = (iconv_ucs_conversion_t *)data;
@@ -342,8 +334,7 @@ _iconv_ucs_conversion_handlers =
*/
static int
-_DEFUN(find_encoding_name, (searchee, names),
- const char *searchee,
+find_encoding_name (const char *searchee,
const char **names)
{
const char *p;
@@ -58,14 +58,12 @@
#define _EXPARM(name, proto) (* name) proto
#define _EXFNPTR(name, proto) (* name) proto
#endif
-#define _DEFUN(name, arglist, args) name(args)
#ifndef _LONG_DOUBLE
#define _LONG_DOUBLE long double
#endif
#else
#define _EXFUN(name, proto) name()
#define _EXFUN_NOTHROW(name, proto) name()
-#define _DEFUN(name, arglist, args) name arglist args;
#define _LONG_DOUBLE double
#endif
@@ -289,8 +289,7 @@ static char *currentlocale (void);
#endif /* _MB_CAPABLE */
char *
-_DEFUN(_setlocale_r, (p, category, locale),
- struct _reent *p,
+_setlocale_r (struct _reent *p,
int category,
const char *locale)
{
@@ -990,8 +989,7 @@ __locale_ctype_ptr (void)
#ifndef _REENT_ONLY
char *
-_DEFUN (setlocale, (category, locale),
- int category,
+setlocale (int category,
const char *locale)
{
return _setlocale_r (_REENT, category, locale);
@@ -51,8 +51,7 @@ __localeconv_l (struct __locale_t *locale)
}
struct lconv *
-_DEFUN (_localeconv_r, (data),
- struct _reent *data)
+_localeconv_r (struct _reent *data)
{
/* Note that we always fall back to the global locale, even in case
of specifying a reent. Otherwise a call to _localeconv_r would just
@@ -81,8 +81,7 @@ QUICKREF
#endif
int
-_DEFUN (strcmp, (s1, s2),
- const char *s1,
+strcmp (const char *s1,
const char *s2)
{
@@ -81,8 +81,7 @@ QUICKREF
#endif
char*
-_DEFUN (strcpy, (dst0, src0),
- char *__restrict dst0,
+strcpy (char *__restrict dst0,
const char *__restrict src0)
{
@@ -78,8 +78,7 @@ QUICKREF
#endif
size_t
-_DEFUN (strlen, (str),
- const char *str)
+strlen (const char *str)
{
#ifndef HAVE_HW_PCMP
@@ -62,8 +62,7 @@ PORTABILITY
#include <_ansi.h>
__int16_t
-_DEFUN (_atosfix16_r, (reent, s),
- struct _reent *reent,
+_atosfix16_r (struct _reent *reent,
const char *s)
{
return _strtosfix16_r (reent, s, NULL);
@@ -71,8 +70,7 @@ _DEFUN (_atosfix16_r, (reent, s),
#ifndef _REENT_ONLY
__int16_t
-_DEFUN (atosfix16, (s),
- const char *s)
+atosfix16 (const char *s)
{
return strtosfix16 (s, NULL);
}
@@ -8,8 +8,7 @@
#include <_ansi.h>
__int32_t
-_DEFUN (_atosfix32_r, (reent, s),
- struct _reent *reent,
+_atosfix32_r (struct _reent *reent,
const char *s)
{
return _strtosfix32_r (reent, s, NULL);
@@ -17,8 +16,7 @@ _DEFUN (_atosfix32_r, (reent, s),
#ifndef _REENT_ONLY
__int32_t
-_DEFUN (atosfix32, (s),
- const char *s)
+atosfix32 (const char *s)
{
return strtosfix32 (s, NULL);
}
@@ -8,8 +8,7 @@
#include <_ansi.h>
__int64_t
-_DEFUN (_atosfix64_r, (reent, s),
- struct _reent *reent,
+_atosfix64_r (struct _reent *reent,
const char *s)
{
return _strtosfix64_r (reent, s, NULL);
@@ -17,8 +16,7 @@ _DEFUN (_atosfix64_r, (reent, s),
#ifndef _REENT_ONLY
__int64_t
-_DEFUN (atosfix64, (s),
- const char *s)
+atosfix64 (const char *s)
{
return strtosfix64 (s, NULL);
}
@@ -62,8 +62,7 @@ PORTABILITY
#include <_ansi.h>
__uint16_t
-_DEFUN (_atoufix16_r, (reent, s),
- struct _reent *reent,
+_atoufix16_r (struct _reent *reent,
const char *s)
{
return _strtoufix16_r (reent, s, NULL);
@@ -71,8 +70,7 @@ _DEFUN (_atoufix16_r, (reent, s),
#ifndef _REENT_ONLY
__uint16_t
-_DEFUN (atoufix16, (s),
- const char *s)
+atoufix16 (const char *s)
{
return strtoufix16 (s, NULL);
}
@@ -8,8 +8,7 @@
#include <_ansi.h>
__uint32_t
-_DEFUN (_atoufix32_r, (reent, s),
- struct _reent *reent,
+_atoufix32_r (struct _reent *reent,
const char *s)
{
return _strtoufix32_r (reent, s, NULL);
@@ -17,8 +16,7 @@ _DEFUN (_atoufix32_r, (reent, s),
#ifndef _REENT_ONLY
__uint32_t
-_DEFUN (atoufix32, (s),
- const char *s)
+atoufix32 (const char *s)
{
return strtoufix32 (s, NULL);
}
@@ -8,8 +8,7 @@
#include <_ansi.h>
__uint64_t
-_DEFUN (_atoufix64_r, (reent, s),
- struct _reent *reent,
+_atoufix64_r (struct _reent *reent,
const char *s)
{
return _strtoufix64_r (reent, s, NULL);
@@ -17,8 +16,7 @@ _DEFUN (_atoufix64_r, (reent, s),
#ifndef _REENT_ONLY
__uint64_t
-_DEFUN (atoufix64, (s),
- const char *s)
+atoufix64 (const char *s)
{
return strtoufix64 (s, NULL);
}
@@ -92,8 +92,7 @@ PORTABILITY
* Ignores `locale' stuff.
*/
__int16_t
-_DEFUN (_strtosfix16_r, (rptr, nptr, endptr),
- struct _reent *rptr,
+_strtosfix16_r (struct _reent *rptr,
const char *nptr,
char **endptr)
{
@@ -169,8 +168,7 @@ _DEFUN (_strtosfix16_r, (rptr, nptr, endptr),
#ifndef _REENT_ONLY
__int16_t
-_DEFUN (strtosfix16, (s, ptr, base),
- const char *s,
+strtosfix16 (const char *s,
char **ptr)
{
return _strtosfix16_r (_REENT, s, ptr);
@@ -13,8 +13,7 @@
* Ignores `locale' stuff.
*/
__int32_t
-_DEFUN (_strtosfix32_r, (rptr, nptr, endptr),
- struct _reent *rptr,
+_strtosfix32_r (struct _reent *rptr,
const char *nptr,
char **endptr)
{
@@ -92,8 +91,7 @@ _DEFUN (_strtosfix32_r, (rptr, nptr, endptr),
#ifndef _REENT_ONLY
__int32_t
-_DEFUN (strtosfix32, (s, ptr, base),
- const char *s,
+strtosfix32 (const char *s,
char **ptr)
{
return _strtosfix32_r (_REENT, s, ptr);
@@ -13,8 +13,7 @@
* Ignores `locale' stuff.
*/
__int64_t
-_DEFUN (_strtosfix64_r, (rptr, nptr, endptr),
- struct _reent *rptr,
+_strtosfix64_r (struct _reent *rptr,
const char *nptr,
char **endptr)
{
@@ -105,8 +104,7 @@ _DEFUN (_strtosfix64_r, (rptr, nptr, endptr),
#ifndef _REENT_ONLY
__int64_t
-_DEFUN (strtosfix64, (s, ptr, base),
- const char *s,
+strtosfix64 (const char *s,
char **ptr)
{
return _strtosfix64_r (_REENT, s, ptr);
@@ -91,8 +91,7 @@ PORTABILITY
* Ignores `locale' stuff.
*/
__uint16_t
-_DEFUN (_strtoufix16_r, (rptr, nptr, endptr),
- struct _reent *rptr,
+_strtoufix16_r (struct _reent *rptr,
const char *nptr,
char **endptr)
{
@@ -160,8 +159,7 @@ _DEFUN (_strtoufix16_r, (rptr, nptr, endptr),
#ifndef _REENT_ONLY
__uint16_t
-_DEFUN (strtoufix16, (s, ptr, base),
- const char *s,
+strtoufix16 (const char *s,
char **ptr)
{
return _strtoufix16_r (_REENT, s, ptr);
@@ -13,8 +13,7 @@
* Ignores `locale' stuff.
*/
__uint32_t
-_DEFUN (_strtoufix32_r, (rptr, nptr, endptr),
- struct _reent *rptr,
+_strtoufix32_r (struct _reent *rptr,
const char *nptr,
char **endptr)
{
@@ -89,8 +88,7 @@ _DEFUN (_strtoufix32_r, (rptr, nptr, endptr),
#ifndef _REENT_ONLY
__uint32_t
-_DEFUN (strtoufix32, (s, ptr, base),
- const char *s,
+strtoufix32 (const char *s,
char **ptr)
{
return _strtoufix32_r (_REENT, s, ptr);
@@ -13,8 +13,7 @@
* Ignores `locale' stuff.
*/
__uint64_t
-_DEFUN (_strtoufix64_r, (rptr, nptr, endptr),
- struct _reent *rptr,
+_strtoufix64_r (struct _reent *rptr,
const char *nptr,
char **endptr)
{
@@ -104,8 +103,7 @@ _DEFUN (_strtoufix64_r, (rptr, nptr, endptr),
#ifndef _REENT_ONLY
__uint64_t
-_DEFUN (strtoufix64, (s, ptr, base),
- const char *s,
+strtoufix64 (const char *s,
char **ptr)
{
return _strtoufix64_r (_REENT, s, ptr);
@@ -25,8 +25,7 @@ extern char *_simdldtoa_r (struct _reent *, LONG_DOUBLE_UNION *, int,
*/
char *
-_DEFUN (_ufix64toa_r, (rptr, value, mode, ndigits, decpt, sign, rve),
- struct _reent *rptr,
+_ufix64toa_r (struct _reent *rptr,
__uint64_t value,
int mode,
int ndigits,
@@ -44,8 +44,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifndef _REENT_ONLY
void *
-_DEFUN (vec_calloc, (n, size),
- size_t n,
+vec_calloc (size_t n,
size_t size)
{
return _vec_calloc_r (_REENT, n, size);
@@ -6,8 +6,7 @@
#ifndef _REENT_ONLY
void
-_DEFUN (vec_free, (aptr),
- void *aptr)
+vec_free (void *aptr)
{
_free_r (_REENT, aptr);
}
@@ -96,8 +96,7 @@ Supporting OS subroutines required: <<sbrk>>. */
#ifndef _REENT_ONLY
void *
-_DEFUN (vec_malloc, (nbytes),
- size_t nbytes) /* get a block */
+vec_malloc (size_t nbytes) /* get a block */
{
return _memalign_r (_REENT, 16, nbytes);
}
@@ -7,8 +7,7 @@
#ifndef _REENT_ONLY
void *
-_DEFUN (vec_realloc, (ap, nbytes),
- void *ap,
+vec_realloc (void *ap,
size_t nbytes)
{
return _vec_realloc_r (_REENT, ap, nbytes);
@@ -271,8 +271,7 @@ static char *cvt_ufix64 (struct _reent *, unsigned long long, int, int *, int *
#define FIXEDPOINT 0x400 /* fixed-point */
int
-_DEFUN (VFPRINTF, (fp, fmt0, ap),
- FILE * fp,
+VFPRINTF (FILE * fp,
const char *fmt0,
va_list ap)
{
@@ -281,8 +280,7 @@ _DEFUN (VFPRINTF, (fp, fmt0, ap),
}
int
-_DEFUN (_VFPRINTF_R, (data, fp, fmt0, ap),
- struct _reent *data,
+_VFPRINTF_R (struct _reent *data,
FILE * fp,
const char *fmt0,
va_list ap)
@@ -182,8 +182,7 @@ typedef union
#ifndef _REENT_ONLY
int
-_DEFUN (vfscanf, (fp, fmt, ap),
- register FILE *__restrict fp,
+vfscanf (register FILE *__restrict fp,
const char *__restrict fmt,
va_list ap)
{
@@ -203,8 +202,7 @@ __svfscanf (fp, fmt0, ap)
#endif /* !_REENT_ONLY */
int
-_DEFUN (_vfscanf_r, (data, fp, fmt, ap),
- struct _reent *data,
+_vfscanf_r (struct _reent *data,
register FILE *__restrict fp,
const char *__restrict fmt,
va_list ap)
@@ -10,8 +10,7 @@
/* func can be NULL, in which case no function information is given. */
void
-_DEFUN (__assert_func, (file, line, func, failedexpr),
- const char *file,
+__assert_func (const char *file,
int line,
const char *func,
const char *failedexpr)
@@ -31,8 +30,7 @@ _DEFUN (__assert_func, (file, line, func, failedexpr),
}
void
-_DEFUN (__assert, (file, line, failedexpr),
- const char *file,
+__assert (const char *file,
int line,
const char *failedexpr)
{
@@ -37,8 +37,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
void
-_DEFUN (clearerr, (fp),
- FILE * fp)
+clearerr (FILE * fp)
{
int ret;
@@ -7,8 +7,7 @@
#include <fcntl.h>
int
-_DEFUN(creat, (path, mode),
- const char *path,
+creat (const char *path,
mode_t mode)
{
return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
@@ -37,8 +37,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
int
-_DEFUN (fclose, (fp),
- FILE * fp)
+fclose (FILE * fp)
{
int ret;
@@ -34,8 +34,7 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef _REENT_ONLY
/* Just a stub for now. */
FILE *
-_DEFUN (fdopen, (fd, mode),
- int fd,
+fdopen (int fd,
const char *mode)
{
errno = ENOSYS;
@@ -37,8 +37,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
int
-_DEFUN (feof, (fp),
- FILE * fp)
+feof (FILE * fp)
{
int result;
@@ -37,8 +37,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
int
-_DEFUN (ferror, (fp),
- FILE * fp)
+ferror (FILE * fp)
{
int result;
@@ -36,8 +36,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
int
-_DEFUN (fflush, (fp),
- FILE * fp)
+fflush (FILE * fp)
{
int result;
@@ -37,8 +37,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
int
-_DEFUN (fgetc, (fp),
- FILE * fp)
+fgetc (FILE * fp)
{
int result;
@@ -44,8 +44,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (fgetpos, (fp, pos),
- FILE *__restrict fp,
+fgetpos (FILE *__restrict fp,
_fpos_t *__restrict pos)
{
c99_fgetpos_t arg;
@@ -46,8 +46,7 @@ typedef struct
#ifndef _REENT_ONLY
char *
-_DEFUN (fgets, (buf, n, fp),
- char *__restrict buf,
+fgets (char *__restrict buf,
int n,
FILE *__restrict fp)
{
@@ -37,8 +37,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
int
-_DEFUN (fileno, (fp),
- FILE *fp)
+fileno (FILE *fp)
{
int ret;
@@ -45,8 +45,7 @@ typedef struct
#ifndef _REENT_ONLY
FILE *
-_DEFUN (fopen, (file, mode),
- const char *__restrict file,
+fopen (const char *__restrict file,
const char *__restrict mode)
{
int ret;
@@ -46,8 +46,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (fputs, (s, fp),
- char const *__restrict s,
+fputs (char const *__restrict s,
FILE *__restrict fp)
{
c99_fputs_t args;
@@ -49,8 +49,7 @@ typedef struct
#ifndef _REENT_ONLY
size_t
-_DEFUN (fread, (buf, size, count, fp),
- void *__restrict buf,
+fread (void *__restrict buf,
size_t size,
size_t count,
FILE *__restrict fp)
@@ -47,8 +47,7 @@ typedef struct
#ifndef _REENT_ONLY
FILE *
-_DEFUN (freopen, (file, mode, fp),
- const char *__restrict file,
+freopen (const char *__restrict file,
const char *__restrict mode,
FILE *__restrict fp)
{
@@ -47,8 +47,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (fseek, (fp, offset, whence),
- register FILE *fp,
+fseek (register FILE *fp,
long offset,
int whence)
{
@@ -45,8 +45,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (fsetpos, (iop, pos),
- FILE * iop,
+fsetpos (FILE * iop,
const _fpos_t * pos)
{
c99_fsetpos_t args;
@@ -38,8 +38,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
long
-_DEFUN (ftell, (fp),
- FILE * fp)
+ftell (FILE * fp)
{
long ret;
@@ -49,8 +49,7 @@ typedef struct
} c99_fwrite_t;
size_t
-_DEFUN (fwrite, (buf, size, count, fp),
- const void *__restrict buf,
+fwrite (const void *__restrict buf,
size_t size,
size_t count,
FILE * fp)
@@ -14,8 +14,7 @@ typedef struct
} c99_perror_t;
void
-_DEFUN (perror, (s),
- const char *s)
+perror (const char *s)
{
c99_perror_t arg;
@@ -5,8 +5,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN (puts, (s),
- char const * s)
+puts (char const * s)
{
CHECK_STD_INIT(_REENT);
@@ -37,8 +37,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#ifndef _REENT_ONLY
void
-_DEFUN (rewind, (fp),
- FILE * fp)
+rewind (FILE * fp)
{
int ret;
@@ -46,8 +46,7 @@ typedef struct
#ifndef _REENT_ONLY
void
-_DEFUN (setbuf, (fp, buf),
- FILE *__restrict fp,
+setbuf (FILE *__restrict fp,
char *__restrict buf)
{
c99_setbuf_t args;
@@ -50,8 +50,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (setvbuf, (fp, buf, mode, size),
- FILE * fp,
+setvbuf (FILE * fp,
char *buf,
int mode,
size_t size)
@@ -39,8 +39,7 @@ Author: Kazunori Asayama <asayama@sm.sony.co.jp>
static FILE __fp[SPE_FOPEN_MAX];
FILE *
-_DEFUN (__sfp, (d),
- struct _reent *d)
+__sfp (struct _reent *d)
{
int i;
for (i = 0; i < SPE_FOPEN_MAX; i++) {
@@ -53,8 +52,7 @@ _DEFUN (__sfp, (d),
}
static void
-_DEFUN (__cleanup, (s),
- struct _reent *s)
+__cleanup (struct _reent *s)
{
int i;
for (i = 0; i < SPE_FOPEN_MAX; i++) {
@@ -65,8 +63,7 @@ _DEFUN (__cleanup, (s),
}
void
-_DEFUN (__sinit, (s),
- struct _reent *s)
+__sinit (struct _reent *s)
{
s->__cleanup = __cleanup;
s->__sdidinit = 1;
@@ -35,8 +35,7 @@ Author: Joel Schopp <jschopp@austin.ibm.com>
#include "c99ppe.h"
char *
-_DEFUN (tmpnam, (s),
- char *s)
+tmpnam (char *s)
{
/* The return value gets written over buf
*/
@@ -57,8 +57,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (vfprintf, (fp, fmt0, ap),
- FILE *__restrict fp,
+vfprintf (FILE *__restrict fp,
const char *__restrict fmt0,
va_list ap)
{
@@ -57,8 +57,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (vfscanf, (fp, fmt, ap),
- FILE *__restrict fp,
+vfscanf (FILE *__restrict fp,
const char *__restrict fmt,
va_list ap)
{
@@ -23,8 +23,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (vprintf, (fmt, ap),
- const char *fmt,
+vprintf (const char *fmt,
va_list ap)
{
c99_vprintf_t args;
@@ -55,8 +55,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (vscanf, (fmt, ap),
- const char *fmt,
+vscanf (const char *fmt,
va_list ap)
{
c99_vscanf_t args;
@@ -27,8 +27,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (vsnprintf, (str, size, fmt, ap),
- char *__restrict str,
+vsnprintf (char *__restrict str,
size_t size,
const char *__restrict fmt,
va_list ap)
@@ -26,8 +26,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (vsprintf, (str, fmt, ap),
- char *__restrict str,
+vsprintf (char *__restrict str,
const char *__restrict fmt,
va_list ap)
{
@@ -57,8 +57,7 @@ typedef struct
#ifndef _REENT_ONLY
int
-_DEFUN (vsscanf, (str, fmt, ap),
- const char *__restrict str,
+vsscanf (const char *__restrict str,
const char *__restrict fmt,
va_list ap)
{
@@ -177,8 +177,7 @@ parse_number (s, p)
/* Fetch the number at S of SIZE bytes. */
static long
-_DEFUN(get_number, (s, size, unsigned_p),
- char *s,
+get_number (char *s,
long size,
int unsigned_p)
{
@@ -220,8 +219,7 @@ _DEFUN(get_number, (s, size, unsigned_p),
/* Print X in base BASE. */
static void
-_DEFUN(print_number, (base, unsigned_p, n),
- int base,
+print_number (int base,
int unsigned_p,
long n)
{
@@ -254,8 +252,7 @@ _DEFUN(print_number, (base, unsigned_p, n),
stdio is working. */
static void
-_DEFUN(write_char, (c),
- char c)
+write_char (char c)
{
_write_r (_REENT, CONSOLE_FD, &c, 1);
}
@@ -265,8 +262,7 @@ _DEFUN(write_char, (c),
stdio is working. */
static void
-_DEFUN(write_string, (s),
- const char *s)
+write_string (const char *s)
{
_write_r (_REENT, CONSOLE_FD, s, strlen (s));
}
@@ -6,7 +6,7 @@
#include <errno.h>
int
-_DEFUN(_isatty, (fd), int fd)
+_isatty (int fd)
{
struct stat buf;
@@ -49,8 +49,7 @@ extern void _cleanupdir (DIR *dirp);
* close a directory.
*/
int
-_DEFUN(closedir, (dirp),
- register DIR *dirp)
+closedir (register DIR *dirp)
{
int rc;
@@ -5,8 +5,7 @@
#include <fcntl.h>
int
-_DEFUN(creat, (path, mode),
- const char *path,
+creat (const char *path,
mode_t mode)
{
return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
@@ -18,8 +18,7 @@ static char ***p_environ = &environ;
#include <stdarg.h>
int
-_DEFUN(execl, (path, arg0, ...),
- const char *path,
+execl (const char *path,
const char *arg0, ...)
#else
@@ -27,8 +26,7 @@ _DEFUN(execl, (path, arg0, ...),
#include <varargs.h>
int
-_DEFUN(execl, (path, arg0, va_alist),
- const char *path,
+execl (const char *path,
const char *arg0,
va_dcl)
@@ -13,8 +13,7 @@
#include <stdarg.h>
int
-_DEFUN(execle, (path, arg0, ...),
- const char *path,
+execle (const char *path,
const char *arg0, ...)
#else
@@ -22,8 +21,7 @@ _DEFUN(execle, (path, arg0, ...),
#include <varargs.h>
int
-_DEFUN(execle, (path, arg0, va_alist),
- const char *path,
+execle (const char *path,
const char *arg0,
va_dcl)
@@ -13,8 +13,7 @@
#include <stdarg.h>
int
-_DEFUN(execlp, (path, arg0, ...),
- const char *path,
+execlp (const char *path,
const char *arg0, ...)
#else
@@ -22,8 +21,7 @@ _DEFUN(execlp, (path, arg0, ...),
#include <varargs.h>
int
-_DEFUN(execlp, (path, arg0, va_alist),
- const char *path,
+execlp (const char *path,
const char *arg0,
va_dcl)
@@ -14,8 +14,7 @@
static char ***p_environ = &environ;
int
-_DEFUN (execv, (path, argv),
- const char *path,
+execv (const char *path,
char * const argv[])
{
return _execve (path, (char * const *) argv, *p_environ);
@@ -10,8 +10,7 @@
int
-_DEFUN(execve, (path, argv, envp),
- const char *path,
+execve (const char *path,
char * const argv[],
char * const envp[])
{
@@ -21,8 +21,7 @@
*/
static char *
-_DEFUN (strccpy, (s1, s2, c),
- char *s1,
+strccpy (char *s1,
char *s2,
char c)
{
@@ -36,8 +35,7 @@ _DEFUN (strccpy, (s1, s2, c),
}
int
-_DEFUN (execvp, (file, argv),
- const char *file,
+execvp (const char *file,
char * const argv[])
{
char *path = getenv ("PATH");
@@ -4,7 +4,7 @@
#include <reent.h>
int
-_DEFUN(isatty, (fd), int fd)
+isatty (int fd)
{
return _isatty (fd);
}
@@ -47,8 +47,7 @@ static char sccsid[] = "@(#)opendir.c 5.11 (Berkeley) 2/23/91";
* open a directory.
*/
DIR *
-_DEFUN(opendir, (name),
- const char *name)
+opendir (const char *name)
{
register DIR *dirp;
register int fd;
@@ -109,8 +109,7 @@ static struct pid {
} *pidlist;
FILE *
-_DEFUN(popen, (program, type),
- const char *program,
+popen (const char *program,
const char *type)
{
struct pid *cur;
@@ -197,8 +196,7 @@ _DEFUN(popen, (program, type),
* if already `pclosed', or waitpid returns an error.
*/
int
-_DEFUN(pclose, (iop),
- FILE *iop)
+pclose (FILE *iop)
{
register struct pid *cur, *last;
int pstat;
@@ -294,8 +294,7 @@ do_posix_spawn(pid_t *pid, const char *path,
}
int
-_DEFUN(posix_spawn, (pid, path, fa, sa, argv, envp),
- pid_t *pid,
+posix_spawn (pid_t *pid,
const char *path,
const posix_spawn_file_actions_t *fa,
const posix_spawnattr_t *sa,
@@ -306,8 +305,7 @@ _DEFUN(posix_spawn, (pid, path, fa, sa, argv, envp),
}
int
-_DEFUN(posix_spawnp, (pid, path, fa, sa, argv, envp),
- pid_t *pid,
+posix_spawnp (pid_t *pid,
const char *path,
const posix_spawn_file_actions_t *fa,
const posix_spawnattr_t *sa,
@@ -322,8 +320,7 @@ _DEFUN(posix_spawnp, (pid, path, fa, sa, argv, envp),
*/
int
-_DEFUN(posix_spawn_file_actions_init, (ret),
- posix_spawn_file_actions_t *ret)
+posix_spawn_file_actions_init (posix_spawn_file_actions_t *ret)
{
posix_spawn_file_actions_t fa;
@@ -337,8 +334,7 @@ _DEFUN(posix_spawn_file_actions_init, (ret),
}
int
-_DEFUN(posix_spawn_file_actions_destroy, (fa),
- posix_spawn_file_actions_t *fa)
+posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *fa)
{
posix_spawn_file_actions_entry_t *fae;
@@ -357,8 +353,7 @@ _DEFUN(posix_spawn_file_actions_destroy, (fa),
}
int
-_DEFUN(posix_spawn_file_actions_addopen, (fa, fildes, path, oflag, mode),
- posix_spawn_file_actions_t * __restrict fa,
+posix_spawn_file_actions_addopen (posix_spawn_file_actions_t * __restrict fa,
int fildes,
const char * __restrict path,
int oflag,
@@ -392,8 +387,7 @@ _DEFUN(posix_spawn_file_actions_addopen, (fa, fildes, path, oflag, mode),
}
int
-_DEFUN(posix_spawn_file_actions_adddup2, (fa, fildes, newfildes),
- posix_spawn_file_actions_t *fa,
+posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *fa,
int fildes,
int newfildes)
{
@@ -417,8 +411,7 @@ _DEFUN(posix_spawn_file_actions_adddup2, (fa, fildes, newfildes),
}
int
-_DEFUN(posix_spawn_file_actions_addclose, (fa, fildes),
- posix_spawn_file_actions_t *fa,
+posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *fa,
int fildes)
{
posix_spawn_file_actions_entry_t *fae;
@@ -444,8 +437,7 @@ _DEFUN(posix_spawn_file_actions_addclose, (fa, fildes),
*/
int
-_DEFUN(posix_spawnattr_init, (ret),
- posix_spawnattr_t *ret)
+posix_spawnattr_init (posix_spawnattr_t *ret)
{
posix_spawnattr_t sa;
@@ -459,16 +451,14 @@ _DEFUN(posix_spawnattr_init, (ret),
}
int
-_DEFUN(posix_spawnattr_destroy, (sa),
- posix_spawnattr_t *sa)
+posix_spawnattr_destroy (posix_spawnattr_t *sa)
{
free(*sa);
return (0);
}
int
-_DEFUN(posix_spawnattr_getflags, (sa, flags),
- const posix_spawnattr_t * __restrict sa,
+posix_spawnattr_getflags (const posix_spawnattr_t * __restrict sa,
short * __restrict flags)
{
*flags = (*sa)->sa_flags;
@@ -476,8 +466,7 @@ _DEFUN(posix_spawnattr_getflags, (sa, flags),
}
int
-_DEFUN(posix_spawnattr_getpgroup, (sa, pgroup),
- const posix_spawnattr_t * __restrict sa,
+posix_spawnattr_getpgroup (const posix_spawnattr_t * __restrict sa,
pid_t * __restrict pgroup)
{
*pgroup = (*sa)->sa_pgroup;
@@ -485,8 +474,7 @@ _DEFUN(posix_spawnattr_getpgroup, (sa, pgroup),
}
int
-_DEFUN(posix_spawnattr_getschedparam, (sa, schedparam),
- const posix_spawnattr_t * __restrict sa,
+posix_spawnattr_getschedparam (const posix_spawnattr_t * __restrict sa,
struct sched_param * __restrict schedparam)
{
*schedparam = (*sa)->sa_schedparam;
@@ -494,8 +482,7 @@ _DEFUN(posix_spawnattr_getschedparam, (sa, schedparam),
}
int
-_DEFUN(posix_spawnattr_getschedpolicy, (sa, schedpolicy),
- const posix_spawnattr_t * __restrict sa,
+posix_spawnattr_getschedpolicy (const posix_spawnattr_t * __restrict sa,
int * __restrict schedpolicy)
{
*schedpolicy = (*sa)->sa_schedpolicy;
@@ -503,8 +490,7 @@ _DEFUN(posix_spawnattr_getschedpolicy, (sa, schedpolicy),
}
int
-_DEFUN(posix_spawnattr_getsigdefault, (sa, sigdefault),
- const posix_spawnattr_t * __restrict sa,
+posix_spawnattr_getsigdefault (const posix_spawnattr_t * __restrict sa,
sigset_t * __restrict sigdefault)
{
*sigdefault = (*sa)->sa_sigdefault;
@@ -512,8 +498,7 @@ _DEFUN(posix_spawnattr_getsigdefault, (sa, sigdefault),
}
int
-_DEFUN(posix_spawnattr_getsigmask, (sa, sigmask),
- const posix_spawnattr_t * __restrict sa,
+posix_spawnattr_getsigmask (const posix_spawnattr_t * __restrict sa,
sigset_t * __restrict sigmask)
{
*sigmask = (*sa)->sa_sigmask;
@@ -521,8 +506,7 @@ _DEFUN(posix_spawnattr_getsigmask, (sa, sigmask),
}
int
-_DEFUN(posix_spawnattr_setflags, (sa, flags),
- posix_spawnattr_t *sa,
+posix_spawnattr_setflags (posix_spawnattr_t *sa,
short flags)
{
(*sa)->sa_flags = flags;
@@ -530,8 +514,7 @@ _DEFUN(posix_spawnattr_setflags, (sa, flags),
}
int
-_DEFUN(posix_spawnattr_setpgroup, (sa, pgroup),
- posix_spawnattr_t *sa,
+posix_spawnattr_setpgroup (posix_spawnattr_t *sa,
pid_t pgroup)
{
(*sa)->sa_pgroup = pgroup;
@@ -539,8 +522,7 @@ _DEFUN(posix_spawnattr_setpgroup, (sa, pgroup),
}
int
-_DEFUN(posix_spawnattr_setschedparam, (sa, schedparam),
- posix_spawnattr_t * __restrict sa,
+posix_spawnattr_setschedparam (posix_spawnattr_t * __restrict sa,
const struct sched_param * __restrict schedparam)
{
(*sa)->sa_schedparam = *schedparam;
@@ -548,8 +530,7 @@ _DEFUN(posix_spawnattr_setschedparam, (sa, schedparam),
}
int
-_DEFUN(posix_spawnattr_setschedpolicy, (sa, schedpolicy),
- posix_spawnattr_t *sa,
+posix_spawnattr_setschedpolicy (posix_spawnattr_t *sa,
int schedpolicy)
{
(*sa)->sa_schedpolicy = schedpolicy;
@@ -557,8 +538,7 @@ _DEFUN(posix_spawnattr_setschedpolicy, (sa, schedpolicy),
}
int
-_DEFUN(posix_spawnattr_setsigdefault, (sa, sigdefault),
- posix_spawnattr_t * __restrict sa,
+posix_spawnattr_setsigdefault (posix_spawnattr_t * __restrict sa,
const sigset_t * __restrict sigdefault)
{
(*sa)->sa_sigdefault = *sigdefault;
@@ -566,8 +546,7 @@ _DEFUN(posix_spawnattr_setsigdefault, (sa, sigdefault),
}
int
-_DEFUN(posix_spawnattr_setsigmask, (sa, sigmask),
- posix_spawnattr_t * __restrict sa,
+posix_spawnattr_setsigmask (posix_spawnattr_t * __restrict sa,
const sigset_t * __restrict sigmask)
{
(*sa)->sa_sigmask = *sigmask;
@@ -45,8 +45,7 @@ extern int getdents (int fd, void *dp, int count);
* get next entry in a directory.
*/
struct dirent *
-_DEFUN(readdir, (dirp),
- register DIR *dirp)
+readdir (register DIR *dirp)
{
register struct dirent *dp;
@@ -50,8 +50,7 @@ extern int getdents (int fd, void *dp, int count);
* get next entry in a directory using supplied dirent structure.
*/
int
-_DEFUN(readdir_r, (dirp, dp, dpp),
- register DIR *__restrict dirp,
+readdir_r (register DIR *__restrict dirp,
struct dirent *__restrict dp,
struct dirent **__restrict dpp) {
@@ -42,8 +42,7 @@ static char sccsid[] = "@(#)rewinddir.c 5.1 (Berkeley) 5/25/90";
#include <sys/lock.h>
void
-_DEFUN(rewinddir, (dirp),
- DIR *dirp)
+rewinddir (DIR *dirp)
{
#ifdef HAVE_DD_LOCK
__lock_acquire_recursive(dirp->dd_lock);
@@ -68,8 +68,7 @@ static char sccsid[] = "@(#)scandir.c 5.10 (Berkeley) 2/23/91";
#endif
int
-_DEFUN(scandir, (dirname, namelist, select, dcomp),
- const char *dirname,
+scandir (const char *dirname,
struct dirent ***namelist,
int (*select) __P((const struct dirent *)),
int (*dcomp) __P((const struct dirent **, const struct dirent **)))
@@ -169,8 +168,7 @@ cleanup:
* Alphabetic order comparison routine for those who want it.
*/
int
-_DEFUN(alphasort, (d1, d2),
- const struct dirent **d1,
+alphasort (const struct dirent **d1,
const struct dirent **d2)
{
return(strcmp((*d1)->d_name, (*d2)->d_name));
@@ -46,8 +46,7 @@ static char sccsid[] = "@(#)seekdir.c 5.7 (Berkeley) 6/1/90";
* _seekdir is in telldir.c so that it can share opaque data structures.
*/
void
-_DEFUN(seekdir, (dirp, loc),
- DIR *dirp,
+seekdir (DIR *dirp,
long loc)
{
#ifdef HAVE_DD_LOCK
@@ -81,8 +81,7 @@ __LOCK_INIT(static, __dd_hash_mutex);
#if !defined(_ELIX_LEVEL) || (_ELIX_LEVEL >= 2)
long
-_DEFUN(telldir, (dirp),
- DIR *dirp)
+telldir (DIR *dirp)
{
register int index;
register struct ddloc *lp;
@@ -119,8 +118,7 @@ _DEFUN(telldir, (dirp),
* Only values returned by "telldir" should be passed to seekdir.
*/
void
-_DEFUN(_seekdir, (dirp, loc),
- register DIR *dirp,
+_seekdir (register DIR *dirp,
long loc)
{
register struct ddloc *lp;
@@ -173,8 +171,7 @@ found:
/* clean out any hash entries from a closed directory */
void
-_DEFUN(_cleanupdir, (dirp),
- register DIR *dirp)
+_cleanupdir (register DIR *dirp)
{
int i;
@@ -45,8 +45,7 @@ DESCRIPTION
*/
int
-_DEFUN (_execve_r, (ptr, name, argv, env),
- struct _reent *ptr,
+_execve_r (struct _reent *ptr,
const char *name,
char *const argv[],
char *const env[])
@@ -81,8 +80,7 @@ DESCRIPTION
#ifndef NO_FORK
int
-_DEFUN (_fork_r, (ptr),
- struct _reent *ptr)
+_fork_r (struct _reent *ptr)
{
int ret;
@@ -113,8 +111,7 @@ DESCRIPTION
*/
int
-_DEFUN (_wait_r, (ptr, status),
- struct _reent *ptr,
+_wait_r (struct _reent *ptr,
int *status)
{
int ret;
@@ -40,8 +40,7 @@ DESCRIPTION
*/
int
-_DEFUN (_fcntl_r, (ptr, fd, cmd, arg),
- struct _reent *ptr,
+_fcntl_r (struct _reent *ptr,
int fd,
int cmd,
int arg)
@@ -47,8 +47,7 @@ DESCRIPTION
*/
int
-_DEFUN (_fstat64_r, (ptr, fd, pstat),
- struct _reent *ptr,
+_fstat64_r (struct _reent *ptr,
int fd,
struct stat64 *pstat)
{
@@ -52,8 +52,7 @@ DESCRIPTION
*/
int
-_DEFUN (_gettimeofday_r, (ptr, ptimeval, ptimezone),
- struct _reent *ptr,
+_gettimeofday_r (struct _reent *ptr,
struct timeval *ptimeval,
void *ptimezone)
{
@@ -43,8 +43,7 @@ DESCRIPTION
*/
int
-_DEFUN (_link_r, (ptr, old, new),
- struct _reent *ptr,
+_link_r (struct _reent *ptr,
const char *old,
const char *new)
{
@@ -41,8 +41,7 @@ DESCRIPTION
*/
_off64_t
-_DEFUN (_lseek64_r, (ptr, fd, pos, whence),
- struct _reent *ptr,
+_lseek64_r (struct _reent *ptr,
int fd,
_off64_t pos,
int whence)
@@ -38,8 +38,7 @@ DESCRIPTION
*/
_off_t
-_DEFUN (_lseek_r, (ptr, fd, pos, whence),
- struct _reent *ptr,
+_lseek_r (struct _reent *ptr,
int fd,
_off_t pos,
int whence)
@@ -40,8 +40,7 @@ DESCRIPTION
#include <sys/stat.h>
int
-_DEFUN (_mkdir_r, (ptr, path, mode),
- struct _reent *ptr,
+_mkdir_r (struct _reent *ptr,
const char *path,
int mode)
{
@@ -39,8 +39,7 @@ DESCRIPTION
*/
int
-_DEFUN (_open_r, (ptr, file, flags, mode),
- struct _reent *ptr,
+_open_r (struct _reent *ptr,
const char *file,
int flags,
int mode)
@@ -38,8 +38,7 @@ DESCRIPTION
*/
_ssize_t
-_DEFUN (_read_r, (ptr, fd, buf, cnt),
- struct _reent *ptr,
+_read_r (struct _reent *ptr,
int fd,
void *buf,
size_t cnt)
@@ -30,8 +30,7 @@ int errno;
/* Interim cleanup code */
void
-_DEFUN (cleanup_glue, (ptr, glue),
- struct _reent *ptr,
+cleanup_glue (struct _reent *ptr,
struct _glue *glue)
{
/* Have to reclaim these in reverse order: */
@@ -42,8 +41,7 @@ _DEFUN (cleanup_glue, (ptr, glue),
}
void
-_DEFUN (_reclaim_reent, (ptr),
- struct _reent *ptr)
+_reclaim_reent (struct _reent *ptr)
{
if (ptr != _impure_ptr)
{
@@ -40,8 +40,7 @@ DESCRIPTION
*/
int
-_DEFUN (_rename_r, (ptr, old, new),
- struct _reent *ptr,
+_rename_r (struct _reent *ptr,
const char *old,
const char *new)
{
@@ -41,8 +41,7 @@ DESCRIPTION
*/
void *
-_DEFUN (_sbrk_r, (ptr, incr),
- struct _reent *ptr,
+_sbrk_r (struct _reent *ptr,
ptrdiff_t incr)
{
char *ret;
@@ -43,8 +43,7 @@ DESCRIPTION
*/
int
-_DEFUN (_kill_r, (ptr, pid, sig),
- struct _reent *ptr,
+_kill_r (struct _reent *ptr,
int pid,
int sig)
{
@@ -78,8 +77,7 @@ DESCRIPTION
*/
int
-_DEFUN (_getpid_r, (ptr),
- struct _reent *ptr)
+_getpid_r (struct _reent *ptr)
{
int ret;
ret = _getpid ();
@@ -45,8 +45,7 @@ DESCRIPTION
*/
int
-_DEFUN (_stat64_r, (ptr, file, pstat),
- struct _reent *ptr,
+_stat64_r (struct _reent *ptr,
const char *file,
struct stat64 *pstat)
{
@@ -45,8 +45,7 @@ DESCRIPTION
*/
int
-_DEFUN (_stat_r, (ptr, file, pstat),
- struct _reent *ptr,
+_stat_r (struct _reent *ptr,
const char *file,
struct stat *pstat)
{
@@ -44,8 +44,7 @@ DESCRIPTION
*/
clock_t
-_DEFUN (_times_r, (ptr, ptms),
- struct _reent *ptr,
+_times_r (struct _reent *ptr,
struct tms *ptms)
{
clock_t ret;
@@ -38,8 +38,7 @@ DESCRIPTION
*/
int
-_DEFUN (_unlink_r, (ptr, file),
- struct _reent *ptr,
+_unlink_r (struct _reent *ptr,
const char *file)
{
int ret;
@@ -38,8 +38,7 @@ DESCRIPTION
*/
_ssize_t
-_DEFUN (_write_r, (ptr, fd, buf, cnt),
- struct _reent *ptr,
+_write_r (struct _reent *ptr,
int fd,
const void *buf,
size_t cnt)
@@ -56,8 +56,7 @@ No supporting OS subroutines are required.
#include <stdlib.h>
void *
-_DEFUN (bsearch, (key, base, nmemb, size, compar),
- const void *key,
+bsearch (const void *key,
const void *base,
size_t nmemb,
size_t size,
@@ -104,8 +104,7 @@ int hash_accesses, hash_collisions, hash_expansions, hash_overflows;
/* OPEN/CLOSE */
extern DB *
-_DEFUN(__hash_open, (file, flags, mode, info, dflags),
- const char *file,
+__hash_open (const char *file,
int flags,
int mode,
int dflags,
@@ -57,7 +57,7 @@ __RCSID("$NetBSD: hcreate.c,v 1.2 2001/02/19 21:26:04 ross Exp $");
static struct hsearch_data htab;
int
-_DEFUN(hcreate, (nel), size_t nel)
+hcreate (size_t nel)
{
return hcreate_r (nel, &htab);
}
@@ -69,8 +69,7 @@ hdestroy (void)
}
ENTRY *
-_DEFUN(hsearch, (item, action),
- ENTRY item,
+hsearch (ENTRY item,
ACTION action)
{
ENTRY *retval;
@@ -100,8 +100,7 @@ static inline void swapfunc (char *, char *, int, int);
es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
static inline void
-_DEFUN(swapfunc, (a, b, n, swaptype),
- char *a,
+swapfunc (char *a,
char *b,
int n,
int swaptype)
@@ -131,8 +130,7 @@ _DEFUN(swapfunc, (a, b, n, swaptype),
#endif
static inline char *
-_DEFUN(med3, (a, b, c, cmp, thunk),
- char *a,
+med3 (char *a,
char *b,
char *c,
cmp_t *cmp,
@@ -149,16 +147,14 @@ __unused
#if defined(I_AM_QSORT_R)
void
-_DEFUN(__bsd_qsort_r, (a, n, es, thunk, cmp),
- void *a,
+__bsd_qsort_r (void *a,
size_t n,
size_t es,
void *thunk,
cmp_t *cmp)
#elif defined(I_AM_GNU_QSORT_R)
void
-_DEFUN(qsort_r, (a, n, es, cmp, thunk),
- void *a,
+qsort_r (void *a,
size_t n,
size_t es,
cmp_t *cmp,
@@ -166,8 +162,7 @@ _DEFUN(qsort_r, (a, n, es, cmp, thunk),
#else
#define thunk NULL
void
-_DEFUN(qsort, (a, n, es, cmp),
- void *a,
+qsort (void *a,
size_t n,
size_t es,
cmp_t *cmp)
@@ -26,8 +26,7 @@ __RCSID("$NetBSD: tdelete.c,v 1.2 1999/09/16 11:45:37 lukem Exp $");
/* delete node with given key */
void *
-_DEFUN(tdelete, (vkey, vrootp, compar),
- const void *__restrict vkey, /* key to be deleted */
+tdelete (const void *__restrict vkey, /* key to be deleted */
void **__restrict vrootp, /* address of the root of tree */
int (*compar)(const void *, const void *))
{
@@ -40,8 +40,7 @@ trecurse(root, free_action)
}
void
-_DEFUN(tdestroy, (vrootp, freefct),
- void *vrootp,
+tdestroy (void *vrootp,
void (*freefct)(void *))
{
node_t *root = (node_t *) vrootp;
@@ -25,8 +25,7 @@ __RCSID("$NetBSD: tfind.c,v 1.2 1999/09/16 11:45:37 lukem Exp $");
/* find a node, or return 0 */
void *
-_DEFUN(tfind, (vkey, vrootp, compar),
- const void *vkey, /* key to be found */
+tfind (const void *vkey, /* key to be found */
void **vrootp, /* address of the tree root */
int (*compar)(const void *, const void *))
{
@@ -25,8 +25,7 @@ __RCSID("$NetBSD: tsearch.c,v 1.3 1999/09/16 11:45:37 lukem Exp $");
/* find or insert datum into search tree */
void *
-_DEFUN(tsearch, (vkey, vrootp, compar),
- const void *vkey, /* key to be located */
+tsearch (const void *vkey, /* key to be located */
void **vrootp, /* address of tree root */
int (*compar)(const void *, const void *))
{
@@ -49,8 +49,7 @@ trecurse(root, action, level)
/* Walk the nodes of a tree */
void
-_DEFUN(twalk, (vroot, action),
- const void *vroot, /* Root of the tree to be walked */
+twalk (const void *vroot, /* Root of the tree to be walked */
void (*action)(const void *, VISIT, int))
{
if (vroot != NULL && action != NULL)
@@ -34,8 +34,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <string.h>
void
-_DEFUN(psignal, (sig, s),
- int sig,
+psignal (int sig,
const char *s)
{
if (s != NULL && *s != '\0')
@@ -52,8 +52,7 @@ int _dummy_raise;
#ifndef _REENT_ONLY
int
-_DEFUN (raise, (sig),
- int sig)
+raise (int sig)
{
return _raise_r (_REENT, sig);
}
@@ -61,8 +60,7 @@ _DEFUN (raise, (sig),
#endif
int
-_DEFUN (_raise_r, (reent, sig),
- struct _reent *reent,
+_raise_r (struct _reent *reent,
int sig)
{
return _kill_r (reent, _getpid_r (reent), sig);
@@ -89,8 +89,7 @@ int _dummy_simulated_signal;
#include <_syslist.h>
int
-_DEFUN (_init_signal_r, (ptr),
- struct _reent *ptr)
+_init_signal_r (struct _reent *ptr)
{
int i;
@@ -108,8 +107,7 @@ _DEFUN (_init_signal_r, (ptr),
}
_sig_func_ptr
-_DEFUN (_signal_r, (ptr, sig, func),
- struct _reent *ptr,
+_signal_r (struct _reent *ptr,
int sig,
_sig_func_ptr func)
{
@@ -131,8 +129,7 @@ _DEFUN (_signal_r, (ptr, sig, func),
}
int
-_DEFUN (_raise_r, (ptr, sig),
- struct _reent *ptr,
+_raise_r (struct _reent *ptr,
int sig)
{
_sig_func_ptr func;
@@ -166,8 +163,7 @@ _DEFUN (_raise_r, (ptr, sig),
}
int
-_DEFUN (__sigtramp_r, (ptr, sig),
- struct _reent *ptr,
+__sigtramp_r (struct _reent *ptr,
int sig)
{
_sig_func_ptr func;
@@ -198,15 +194,13 @@ _DEFUN (__sigtramp_r, (ptr, sig),
#ifndef _REENT_ONLY
int
-_DEFUN (raise, (sig),
- int sig)
+raise (int sig)
{
return _raise_r (_REENT, sig);
}
_sig_func_ptr
-_DEFUN (signal, (sig, func),
- int sig,
+signal (int sig,
_sig_func_ptr func)
{
return _signal_r (_REENT, sig, func);
@@ -219,7 +213,7 @@ _init_signal (void)
}
int
-_DEFUN (__sigtramp, (sig), int sig)
+__sigtramp (int sig)
{
return __sigtramp_r (_REENT, sig);
}
@@ -25,8 +25,7 @@
#include "local.h"
int
-_DEFUN(_asiprintf_r, (ptr, strp, fmt),
- struct _reent *ptr,
+_asiprintf_r (struct _reent *ptr,
char **strp,
const char *fmt, ...)
{
@@ -53,8 +52,7 @@ _DEFUN(_asiprintf_r, (ptr, strp, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(asiprintf, (strp, fmt),
- char **strp,
+asiprintf (char **strp,
const char *fmt, ...)
{
int ret;
@@ -14,8 +14,7 @@
#include "local.h"
char *
-_DEFUN(_asniprintf_r, (ptr, buf, lenp, fmt),
- struct _reent *ptr,
+_asniprintf_r (struct _reent *ptr,
char *buf,
size_t *lenp,
const char *fmt, ...)
@@ -61,8 +60,7 @@ _DEFUN(_asniprintf_r, (ptr, buf, lenp, fmt),
#ifndef _REENT_ONLY
char *
-_DEFUN(asniprintf, (buf, lenp, fmt),
- char *buf,
+asniprintf (char *buf,
size_t *lenp,
const char *fmt, ...)
{
@@ -14,8 +14,7 @@
#include "local.h"
char *
-_DEFUN(_asnprintf_r, (ptr, buf, lenp, fmt),
- struct _reent *__restrict ptr,
+_asnprintf_r (struct _reent *__restrict ptr,
char *buf,
size_t *lenp,
const char *__restrict fmt, ...)
@@ -67,8 +66,7 @@ _EXFUN(_asniprintf_r, (struct _reent *, char *, size_t *, const char *, ...)
#ifndef _REENT_ONLY
char *
-_DEFUN(asnprintf, (buf, lenp, fmt),
- char *__restrict buf,
+asnprintf (char *__restrict buf,
size_t *__restrict lenp,
const char *__restrict fmt, ...)
{
@@ -25,8 +25,7 @@
#include "local.h"
int
-_DEFUN(_asprintf_r, (ptr, strp, fmt),
- struct _reent *ptr,
+_asprintf_r (struct _reent *ptr,
char **__restrict strp,
const char *__restrict fmt, ...)
{
@@ -59,8 +58,7 @@ _EXFUN(_asiprintf_r, (struct _reent *, char **, const char *, ...)
#ifndef _REENT_ONLY
int
-_DEFUN(asprintf, (strp, fmt),
- char **__restrict strp,
+asprintf (char **__restrict strp,
const char *__restrict fmt, ...)
{
int ret;
@@ -72,8 +72,7 @@ No supporting OS subroutines are required.
#undef clearerr
void
-_DEFUN(clearerr, (fp),
- FILE * fp)
+clearerr (FILE * fp)
{
CHECK_INIT(_REENT, fp);
_newlib_flockfile_start (fp);
@@ -33,8 +33,7 @@
#undef clearerr_unlocked
void
-_DEFUN(clearerr_unlocked, (fp),
- FILE * fp)
+clearerr_unlocked (FILE * fp)
{
CHECK_INIT(_REENT, fp);
__sclearerr (fp);
@@ -49,8 +49,7 @@ Supporting OS subroutines required: <<sbrk>>, <<write>>.
#include <stdarg.h>
int
-_DEFUN(_diprintf_r, (ptr, fd, format),
- struct _reent *ptr,
+_diprintf_r (struct _reent *ptr,
int fd,
const char *format, ...)
{
@@ -66,8 +65,7 @@ _DEFUN(_diprintf_r, (ptr, fd, format),
#ifndef _REENT_ONLY
int
-_DEFUN(diprintf, (fd, format),
- int fd,
+diprintf (int fd,
const char *format, ...)
{
va_list ap;
@@ -53,8 +53,7 @@ Supporting OS subroutines required: <<sbrk>>, <<write>>.
#include "local.h"
int
-_DEFUN(_dprintf_r, (ptr, fd, format),
- struct _reent *ptr,
+_dprintf_r (struct _reent *ptr,
int fd,
const char *__restrict format, ...)
{
@@ -76,8 +75,7 @@ _EXFUN(_diprintf_r, (struct _reent *, int, const char *, ...)
#ifndef _REENT_ONLY
int
-_DEFUN(dprintf, (fd, format),
- int fd,
+dprintf (int fd,
const char *__restrict format, ...)
{
va_list ap;
@@ -56,8 +56,7 @@ Required OS subroutines: <<close>>, <<fstat>>, <<isatty>>, <<lseek>>,
#include "local.h"
int
-_DEFUN(_fclose_r, (rptr, fp),
- struct _reent *rptr,
+_fclose_r (struct _reent *rptr,
register FILE * fp)
{
int r;
@@ -121,8 +120,7 @@ _DEFUN(_fclose_r, (rptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fclose, (fp),
- register FILE * fp)
+fclose (register FILE * fp)
{
return _fclose_r(_REENT, fp);
}
@@ -57,8 +57,7 @@ Required OS subroutines: <<close>>, <<fstat>>, <<isatty>>, <<lseek>>,
#include "local.h"
int
-_DEFUN(_fcloseall_r, (ptr),
- struct _reent *ptr)
+_fcloseall_r (struct _reent *ptr)
{
return _fwalk_reent (ptr, _fclose_r);
}
@@ -53,8 +53,7 @@ PORTABILITY
#include <_syslist.h>
FILE *
-_DEFUN(_fdopen_r, (ptr, fd, mode),
- struct _reent *ptr,
+_fdopen_r (struct _reent *ptr,
int fd,
const char *mode)
{
@@ -123,8 +122,7 @@ _DEFUN(_fdopen_r, (ptr, fd, mode),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(fdopen, (fd, mode),
- int fd,
+fdopen (int fd,
const char *mode)
{
return _fdopen_r (_REENT, fd, mode);
@@ -65,8 +65,7 @@ No supporting OS subroutines are required.
#undef feof
int
-_DEFUN(feof, (fp),
- FILE * fp)
+feof (FILE * fp)
{
int result;
CHECK_INIT(_REENT, fp);
@@ -32,8 +32,7 @@
#undef feof_unlocked
int
-_DEFUN(feof_unlocked, (fp),
- FILE * fp)
+feof_unlocked (FILE * fp)
{
CHECK_INIT(_REENT, fp);
return __sfeof (fp);
@@ -74,8 +74,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef ferror
int
-_DEFUN(ferror, (fp),
- FILE * fp)
+ferror (FILE * fp)
{
int result;
CHECK_INIT(_REENT, fp);
@@ -33,8 +33,7 @@
#undef ferror_unlocked
int
-_DEFUN(ferror_unlocked, (fp),
- FILE * fp)
+ferror_unlocked (FILE * fp)
{
CHECK_INIT(_REENT, fp);
return __sferror (fp);
@@ -100,8 +100,7 @@ No supporting OS subroutines are required.
/* Core function which does not lock file pointer. This gets called
directly from __srefill. */
int
-_DEFUN(__sflush_r, (ptr, fp),
- struct _reent *ptr,
+__sflush_r (struct _reent *ptr,
register FILE * fp)
{
register unsigned char *p;
@@ -239,8 +238,7 @@ _DEFUN(__sflush_r, (ptr, fp),
and we don't want to move the underlying file pointer unless we're
writing. */
int
-_DEFUN(__sflushw_r, (ptr, fp),
- struct _reent *ptr,
+__sflushw_r (struct _reent *ptr,
register FILE *fp)
{
return (fp->_flags & __SWR) ? __sflush_r (ptr, fp) : 0;
@@ -250,8 +248,7 @@ _DEFUN(__sflushw_r, (ptr, fp),
#endif /* __IMPL_UNLOCKED__ */
int
-_DEFUN(_fflush_r, (ptr, fp),
- struct _reent *ptr,
+_fflush_r (struct _reent *ptr,
register FILE * fp)
{
int ret;
@@ -286,8 +283,7 @@ _DEFUN(_fflush_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fflush, (fp),
- register FILE * fp)
+fflush (register FILE * fp)
{
if (fp == NULL)
return _fwalk_reent (_GLOBAL_REENT, _fflush_r);
@@ -85,8 +85,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
int
-_DEFUN(_fgetc_r, (ptr, fp),
- struct _reent * ptr,
+_fgetc_r (struct _reent * ptr,
FILE * fp)
{
int result;
@@ -100,8 +99,7 @@ _DEFUN(_fgetc_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fgetc, (fp),
- FILE * fp)
+fgetc (FILE * fp)
{
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
int result;
@@ -29,8 +29,7 @@
#include "local.h"
int
-_DEFUN(_fgetc_unlocked_r, (ptr, fp),
- struct _reent * ptr,
+_fgetc_unlocked_r (struct _reent * ptr,
FILE * fp)
{
CHECK_INIT(ptr, fp);
@@ -40,8 +39,7 @@ _DEFUN(_fgetc_unlocked_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fgetc_unlocked, (fp),
- FILE * fp)
+fgetc_unlocked (FILE * fp)
{
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
struct _reent *reent = _REENT;
@@ -65,8 +65,7 @@ No supporting OS subroutines are required.
#include <stdio.h>
int
-_DEFUN(_fgetpos_r, (ptr, fp, pos),
- struct _reent * ptr,
+_fgetpos_r (struct _reent * ptr,
FILE *__restrict fp,
_fpos_t *__restrict pos)
{
@@ -82,8 +81,7 @@ _DEFUN(_fgetpos_r, (ptr, fp, pos),
#ifndef _REENT_ONLY
int
-_DEFUN(fgetpos, (fp, pos),
- FILE *__restrict fp,
+fgetpos (FILE *__restrict fp,
_fpos_t *__restrict pos)
{
return _fgetpos_r (_REENT, fp, pos);
@@ -94,8 +94,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
char *
-_DEFUN(_fgets_r, (ptr, buf, n, fp),
- struct _reent * ptr,
+_fgets_r (struct _reent * ptr,
char *__restrict buf,
int n,
FILE *__restrict fp)
@@ -189,8 +188,7 @@ _DEFUN(_fgets_r, (ptr, buf, n, fp),
#ifndef _REENT_ONLY
char *
-_DEFUN(fgets, (buf, n, fp),
- char *__restrict buf,
+fgets (char *__restrict buf,
int n,
FILE *__restrict fp)
{
@@ -125,8 +125,7 @@ PORTABILITY
#include "local.h"
wint_t
-_DEFUN(__fgetwc, (ptr, fp),
- struct _reent *ptr,
+__fgetwc (struct _reent *ptr,
register FILE *fp)
{
wchar_t wc;
@@ -172,8 +171,7 @@ _DEFUN(__fgetwc, (ptr, fp),
}
wint_t
-_DEFUN(_fgetwc_r, (ptr, fp),
- struct _reent *ptr,
+_fgetwc_r (struct _reent *ptr,
register FILE *fp)
{
wint_t r;
@@ -186,8 +184,7 @@ _DEFUN(_fgetwc_r, (ptr, fp),
}
wint_t
-_DEFUN(fgetwc, (fp),
- FILE *fp)
+fgetwc (FILE *fp)
{
struct _reent *reent = _REENT;
@@ -30,8 +30,7 @@
#include "local.h"
wint_t
-_DEFUN(_fgetwc_unlocked_r, (ptr, fp),
- struct _reent *ptr,
+_fgetwc_unlocked_r (struct _reent *ptr,
register FILE *fp)
{
ORIENT(fp, 1);
@@ -39,8 +38,7 @@ _DEFUN(_fgetwc_unlocked_r, (ptr, fp),
}
wint_t
-_DEFUN(fgetwc_unlocked, (fp),
- FILE *fp)
+fgetwc_unlocked (FILE *fp)
{
struct _reent *reent = _REENT;
@@ -99,8 +99,7 @@ PORTABILITY
#endif
wchar_t *
-_DEFUN(_fgetws_r, (ptr, ws, n, fp),
- struct _reent *ptr,
+_fgetws_r (struct _reent *ptr,
wchar_t * ws,
int n,
FILE * fp)
@@ -172,8 +171,7 @@ error:
}
wchar_t *
-_DEFUN(fgetws, (ws, n, fp),
- wchar_t *__restrict ws,
+fgetws (wchar_t *__restrict ws,
int n,
FILE *__restrict fp)
{
@@ -63,8 +63,7 @@ Supporting OS subroutines required: none.
#include "local.h"
int
-_DEFUN(fileno, (f),
- FILE * f)
+fileno (FILE * f)
{
int result;
CHECK_INIT (_REENT, f);
@@ -30,8 +30,7 @@
#include "local.h"
int
-_DEFUN(fileno_unlocked, (f),
- FILE * f)
+fileno_unlocked (FILE * f)
{
int result;
CHECK_INIT (_REENT, f);
@@ -44,8 +44,7 @@ _NOINLINE_STATIC void
#else
static void
#endif
-_DEFUN(std, (ptr, flags, file),
- FILE *ptr,
+std (FILE *ptr,
int flags,
int file)
{
@@ -124,8 +123,7 @@ struct glue_with_file {
};
struct _glue *
-_DEFUN(__sfmoreglue, (d, n),
- struct _reent *d,
+__sfmoreglue (struct _reent *d,
register int n)
{
struct glue_with_file *g;
@@ -146,8 +144,7 @@ _DEFUN(__sfmoreglue, (d, n),
*/
FILE *
-_DEFUN(__sfp, (d),
- struct _reent *d)
+__sfp (struct _reent *d)
{
FILE *fp;
int n;
@@ -204,8 +201,7 @@ found:
*/
void
-_DEFUN(_cleanup_r, (ptr),
- struct _reent *ptr)
+_cleanup_r (struct _reent *ptr)
{
int (*cleanup_func) (struct _reent *, FILE *);
#ifdef _STDIO_BSD_SEMANTICS
@@ -246,8 +242,7 @@ _cleanup (void)
*/
void
-_DEFUN(__sinit, (s),
- struct _reent *s)
+__sinit (struct _reent *s)
{
__sinit_lock_acquire ();
@@ -329,8 +324,7 @@ __sinit_lock_release (void)
/* Walkable file locking routine. */
static int
-_DEFUN(__fp_lock, (ptr),
- FILE * ptr)
+__fp_lock (FILE * ptr)
{
if (!(ptr->_flags2 & __SNLK))
_flockfile (ptr);
@@ -340,8 +334,7 @@ _DEFUN(__fp_lock, (ptr),
/* Walkable file unlocking routine. */
static int
-_DEFUN(__fp_unlock, (ptr),
- FILE * ptr)
+__fp_unlock (FILE * ptr)
{
if (!(ptr->_flags2 & __SNLK))
_funlockfile (ptr);
@@ -22,8 +22,7 @@
#include <stdarg.h>
int
-_DEFUN(_fiprintf_r, (ptr, fp, fmt),
- struct _reent *ptr,
+_fiprintf_r (struct _reent *ptr,
FILE * fp,
const char *fmt, ...)
{
@@ -39,8 +38,7 @@ _DEFUN(_fiprintf_r, (ptr, fp, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(fiprintf, (fp, fmt),
- FILE * fp,
+fiprintf (FILE * fp,
const char *fmt, ...)
{
int ret;
@@ -30,8 +30,7 @@
*/
int
-_DEFUN(__sflags, (ptr, mode, optr),
- struct _reent *ptr,
+__sflags (struct _reent *ptr,
register char *mode,
int *optr)
{
@@ -83,8 +83,7 @@ typedef struct fmemcookie {
/* Read up to non-zero N bytes into BUF from stream described by
COOKIE; return number of bytes read (0 on EOF). */
static _READ_WRITE_RETURN_TYPE
-_DEFUN(fmemreader, (ptr, cookie, buf, n),
- struct _reent *ptr,
+fmemreader (struct _reent *ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -103,8 +102,7 @@ _DEFUN(fmemreader, (ptr, cookie, buf, n),
/* Write up to non-zero N bytes of BUF into the stream described by COOKIE,
returning the number of bytes written or EOF on failure. */
static _READ_WRITE_RETURN_TYPE
-_DEFUN(fmemwriter, (ptr, cookie, buf, n),
- struct _reent *ptr,
+fmemwriter (struct _reent *ptr,
void *cookie,
const char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -159,8 +157,7 @@ _DEFUN(fmemwriter, (ptr, cookie, buf, n),
/* Seek to position POS relative to WHENCE within stream described by
COOKIE; return resulting position or fail with EOF. */
static _fpos_t
-_DEFUN(fmemseeker, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+fmemseeker (struct _reent *ptr,
void *cookie,
_fpos_t pos,
int whence)
@@ -214,8 +211,7 @@ _DEFUN(fmemseeker, (ptr, cookie, pos, whence),
COOKIE; return resulting position or fail with EOF. */
#ifdef __LARGE64_FILES
static _fpos64_t
-_DEFUN(fmemseeker64, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+fmemseeker64 (struct _reent *ptr,
void *cookie,
_fpos64_t pos,
int whence)
@@ -256,8 +252,7 @@ _DEFUN(fmemseeker64, (ptr, cookie, pos, whence),
/* Reclaim resources used by stream described by COOKIE. */
static int
-_DEFUN(fmemcloser, (ptr, cookie),
- struct _reent *ptr,
+fmemcloser (struct _reent *ptr,
void *cookie)
{
fmemcookie *c = (fmemcookie *) cookie;
@@ -268,8 +263,7 @@ _DEFUN(fmemcloser, (ptr, cookie),
/* Open a memstream around buffer BUF of SIZE bytes, using MODE.
Return the new stream, or fail with NULL. */
FILE *
-_DEFUN(_fmemopen_r, (ptr, buf, size, mode),
- struct _reent *ptr,
+_fmemopen_r (struct _reent *ptr,
void *__restrict buf,
size_t size,
const char *__restrict mode)
@@ -361,8 +355,7 @@ _DEFUN(_fmemopen_r, (ptr, buf, size, mode),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(fmemopen, (buf, size, mode),
- void *__restrict buf,
+fmemopen (void *__restrict buf,
size_t size,
const char *__restrict mode)
{
@@ -113,8 +113,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
FILE *
-_DEFUN(_fopen_r, (ptr, file, mode),
- struct _reent *ptr,
+_fopen_r (struct _reent *ptr,
const char *__restrict file,
const char *__restrict mode)
{
@@ -163,8 +162,7 @@ _DEFUN(_fopen_r, (ptr, file, mode),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(fopen, (file, mode),
- const char *file,
+fopen (const char *file,
const char *mode)
{
return _fopen_r (_REENT, file, mode);
@@ -98,8 +98,7 @@ typedef struct fccookie {
} fccookie;
static _READ_WRITE_RETURN_TYPE
-_DEFUN(fcreader, (ptr, cookie, buf, n),
- struct _reent *ptr,
+fcreader (struct _reent *ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -113,8 +112,7 @@ _DEFUN(fcreader, (ptr, cookie, buf, n),
}
static _READ_WRITE_RETURN_TYPE
-_DEFUN(fcwriter, (ptr, cookie, buf, n),
- struct _reent *ptr,
+fcwriter (struct _reent *ptr,
void *cookie,
const char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -136,8 +134,7 @@ _DEFUN(fcwriter, (ptr, cookie, buf, n),
}
static _fpos_t
-_DEFUN(fcseeker, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+fcseeker (struct _reent *ptr,
void *cookie,
_fpos_t pos,
int whence)
@@ -164,8 +161,7 @@ _DEFUN(fcseeker, (ptr, cookie, pos, whence),
#ifdef __LARGE64_FILES
static _fpos64_t
-_DEFUN(fcseeker64, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+fcseeker64 (struct _reent *ptr,
void *cookie,
_fpos64_t pos,
int whence)
@@ -180,8 +176,7 @@ _DEFUN(fcseeker64, (ptr, cookie, pos, whence),
#endif /* __LARGE64_FILES */
static int
-_DEFUN(fccloser, (ptr, cookie),
- struct _reent *ptr,
+fccloser (struct _reent *ptr,
void *cookie)
{
int result = 0;
@@ -197,8 +192,7 @@ _DEFUN(fccloser, (ptr, cookie),
}
FILE *
-_DEFUN(_fopencookie_r, (ptr, cookie, mode, functions),
- struct _reent *ptr,
+_fopencookie_r (struct _reent *ptr,
void *cookie,
const char *mode,
cookie_io_functions_t functions)
@@ -253,8 +247,7 @@ _DEFUN(_fopencookie_r, (ptr, cookie, mode, functions),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(fopencookie, (cookie, mode, functions),
- void *cookie,
+fopencookie (void *cookie,
const char *mode,
cookie_io_functions_t functions)
{
@@ -22,8 +22,7 @@
#include <stdarg.h>
int
-_DEFUN(_fprintf_r, (ptr, fp, fmt),
- struct _reent *ptr,
+_fprintf_r (struct _reent *ptr,
FILE *__restrict fp,
const char *__restrict fmt, ...)
{
@@ -45,8 +44,7 @@ _EXFUN(_fiprintf_r, (struct _reent *, FILE *, const char *, ...)
#ifndef _REENT_ONLY
int
-_DEFUN(fprintf, (fp, fmt),
- FILE *__restrict fp,
+fprintf (FILE *__restrict fp,
const char *__restrict fmt, ...)
{
int ret;
@@ -60,8 +60,7 @@ No supporting OS subroutines are required.
/* Discard I/O from a single file. */
int
-_DEFUN(_fpurge_r, (ptr, fp),
- struct _reent *ptr,
+_fpurge_r (struct _reent *ptr,
register FILE * fp)
{
int t;
@@ -93,8 +92,7 @@ _DEFUN(_fpurge_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(fpurge, (fp),
- register FILE * fp)
+fpurge (register FILE * fp)
{
return _fpurge_r (_REENT, fp);
}
@@ -102,8 +100,7 @@ _DEFUN(fpurge, (fp),
#ifndef __rtems__
void
-_DEFUN(__fpurge, (fp),
- register FILE * fp)
+__fpurge (register FILE * fp)
{
_fpurge_r (_REENT, fp);
}
@@ -87,8 +87,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
int
-_DEFUN(_fputc_r, (ptr, ch, file),
- struct _reent *ptr,
+_fputc_r (struct _reent *ptr,
int ch,
FILE * file)
{
@@ -102,8 +101,7 @@ _DEFUN(_fputc_r, (ptr, ch, file),
#ifndef _REENT_ONLY
int
-_DEFUN(fputc, (ch, file),
- int ch,
+fputc (int ch,
FILE * file)
{
#if !defined(__OPTIMIZE_SIZE__) && !defined(PREFER_SIZE_OVER_SPEED)
@@ -29,8 +29,7 @@
#include "local.h"
int
-_DEFUN(_fputc_unlocked_r, (ptr, ch, file),
- struct _reent *ptr,
+_fputc_unlocked_r (struct _reent *ptr,
int ch,
FILE * file)
{
@@ -40,8 +39,7 @@ _DEFUN(_fputc_unlocked_r, (ptr, ch, file),
#ifndef _REENT_ONLY
int
-_DEFUN(fputc_unlocked, (ch, file),
- int ch,
+fputc_unlocked (int ch,
FILE * file)
{
#if !defined(__OPTIMIZE_SIZE__) && !defined(PREFER_SIZE_OVER_SPEED)
@@ -86,8 +86,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
* Write the given string to the given file.
*/
int
-_DEFUN(_fputs_r, (ptr, s, fp),
- struct _reent * ptr,
+_fputs_r (struct _reent * ptr,
char const *__restrict s,
FILE *__restrict fp)
{
@@ -135,8 +134,7 @@ error:
#ifndef _REENT_ONLY
int
-_DEFUN(fputs, (s, fp),
- char const *__restrict s,
+fputs (char const *__restrict s,
FILE *__restrict fp)
{
return _fputs_r (_REENT, s, fp);
@@ -128,8 +128,7 @@ PORTABILITY
#include "local.h"
wint_t
-_DEFUN(__fputwc, (ptr, wc, fp),
- struct _reent *ptr,
+__fputwc (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -163,8 +162,7 @@ _DEFUN(__fputwc, (ptr, wc, fp),
}
wint_t
-_DEFUN(_fputwc_r, (ptr, wc, fp),
- struct _reent *ptr,
+_fputwc_r (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -178,8 +176,7 @@ _DEFUN(_fputwc_r, (ptr, wc, fp),
}
wint_t
-_DEFUN(fputwc, (wc, fp),
- wchar_t wc,
+fputwc (wchar_t wc,
FILE *fp)
{
struct _reent *reent = _REENT;
@@ -30,8 +30,7 @@
#include "local.h"
wint_t
-_DEFUN(_fputwc_unlocked_r, (ptr, wc, fp),
- struct _reent *ptr,
+_fputwc_unlocked_r (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -40,8 +39,7 @@ _DEFUN(_fputwc_unlocked_r, (ptr, wc, fp),
}
wint_t
-_DEFUN(fputwc_unlocked, (wc, fp),
- wchar_t wc,
+fputwc_unlocked (wchar_t wc,
FILE *fp)
{
struct _reent *reent = _REENT;
@@ -94,8 +94,7 @@ PORTABILITY
#endif
int
-_DEFUN(_fputws_r, (ptr, ws, fp),
- struct _reent *ptr,
+_fputws_r (struct _reent *ptr,
const wchar_t *ws,
FILE *fp)
{
@@ -158,8 +157,7 @@ error:
}
int
-_DEFUN(fputws, (ws, fp),
- const wchar_t *__restrict ws,
+fputws (const wchar_t *__restrict ws,
FILE *__restrict fp)
{
struct _reent *reent = _REENT;
@@ -93,8 +93,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef __SCLE
static size_t
-_DEFUN(crlf_r, (ptr, fp, buf, count, eof),
- struct _reent * ptr,
+crlf_r (struct _reent * ptr,
FILE * fp,
char * buf,
size_t count,
@@ -142,8 +141,7 @@ _DEFUN(crlf_r, (ptr, fp, buf, count, eof),
#endif
size_t
-_DEFUN(_fread_r, (ptr, buf, size, count, fp),
- struct _reent * ptr,
+_fread_r (struct _reent * ptr,
void *__restrict buf,
size_t size,
size_t count,
@@ -260,8 +258,7 @@ _DEFUN(_fread_r, (ptr, buf, size, count, fp),
#ifndef _REENT_ONLY
size_t
-_DEFUN(fread, (buf, size, count, fp),
- void *__restrict buf,
+fread (void *__restrict buf,
size_t size,
size_t count,
FILE *__restrict fp)
@@ -75,8 +75,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
FILE *
-_DEFUN(_freopen_r, (ptr, file, mode, fp),
- struct _reent *ptr,
+_freopen_r (struct _reent *ptr,
const char *__restrict file,
const char *__restrict mode,
register FILE *__restrict fp)
@@ -243,8 +242,7 @@ _DEFUN(_freopen_r, (ptr, file, mode, fp),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(freopen, (file, mode, fp),
- const char *__restrict file,
+freopen (const char *__restrict file,
const char *__restrict mode,
register FILE *__restrict fp)
{
@@ -81,8 +81,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
int
-_DEFUN(_fseek_r, (ptr, fp, offset, whence),
- struct _reent *ptr,
+_fseek_r (struct _reent *ptr,
register FILE *fp,
long offset,
int whence)
@@ -93,8 +92,7 @@ _DEFUN(_fseek_r, (ptr, fp, offset, whence),
#ifndef _REENT_ONLY
int
-_DEFUN(fseek, (fp, offset, whence),
- register FILE *fp,
+fseek (register FILE *fp,
long offset,
int whence)
{
@@ -93,8 +93,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
int
-_DEFUN(_fseeko_r, (ptr, fp, offset, whence),
- struct _reent *ptr,
+_fseeko_r (struct _reent *ptr,
register FILE *fp,
_off_t offset,
int whence)
@@ -359,8 +358,7 @@ dumb:
#ifndef _REENT_ONLY
int
-_DEFUN(fseeko, (fp, offset, whence),
- register FILE *fp,
+fseeko (register FILE *fp,
_off_t offset,
int whence)
{
@@ -65,8 +65,7 @@ No supporting OS subroutines are required.
#include "local.h"
int
-_DEFUN(__fsetlocking, (fp, type),
- FILE * fp,
+__fsetlocking (FILE * fp,
int type)
{
int result;
@@ -59,8 +59,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <stdio.h>
int
-_DEFUN(_fsetpos_r, (ptr, iop, pos),
- struct _reent * ptr,
+_fsetpos_r (struct _reent * ptr,
FILE * iop,
const _fpos_t * pos)
{
@@ -74,8 +73,7 @@ _DEFUN(_fsetpos_r, (ptr, iop, pos),
#ifndef _REENT_ONLY
int
-_DEFUN(fsetpos, (iop, pos),
- FILE * iop,
+fsetpos (FILE * iop,
const _fpos_t * pos)
{
return _fsetpos_r (_REENT, iop, pos);
@@ -83,8 +83,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
long
-_DEFUN(_ftell_r, (ptr, fp),
- struct _reent *ptr,
+_ftell_r (struct _reent *ptr,
register FILE * fp)
{
_fpos_t pos;
@@ -101,8 +100,7 @@ _DEFUN(_ftell_r, (ptr, fp),
#ifndef _REENT_ONLY
long
-_DEFUN(ftell, (fp),
- register FILE * fp)
+ftell (register FILE * fp)
{
return _ftell_r (_REENT, fp);
}
@@ -83,8 +83,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
_off_t
-_DEFUN(_ftello_r, (ptr, fp),
- struct _reent * ptr,
+_ftello_r (struct _reent * ptr,
register FILE * fp)
{
_fpos_t pos;
@@ -147,8 +146,7 @@ _DEFUN(_ftello_r, (ptr, fp),
#ifndef _REENT_ONLY
_off_t
-_DEFUN(ftello, (fp),
- register FILE * fp)
+ftello (register FILE * fp)
{
return _ftello_r (_REENT, fp);
}
@@ -104,8 +104,7 @@ typedef struct funcookie {
} funcookie;
static _READ_WRITE_RETURN_TYPE
-_DEFUN(funreader, (ptr, cookie, buf, n),
- struct _reent *ptr,
+funreader (struct _reent *ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -119,8 +118,7 @@ _DEFUN(funreader, (ptr, cookie, buf, n),
}
static _READ_WRITE_RETURN_TYPE
-_DEFUN(funwriter, (ptr, cookie, buf, n),
- struct _reent *ptr,
+funwriter (struct _reent *ptr,
void *cookie,
const char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -134,8 +132,7 @@ _DEFUN(funwriter, (ptr, cookie, buf, n),
}
static _fpos_t
-_DEFUN(funseeker, (ptr, cookie, off, whence),
- struct _reent *ptr,
+funseeker (struct _reent *ptr,
void *cookie,
_fpos_t off,
int whence)
@@ -162,8 +159,7 @@ _DEFUN(funseeker, (ptr, cookie, off, whence),
#ifdef __LARGE64_FILES
static _fpos64_t
-_DEFUN(funseeker64, (ptr, cookie, off, whence),
- struct _reent *ptr,
+funseeker64 (struct _reent *ptr,
void *cookie,
_fpos64_t off,
int whence)
@@ -178,8 +174,7 @@ _DEFUN(funseeker64, (ptr, cookie, off, whence),
#endif /* __LARGE64_FILES */
static int
-_DEFUN(funcloser, (ptr, cookie),
- struct _reent *ptr,
+funcloser (struct _reent *ptr,
void *cookie)
{
int result = 0;
@@ -195,8 +190,7 @@ _DEFUN(funcloser, (ptr, cookie),
}
FILE *
-_DEFUN(_funopen_r, (ptr, cookie, readfn, writefn, seekfn, closefn),
- struct _reent *ptr,
+_funopen_r (struct _reent *ptr,
const void *cookie,
funread readfn,
funwrite writefn,
@@ -267,8 +261,7 @@ _DEFUN(_funopen_r, (ptr, cookie, readfn, writefn, seekfn, closefn),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(funopen, (cookie, readfn, writefn, seekfn, closefn),
- const void *cookie,
+funopen (const void *cookie,
funread readfn,
funwrite writefn,
funseek seekfn,
@@ -45,8 +45,7 @@
*/
int
-_DEFUN(__sfvwrite_r, (ptr, fp, uio),
- struct _reent *ptr,
+__sfvwrite_r (struct _reent *ptr,
register FILE *fp,
register struct __suio *uio)
{
@@ -28,8 +28,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
int
-_DEFUN(_fwalk, (ptr, function),
- struct _reent *ptr,
+_fwalk (struct _reent *ptr,
register int (*function) (FILE *))
{
register FILE *fp;
@@ -55,8 +54,7 @@ _DEFUN(_fwalk, (ptr, function),
/* Special version of __fwalk where the function pointer is a reentrant
I/O function (e.g. _fclose_r). */
int
-_DEFUN(_fwalk_reent, (ptr, reent_function),
- struct _reent *ptr,
+_fwalk_reent (struct _reent *ptr,
register int (*reent_function) (struct _reent *, FILE *))
{
register FILE *fp;
@@ -48,8 +48,7 @@ C99, POSIX.1-2001.
#include "local.h"
int
-_DEFUN(_fwide_r, (ptr, fp, mode),
- struct _reent *ptr,
+_fwide_r (struct _reent *ptr,
FILE *fp,
int mode)
{
@@ -70,8 +69,7 @@ _DEFUN(_fwide_r, (ptr, fp, mode),
}
int
-_DEFUN(fwide, (fp, mode),
- FILE *fp,
+fwide (FILE *fp,
int mode)
{
return _fwide_r (_REENT, fp, mode);
@@ -23,8 +23,7 @@
#include <stdarg.h>
int
-_DEFUN(_fwprintf_r, (ptr, fp, fmt),
- struct _reent *ptr,
+_fwprintf_r (struct _reent *ptr,
FILE *fp,
const wchar_t *fmt, ...)
{
@@ -40,8 +39,7 @@ _DEFUN(_fwprintf_r, (ptr, fp, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(fwprintf, (fp, fmt),
- FILE *__restrict fp,
+fwprintf (FILE *__restrict fp,
const wchar_t *__restrict fmt, ...)
{
int ret;
@@ -108,8 +108,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
*/
size_t
-_DEFUN(_fwrite_r, (ptr, buf, size, count, fp),
- struct _reent * ptr,
+_fwrite_r (struct _reent * ptr,
const void *__restrict buf,
size_t size,
size_t count,
@@ -170,8 +169,7 @@ ret:
#ifndef _REENT_ONLY
size_t
-_DEFUN(fwrite, (buf, size, count, fp),
- const void *__restrict buf,
+fwrite (const void *__restrict buf,
size_t size,
size_t count,
FILE * fp)
@@ -76,8 +76,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef getc
int
-_DEFUN(_getc_r, (ptr, fp),
- struct _reent *ptr,
+_getc_r (struct _reent *ptr,
register FILE *fp)
{
int result;
@@ -91,8 +90,7 @@ _DEFUN(_getc_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(getc, (fp),
- register FILE *fp)
+getc (register FILE *fp)
{
int result;
struct _reent *reent = _REENT;
@@ -69,8 +69,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef getc_unlocked
int
-_DEFUN(_getc_unlocked_r, (ptr, fp),
- struct _reent *ptr,
+_getc_unlocked_r (struct _reent *ptr,
register FILE *fp)
{
/* CHECK_INIT is called (eventually) by __srefill_r. */
@@ -81,8 +80,7 @@ _DEFUN(_getc_unlocked_r, (ptr, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(getc_unlocked, (fp),
- register FILE *fp)
+getc_unlocked (register FILE *fp)
{
return __sgetc_r (_REENT, fp);
}
@@ -72,8 +72,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef getchar
int
-_DEFUN(_getchar_r, (reent),
- struct _reent *reent)
+_getchar_r (struct _reent *reent)
{
_REENT_SMALL_CHECK_INIT (reent);
return _getc_r (reent, _stdin_r (reent));
@@ -70,8 +70,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef getchar_unlocked
int
-_DEFUN(_getchar_unlocked_r, (ptr),
- struct _reent *ptr)
+_getchar_unlocked_r (struct _reent *ptr)
{
return _getc_unlocked_r (ptr, _stdin_r (ptr));
}
@@ -40,8 +40,7 @@ No supporting OS subroutines are directly required.
#define DEFAULT_LINE_SIZE 128
ssize_t
-_DEFUN(__getdelim, (bufptr, n, delim, fp),
- char **bufptr,
+__getdelim (char **bufptr,
size_t *n,
int delim,
FILE *fp)
@@ -37,8 +37,7 @@ No supporting OS subroutines are directly required.
extern ssize_t _EXFUN(__getdelim, (char **, size_t *, int, FILE *));
ssize_t
-_DEFUN(__getline, (lptr, n, fp),
- char **lptr,
+__getline (char **lptr,
size_t *n,
FILE *fp)
{
@@ -63,8 +63,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
char *
-_DEFUN(_gets_r, (ptr, buf),
- struct _reent *ptr,
+_gets_r (struct _reent *ptr,
char *buf)
{
register int c;
@@ -94,8 +93,7 @@ _DEFUN(_gets_r, (ptr, buf),
#ifndef _REENT_ONLY
char *
-_DEFUN(gets, (buf),
- char *buf)
+gets (char *buf)
{
return _gets_r (_REENT, buf);
}
@@ -54,8 +54,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <stdio.h>
int
-_DEFUN(getw, (fp),
- register FILE *fp)
+getw (register FILE *fp)
{
int result;
if (fread ((char*)&result, sizeof (result), 1, fp) != 1)
@@ -33,8 +33,7 @@
#undef getwc
wint_t
-_DEFUN(_getwc_r, (ptr, fp),
- struct _reent *ptr,
+_getwc_r (struct _reent *ptr,
FILE *fp)
{
return _fgetwc_r (ptr, fp);
@@ -45,8 +44,7 @@ _DEFUN(_getwc_r, (ptr, fp),
* macro, may evaluate `fp' more than once.
*/
wint_t
-_DEFUN(getwc, (fp),
- FILE *fp)
+getwc (FILE *fp)
{
return fgetwc(fp);
}
@@ -34,8 +34,7 @@
#undef getwc_unlocked
wint_t
-_DEFUN(_getwc_unlocked_r, (ptr, fp),
- struct _reent *ptr,
+_getwc_unlocked_r (struct _reent *ptr,
FILE *fp)
{
return _fgetwc_unlocked_r (ptr, fp);
@@ -46,8 +45,7 @@ _DEFUN(_getwc_unlocked_r, (ptr, fp),
* a macro, may evaluate `fp' more than once.
*/
wint_t
-_DEFUN(getwc_unlocked, (fp),
- FILE *fp)
+getwc_unlocked (FILE *fp)
{
return fgetwc_unlocked(fp);
}
@@ -93,8 +93,7 @@ PORTABILITY
#undef getwchar
wint_t
-_DEFUN (_getwchar_r, (ptr),
- struct _reent *ptr)
+_getwchar_r (struct _reent *ptr)
{
return _fgetwc_r (ptr, stdin);
}
@@ -34,8 +34,7 @@
#undef getwchar_unlocked
wint_t
-_DEFUN (_getwchar_unlocked_r, (ptr),
- struct _reent *ptr)
+_getwchar_unlocked_r (struct _reent *ptr)
{
return _fgetwc_unlocked_r (ptr, stdin);
}
@@ -25,8 +25,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(iprintf, (fmt),
- const char *fmt, ...)
+iprintf (const char *fmt, ...)
{
int ret;
va_list ap;
@@ -42,8 +41,7 @@ _DEFUN(iprintf, (fmt),
#endif /* ! _REENT_ONLY */
int
-_DEFUN(_iprintf_r, (ptr, fmt),
- struct _reent *ptr,
+_iprintf_r (struct _reent *ptr,
const char *fmt, ...)
{
int ret;
@@ -35,8 +35,7 @@
*/
void
-_DEFUN(__smakebuf_r, (ptr, fp),
- struct _reent *ptr,
+__smakebuf_r (struct _reent *ptr,
register FILE *fp)
{
register void *p;
@@ -76,8 +75,7 @@ _DEFUN(__smakebuf_r, (ptr, fp),
* Internal routine to determine `proper' buffering for a file.
*/
int
-_DEFUN(__swhatbuf_r, (ptr, fp, bufsize, couldbetty),
- struct _reent *ptr,
+__swhatbuf_r (struct _reent *ptr,
FILE *fp,
size_t *bufsize,
int *couldbetty)
@@ -139,8 +139,7 @@ Supporting OS subroutines required: <<getpid>>, <<mkdir>>, <<open>>, <<stat>>.
#include <ctype.h>
static int
-_DEFUN(_gettemp, (ptr, path, doopen, domkdir, suffixlen, flags),
- struct _reent *ptr,
+_gettemp (struct _reent *ptr,
char *path,
register int *doopen,
int domkdir,
@@ -263,8 +262,7 @@ _DEFUN(_gettemp, (ptr, path, doopen, domkdir, suffixlen, flags),
#endif
int
-_DEFUN(_mkstemp_r, (ptr, path),
- struct _reent *ptr,
+_mkstemp_r (struct _reent *ptr,
char *path)
{
int fd;
@@ -274,16 +272,14 @@ _DEFUN(_mkstemp_r, (ptr, path),
#if !defined _ELIX_LEVEL || _ELIX_LEVEL >= 4
char *
-_DEFUN(_mkdtemp_r, (ptr, path),
- struct _reent *ptr,
+_mkdtemp_r (struct _reent *ptr,
char *path)
{
return (_gettemp (ptr, path, (int *) NULL, 1, 0, 0) ? path : NULL);
}
int
-_DEFUN(_mkstemps_r, (ptr, path, len),
- struct _reent *ptr,
+_mkstemps_r (struct _reent *ptr,
char *path,
int len)
{
@@ -293,8 +289,7 @@ _DEFUN(_mkstemps_r, (ptr, path, len),
}
int
-_DEFUN(_mkostemp_r, (ptr, path, flags),
- struct _reent *ptr,
+_mkostemp_r (struct _reent *ptr,
char *path,
int flags)
{
@@ -304,8 +299,7 @@ _DEFUN(_mkostemp_r, (ptr, path, flags),
}
int
-_DEFUN(_mkostemps_r, (ptr, path, len, flags),
- struct _reent *ptr,
+_mkostemps_r (struct _reent *ptr,
char *path,
int len,
int flags)
@@ -317,8 +311,7 @@ _DEFUN(_mkostemps_r, (ptr, path, len, flags),
#endif /* _ELIX_LEVEL */
char *
-_DEFUN(_mktemp_r, (ptr, path),
- struct _reent *ptr,
+_mktemp_r (struct _reent *ptr,
char *path)
{
return (_gettemp (ptr, path, (int *) NULL, 0, 0, 0) ? path : (char *) NULL);
@@ -327,8 +320,7 @@ _DEFUN(_mktemp_r, (ptr, path),
#ifndef _REENT_ONLY
int
-_DEFUN(mkstemp, (path),
- char *path)
+mkstemp (char *path)
{
int fd;
@@ -337,15 +329,13 @@ _DEFUN(mkstemp, (path),
# if !defined _ELIX_LEVEL || _ELIX_LEVEL >= 4
char *
-_DEFUN(mkdtemp, (path),
- char *path)
+mkdtemp (char *path)
{
return (_gettemp (_REENT, path, (int *) NULL, 1, 0, 0) ? path : NULL);
}
int
-_DEFUN(mkstemps, (path, len),
- char *path,
+mkstemps (char *path,
int len)
{
int fd;
@@ -354,8 +344,7 @@ _DEFUN(mkstemps, (path, len),
}
int
-_DEFUN(mkostemp, (path, flags),
- char *path,
+mkostemp (char *path,
int flags)
{
int fd;
@@ -364,8 +353,7 @@ _DEFUN(mkostemp, (path, flags),
}
int
-_DEFUN(mkostemps, (path, len, flags),
- char *path,
+mkostemps (char *path,
int len,
int flags)
{
@@ -376,8 +364,7 @@ _DEFUN(mkostemps, (path, len, flags),
# endif /* _ELIX_LEVEL */
char *
-_DEFUN(mktemp, (path),
- char *path)
+mktemp (char *path)
{
return (_gettemp (_REENT, path, (int *) NULL, 0, 0, 0) ? path : (char *) NULL);
}
@@ -172,8 +172,7 @@ static char *rcsid = "$Id$";
and vfwprintf. */
#ifdef STRING_ONLY
int
-_DEFUN(__ssputs_r, (ptr, fp, buf, len),
- struct _reent *ptr,
+__ssputs_r (struct _reent *ptr,
FILE *fp,
const char *buf,
size_t len)
@@ -243,8 +242,7 @@ err:
char output, but __ssprint_r cannot be discarded because it is used
by a serial of functions like svfwprintf for wide char output. */
int
-_DEFUN(__ssprint_r, (ptr, fp, uio),
- struct _reent *ptr,
+__ssprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
@@ -347,8 +345,7 @@ err:
/* Flush out all the vectors defined by the given uio,
then reset it so that it can be reused. */
int
-_DEFUN(__sprint_r, (ptr, fp, uio),
- struct _reent *ptr,
+__sprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
@@ -392,8 +389,7 @@ out:
}
_NOINLINE_STATIC int
-_DEFUN(__sfputc_r, (ptr, c, fp),
- struct _reent *ptr,
+__sfputc_r (struct _reent *ptr,
int c,
FILE *fp)
{
@@ -404,8 +400,7 @@ _DEFUN(__sfputc_r, (ptr, c, fp),
}
int
-_DEFUN(__sfputs_r, (ptr, fp, buf, len),
- struct _reent *ptr,
+__sfputs_r (struct _reent *ptr,
FILE *fp,
const char *buf,
size_t len)
@@ -442,8 +437,7 @@ int _EXFUN(_VFPRINTF_R, (struct _reent *, FILE *, const char *, va_list));
#ifndef STRING_ONLY
int
-_DEFUN(VFPRINTF, (fp, fmt0, ap),
- FILE * fp,
+VFPRINTF (FILE * fp,
const char *fmt0,
va_list ap)
{
@@ -471,8 +465,7 @@ _EXFUN(vfiprintf, (FILE *, const char *, __VALIST)
#endif
int
-_DEFUN(_VFPRINTF_R, (data, fp, fmt0, ap),
- struct _reent *data,
+_VFPRINTF_R (struct _reent *data,
FILE * fp,
const char *fmt0,
va_list ap)
@@ -135,8 +135,7 @@ Supporting OS subroutines required:
#ifndef _REENT_ONLY
int
-_DEFUN(VFSCANF, (fp, fmt, ap),
- register FILE *fp,
+VFSCANF (register FILE *fp,
const char *fmt,
va_list ap)
{
@@ -149,8 +148,7 @@ _EXFUN(vfiscanf, (FILE *, const char *, __VALIST)
_ATTRIBUTE ((__alias__("vfscanf"))));
int
-_DEFUN(__SVFSCANF, (fp, fmt0, ap),
- register FILE *fp,
+__SVFSCANF (register FILE *fp,
char const *fmt0,
va_list ap)
{
@@ -160,8 +158,7 @@ _DEFUN(__SVFSCANF, (fp, fmt0, ap),
#endif
int
-_DEFUN(_VFSCANF_R, (data, fp, fmt, ap),
- struct _reent *data,
+_VFSCANF_R (struct _reent *data,
register FILE *fp,
const char *fmt,
va_list ap)
@@ -180,8 +177,7 @@ _EXFUN(_vfiscanf_r, (struct _reent *, FILE *, const char *, __VALIST)
regular ungetc which will drag in file I/O items we don't need.
So, we create our own trimmed-down version. */
int
-_DEFUN(_sungetc_r, (data, fp, ch),
- struct _reent *data,
+_sungetc_r (struct _reent *data,
int c,
register FILE *fp)
{
@@ -229,8 +225,7 @@ _DEFUN(_sungetc_r, (data, fp, ch),
/* String only version of __srefill_r for sscanf family. */
int
-_DEFUN(__ssrefill_r, (ptr, fp),
- struct _reent * ptr,
+__ssrefill_r (struct _reent * ptr,
register FILE * fp)
{
/* Our only hope of further input is the ungetc buffer.
@@ -259,8 +254,7 @@ size_t _EXFUN (_sfread_r, (struct _reent *, void *buf, size_t, size_t, FILE *));
#endif /* !STRING_ONLY. */
int
-_DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap),
- struct _reent *rptr,
+__SVFSCANF_R (struct _reent *rptr,
register FILE *fp,
char const *fmt0,
va_list ap)
@@ -93,8 +93,7 @@ typedef struct memstream {
/* Write up to non-zero N bytes of BUF into the stream described by COOKIE,
returning the number of bytes written or EOF on failure. */
static _READ_WRITE_RETURN_TYPE
-_DEFUN(memwriter, (ptr, cookie, buf, n),
- struct _reent *ptr,
+memwriter (struct _reent *ptr,
void *cookie,
const char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -147,8 +146,7 @@ _DEFUN(memwriter, (ptr, cookie, buf, n),
/* Seek to position POS relative to WHENCE within stream described by
COOKIE; return resulting position or fail with EOF. */
static _fpos_t
-_DEFUN(memseeker, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+memseeker (struct _reent *ptr,
void *cookie,
_fpos_t pos,
int whence)
@@ -215,8 +213,7 @@ _DEFUN(memseeker, (ptr, cookie, pos, whence),
COOKIE; return resulting position or fail with EOF. */
#ifdef __LARGE64_FILES
static _fpos64_t
-_DEFUN(memseeker64, (ptr, cookie, pos, whence),
- struct _reent *ptr,
+memseeker64 (struct _reent *ptr,
void *cookie,
_fpos64_t pos,
int whence)
@@ -275,8 +272,7 @@ _DEFUN(memseeker64, (ptr, cookie, pos, whence),
/* Reclaim resources used by stream described by COOKIE. */
static int
-_DEFUN(memcloser, (ptr, cookie),
- struct _reent *ptr,
+memcloser (struct _reent *ptr,
void *cookie)
{
memstream *c = (memstream *) cookie;
@@ -295,8 +291,7 @@ _DEFUN(memcloser, (ptr, cookie),
/* Open a memstream that tracks a dynamic buffer in BUF and SIZE.
Return the new stream, or fail with NULL. */
static FILE *
-_DEFUN(internal_open_memstream_r, (ptr, buf, size, wide),
- struct _reent *ptr,
+internal_open_memstream_r (struct _reent *ptr,
char **buf,
size_t *size,
int wide)
@@ -378,8 +373,7 @@ _DEFUN(internal_open_memstream_r, (ptr, buf, size, wide),
}
FILE *
-_DEFUN(_open_memstream_r, (ptr, buf, size),
- struct _reent *ptr,
+_open_memstream_r (struct _reent *ptr,
char **buf,
size_t *size)
{
@@ -387,8 +381,7 @@ _DEFUN(_open_memstream_r, (ptr, buf, size),
}
FILE *
-_DEFUN(_open_wmemstream_r, (ptr, buf, size),
- struct _reent *ptr,
+_open_wmemstream_r (struct _reent *ptr,
wchar_t **buf,
size_t *size)
{
@@ -397,16 +390,14 @@ _DEFUN(_open_wmemstream_r, (ptr, buf, size),
#ifndef _REENT_ONLY
FILE *
-_DEFUN(open_memstream, (buf, size),
- char **buf,
+open_memstream (char **buf,
size_t *size)
{
return _open_memstream_r (_REENT, buf, size);
}
FILE *
-_DEFUN(open_wmemstream, (buf, size),
- wchar_t **buf,
+open_wmemstream (wchar_t **buf,
size_t *size)
{
return _open_wmemstream_r (_REENT, buf, size);
@@ -59,8 +59,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
void
-_DEFUN(_perror_r, (ptr, s),
- struct _reent *ptr,
+_perror_r (struct _reent *ptr,
const char *s)
{
char *error;
@@ -82,8 +81,7 @@ _DEFUN(_perror_r, (ptr, s),
#ifndef _REENT_ONLY
void
-_DEFUN(perror, (s),
- const char *s)
+perror (const char *s)
{
_perror_r (_REENT, s);
}
@@ -23,8 +23,7 @@
#include "local.h"
int
-_DEFUN(_printf_r, (ptr, fmt),
- struct _reent *ptr,
+_printf_r (struct _reent *ptr,
const char *__restrict fmt, ...)
{
int ret;
@@ -46,8 +45,7 @@ _EXFUN(_iprintf_r, (struct _reent *, const char *, ...)
#ifndef _REENT_ONLY
int
-_DEFUN(printf, (fmt),
- const char *__restrict fmt, ...)
+printf (const char *__restrict fmt, ...)
{
int ret;
va_list ap;
@@ -78,8 +78,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putc
int
-_DEFUN(_putc_r, (ptr, c, fp),
- struct _reent *ptr,
+_putc_r (struct _reent *ptr,
int c,
register FILE *fp)
{
@@ -93,8 +92,7 @@ _DEFUN(_putc_r, (ptr, c, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(putc, (c, fp),
- int c,
+putc (int c,
register FILE *fp)
{
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
@@ -70,8 +70,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putc_unlocked
int
-_DEFUN(_putc_unlocked_r, (ptr, c, fp),
- struct _reent *ptr,
+_putc_unlocked_r (struct _reent *ptr,
int c,
register FILE *fp)
{
@@ -82,8 +81,7 @@ _DEFUN(_putc_unlocked_r, (ptr, c, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(putc_unlocked, (c, fp),
- int c,
+putc_unlocked (int c,
register FILE *fp)
{
/* CHECK_INIT is (eventually) called by __swbuf. */
@@ -67,8 +67,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putchar
int
-_DEFUN(_putchar_r, (ptr, c),
- struct _reent *ptr,
+_putchar_r (struct _reent *ptr,
int c)
{
_REENT_SMALL_CHECK_INIT (ptr);
@@ -78,8 +77,7 @@ _DEFUN(_putchar_r, (ptr, c),
#ifndef _REENT_ONLY
int
-_DEFUN(putchar, (c),
- int c)
+putchar (int c)
{
struct _reent *reent = _REENT;
@@ -61,8 +61,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putchar_unlocked
int
-_DEFUN(_putchar_unlocked_r, (ptr, c),
- struct _reent *ptr,
+_putchar_unlocked_r (struct _reent *ptr,
int c)
{
return putc_unlocked (c, _stdout_r (ptr));
@@ -71,8 +70,7 @@ _DEFUN(_putchar_unlocked_r, (ptr, c),
#ifndef _REENT_ONLY
int
-_DEFUN(putchar_unlocked, (c),
- int c)
+putchar_unlocked (int c)
{
/* CHECK_INIT is (eventually) called by __swbuf. */
@@ -65,8 +65,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
*/
int
-_DEFUN(_puts_r, (ptr, s),
- struct _reent *ptr,
+_puts_r (struct _reent *ptr,
const char * s)
{
#ifdef _FVWRITE_IN_STREAMIO
@@ -125,8 +124,7 @@ err:
#ifndef _REENT_ONLY
int
-_DEFUN(puts, (s),
- char const * s)
+puts (char const * s)
{
return _puts_r (_REENT, s);
}
@@ -49,8 +49,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <stdio.h>
int
-_DEFUN(putw, (w, fp),
- int w,
+putw (int w,
register FILE *fp)
{
if (fwrite ((const char*)&w, sizeof (w), 1, fp) != 1)
@@ -33,8 +33,7 @@
#undef putwc
wint_t
-_DEFUN(_putwc_r, (ptr, wc, fp),
- struct _reent *ptr,
+_putwc_r (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -45,8 +44,7 @@ _DEFUN(_putwc_r, (ptr, wc, fp),
* macro, may evaluate `fp' more than once.
*/
wint_t
-_DEFUN(putwc, (wc, fp),
- wchar_t wc,
+putwc (wchar_t wc,
FILE *fp)
{
return fputwc (wc, fp);
@@ -34,8 +34,7 @@
#undef putwc_unlocked
wint_t
-_DEFUN(_putwc_unlocked_r, (ptr, wc, fp),
- struct _reent *ptr,
+_putwc_unlocked_r (struct _reent *ptr,
wchar_t wc,
FILE *fp)
{
@@ -46,8 +45,7 @@ _DEFUN(_putwc_unlocked_r, (ptr, wc, fp),
* if it is a macro, may evaluate `fp' more than once.
*/
wint_t
-_DEFUN(putwc_unlocked, (wc, fp),
- wchar_t wc,
+putwc_unlocked (wchar_t wc,
FILE *fp)
{
return fputwc_unlocked (wc, fp);
@@ -87,8 +87,7 @@ PORTABILITY
#undef putwchar
wint_t
-_DEFUN(_putwchar_r, (ptr, wc),
- struct _reent *ptr,
+_putwchar_r (struct _reent *ptr,
wchar_t wc)
{
return _fputwc_r (ptr, wc, stdout);
@@ -98,8 +97,7 @@ _DEFUN(_putwchar_r, (ptr, wc),
* Synonym for fputwc(wc, stdout).
*/
wint_t
-_DEFUN(putwchar, (wc),
- wchar_t wc)
+putwchar (wchar_t wc)
{
_REENT_SMALL_CHECK_INIT (_REENT);
return fputwc (wc, stdout);
@@ -34,8 +34,7 @@
#undef putwchar_unlocked
wint_t
-_DEFUN(_putwchar_unlocked_r, (ptr, wc),
- struct _reent *ptr,
+_putwchar_unlocked_r (struct _reent *ptr,
wchar_t wc)
{
return _fputwc_unlocked_r (ptr, wc, stdout);
@@ -45,8 +44,7 @@ _DEFUN(_putwchar_unlocked_r, (ptr, wc),
* Synonym for fputwc_unlocked(wc, stdout).
*/
wint_t
-_DEFUN(putwchar_unlocked, (wc),
- wchar_t wc)
+putwchar_unlocked (wchar_t wc)
{
_REENT_SMALL_CHECK_INIT (_REENT);
return fputwc_unlocked (wc, stdout);
@@ -23,8 +23,7 @@
#include "local.h"
static int
-_DEFUN(lflush, (fp),
- FILE *fp)
+lflush (FILE *fp)
{
if ((fp->_flags & (__SLBF | __SWR)) == (__SLBF | __SWR))
return fflush (fp);
@@ -37,8 +36,7 @@ _DEFUN(lflush, (fp),
*/
int
-_DEFUN(__srefill_r, (ptr, fp),
- struct _reent * ptr,
+__srefill_r (struct _reent * ptr,
register FILE * fp)
{
/* make sure stdio is set up */
@@ -59,8 +59,7 @@ Supporting OS subroutine required: <<unlink>>.
#include <stdio.h>
int
-_DEFUN(_remove_r, (ptr, filename),
- struct _reent *ptr,
+_remove_r (struct _reent *ptr,
const char *filename)
{
if (_unlink_r (ptr, filename) == -1)
@@ -72,8 +71,7 @@ _DEFUN(_remove_r, (ptr, filename),
#ifndef _REENT_ONLY
int
-_DEFUN(remove, (filename),
- const char *filename)
+remove (const char *filename)
{
return _remove_r (_REENT, filename);
}
@@ -54,8 +54,7 @@ Supporting OS subroutines required: <<link>>, <<unlink>>, or <<rename>>.
#ifndef _REENT_ONLY
int
-_DEFUN(rename, (old, new),
- const char *old,
+rename (const char *old,
const char *new)
{
return _rename_r (_REENT, old, new);
@@ -52,8 +52,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <stdio.h>
void
-_DEFUN(_rewind_r, (ptr, fp),
- struct _reent * ptr,
+_rewind_r (struct _reent * ptr,
register FILE * fp)
{
(void) _fseek_r (ptr, fp, 0L, SEEK_SET);
@@ -63,8 +62,7 @@ _DEFUN(_rewind_r, (ptr, fp),
#ifndef _REENT_ONLY
void
-_DEFUN(rewind, (fp),
- register FILE * fp)
+rewind (register FILE * fp)
{
_rewind_r (_REENT, fp);
}
@@ -32,8 +32,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
*/
int
-_DEFUN(__srget_r, (ptr, fp),
- struct _reent *ptr,
+__srget_r (struct _reent *ptr,
register FILE *fp)
{
/* Ensure that any fake std stream is resolved before
@@ -52,8 +51,7 @@ _DEFUN(__srget_r, (ptr, fp),
required for backward compatibility with applications built against
earlier dynamically built newlib libraries. */
int
-_DEFUN(__srget, (fp),
- register FILE *fp)
+__srget (register FILE *fp)
{
return __srget_r (_REENT, fp);
}
@@ -31,8 +31,7 @@
*/
u_char *
-_DEFUN(__sccl, (tab, fmt),
- register char *tab,
+__sccl (register char *tab,
register u_char *fmt)
{
register int c, n, v;
@@ -65,8 +65,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
void
-_DEFUN(setbuf, (fp, buf),
- FILE *__restrict fp,
+setbuf (FILE *__restrict fp,
char *__restrict buf)
{
(void) setvbuf (fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
@@ -65,8 +65,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
void
-_DEFUN(setbuffer, (fp, buf, size),
- FILE * fp,
+setbuffer (FILE * fp,
char *buf,
int size)
{
@@ -56,8 +56,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
int
-_DEFUN(setlinebuf, (fp),
- FILE * fp)
+setlinebuf (FILE * fp)
{
return (setvbuf (fp, (char *) NULL, _IOLBF, (size_t) 0));
}
@@ -88,8 +88,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
int
-_DEFUN(setvbuf, (fp, buf, mode, size),
- register FILE * fp,
+setvbuf (register FILE * fp,
char *buf,
register int mode,
register size_t size)
@@ -104,8 +104,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
int
#ifdef _HAVE_STDC
-_DEFUN(_siprintf_r, (ptr, str, fmt),
- struct _reent *ptr,
+_siprintf_r (struct _reent *ptr,
char *str,
const char *fmt, ...)
#else
@@ -139,8 +138,7 @@ _siprintf_r(ptr, str, fmt, va_alist)
int
#ifdef _HAVE_STDC
-_DEFUN(siprintf, (str, fmt),
- char *str,
+siprintf (char *str,
const char *fmt, ...)
#else
siprintf(str, fmt, va_alist)
@@ -87,8 +87,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef _HAVE_STDC
int
-_DEFUN(siscanf, (str, fmt),
- const char *str,
+siscanf (const char *str,
const char *fmt, ...)
#else
int
@@ -123,8 +122,7 @@ siscanf(str, fmt, va_alist)
#ifdef _HAVE_STDC
int
-_DEFUN(_siscanf_r, (ptr, str, fmt),
- struct _reent *ptr,
+_siscanf_r (struct _reent *ptr,
const char *str,
const char *fmt, ...)
#else
@@ -32,8 +32,7 @@
int
#ifdef _HAVE_STDC
-_DEFUN (_sniprintf_r, (ptr, str, size, fmt),
- struct _reent *ptr,
+_sniprintf_r (struct _reent *ptr,
char *str,
size_t size,
const char *fmt, ...)
@@ -77,8 +76,7 @@ _sniprintf_r (ptr, str, size, fmt, va_alist)
int
#ifdef _HAVE_STDC
-_DEFUN (sniprintf, (str, size, fmt),
- char *str,
+sniprintf (char *str,
size_t size,
const char *fmt, ...)
#else
@@ -31,8 +31,7 @@
int
#ifdef _HAVE_STDC
-_DEFUN(_snprintf_r, (ptr, str, size, fmt),
- struct _reent *ptr,
+_snprintf_r (struct _reent *ptr,
char *__restrict str,
size_t size,
const char *__restrict fmt, ...)
@@ -82,8 +81,7 @@ _EXFUN(_sniprintf_r, (struct _reent *, char *, size_t, const char *, ...)
int
#ifdef _HAVE_STDC
-_DEFUN(snprintf, (str, size, fmt),
- char *__restrict str,
+snprintf (char *__restrict str,
size_t size,
const char *__restrict fmt, ...)
#else
@@ -580,8 +580,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
int
#ifdef _HAVE_STDC
-_DEFUN(_sprintf_r, (ptr, str, fmt),
- struct _reent *ptr,
+_sprintf_r (struct _reent *ptr,
char *__restrict str,
const char *__restrict fmt, ...)
#else
@@ -621,8 +620,7 @@ _EXFUN(_siprintf_r, (struct _reent *, char *, const char *, ...)
int
#ifdef _HAVE_STDC
-_DEFUN(sprintf, (str, fmt),
- char *__restrict str,
+sprintf (char *__restrict str,
const char *__restrict fmt, ...)
#else
sprintf(str, fmt, va_alist)
@@ -426,8 +426,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef _HAVE_STDC
int
-_DEFUN(sscanf, (str, fmt),
- const char *__restrict str,
+sscanf (const char *__restrict str,
const char * fmt, ...)
#else
int
@@ -468,8 +467,7 @@ _EXFUN(siscanf, (const char *, const char *, ...)
#ifdef _HAVE_STDC
int
-_DEFUN(_sscanf_r, (ptr, str, fmt),
- struct _reent *ptr,
+_sscanf_r (struct _reent *ptr,
const char *__restrict str,
const char *__restrict fmt, ...)
#else
@@ -30,8 +30,7 @@
*/
_READ_WRITE_RETURN_TYPE
-_DEFUN(__sread, (ptr, cookie, buf, n),
- struct _reent *ptr,
+__sread (struct _reent *ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -63,8 +62,7 @@ _DEFUN(__sread, (ptr, cookie, buf, n),
/* Dummy function used in sscanf/swscanf. */
_READ_WRITE_RETURN_TYPE
-_DEFUN(__seofread, (ptr, cookie, buf, len),
- struct _reent *_ptr,
+__seofread (struct _reent *_ptr,
void *cookie,
char *buf,
_READ_WRITE_BUFSIZE_TYPE len)
@@ -73,8 +71,7 @@ _DEFUN(__seofread, (ptr, cookie, buf, len),
}
_READ_WRITE_RETURN_TYPE
-_DEFUN(__swrite, (ptr, cookie, buf, n),
- struct _reent *ptr,
+__swrite (struct _reent *ptr,
void *cookie,
char const *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -105,8 +102,7 @@ _DEFUN(__swrite, (ptr, cookie, buf, n),
}
_fpos_t
-_DEFUN(__sseek, (ptr, cookie, offset, whence),
- struct _reent *ptr,
+__sseek (struct _reent *ptr,
void *cookie,
_fpos_t offset,
int whence)
@@ -126,8 +122,7 @@ _DEFUN(__sseek, (ptr, cookie, offset, whence),
}
int
-_DEFUN(__sclose, (ptr, cookie),
- struct _reent *ptr,
+__sclose (struct _reent *ptr,
void *cookie)
{
FILE *fp = (FILE *) cookie;
@@ -137,8 +132,7 @@ _DEFUN(__sclose, (ptr, cookie),
#ifdef __SCLE
int
-_DEFUN(__stextmode, (fd),
- int fd)
+__stextmode (int fd)
{
#ifdef __CYGWIN__
extern int _cygwin_istext_for_stdio (int);
@@ -62,50 +62,43 @@ No supporting OS subroutines are required.
/* Subroutine versions of the inline or macro functions. */
size_t
-_DEFUN(__fbufsize, (fp),
- FILE * fp)
+__fbufsize (FILE * fp)
{
return (size_t) fp->_bf._size;
}
size_t
-_DEFUN(__fpending, (fp),
- FILE * fp)
+__fpending (FILE * fp)
{
return fp->_p - fp->_bf._base;
}
int
-_DEFUN(__flbf, (fp),
- FILE * fp)
+__flbf (FILE * fp)
{
return (fp->_flags & __SLBF) != 0;
}
int
-_DEFUN(__freadable, (fp),
- FILE * fp)
+__freadable (FILE * fp)
{
return (fp->_flags & (__SRD | __SRW)) != 0;
}
int
-_DEFUN(__fwritable, (fp),
- FILE * fp)
+__fwritable (FILE * fp)
{
return (fp->_flags & (__SWR | __SRW)) != 0;
}
int
-_DEFUN(__freading, (fp),
- FILE * fp)
+__freading (FILE * fp)
{
return (fp->_flags & __SRD) != 0;
}
int
-_DEFUN(__fwriting, (fp),
- FILE * fp)
+__fwriting (FILE * fp)
{
return (fp->_flags & __SWR) != 0;
}
@@ -553,8 +553,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
* a variable set to _REENT. */
int
-_DEFUN(_swprintf_r, (ptr, str, size, fmt),
- struct _reent *ptr,
+_swprintf_r (struct _reent *ptr,
wchar_t *str,
size_t size,
const wchar_t *fmt, ...)
@@ -594,8 +593,7 @@ _DEFUN(_swprintf_r, (ptr, str, size, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(swprintf, (str, size, fmt),
- wchar_t *__restrict str,
+swprintf (wchar_t *__restrict str,
size_t size,
const wchar_t *__restrict fmt, ...)
{
@@ -50,8 +50,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<getpid>>,
#endif
FILE *
-_DEFUN(_tmpfile_r, (ptr),
- struct _reent *ptr)
+_tmpfile_r (struct _reent *ptr)
{
FILE *fp;
int e;
@@ -86,8 +86,7 @@ The global pointer <<environ>> is also required.
another one. Return nonzero if successful, otherwise zero. */
static int
-_DEFUN(worker, (ptr, result, part1, part2, part3, part4),
- struct _reent *ptr,
+worker (struct _reent *ptr,
char *result,
const char *part1,
const char *part2,
@@ -118,8 +117,7 @@ _DEFUN(worker, (ptr, result, part1, part2, part3, part4),
}
char *
-_DEFUN(_tmpnam_r, (p, s),
- struct _reent *p,
+_tmpnam_r (struct _reent *p,
char *s)
{
char *result;
@@ -147,8 +145,7 @@ _DEFUN(_tmpnam_r, (p, s),
}
char *
-_DEFUN(_tempnam_r, (p, dir, pfx),
- struct _reent *p,
+_tempnam_r (struct _reent *p,
const char *dir,
const char *pfx)
{
@@ -174,16 +171,14 @@ _DEFUN(_tempnam_r, (p, dir, pfx),
#ifndef _REENT_ONLY
char *
-_DEFUN(tempnam, (dir, pfx),
- const char *dir,
+tempnam (const char *dir,
const char *pfx)
{
return _tempnam_r (_REENT, dir, pfx);
}
char *
-_DEFUN(tmpnam, (s),
- char *s)
+tmpnam (char *s)
{
return _tmpnam_r (_REENT, s);
}
@@ -77,8 +77,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
/*static*/
int
-_DEFUN(__submore, (rptr, fp),
- struct _reent *rptr,
+__submore (struct _reent *rptr,
register FILE *fp)
{
register int i;
@@ -111,8 +110,7 @@ _DEFUN(__submore, (rptr, fp),
}
int
-_DEFUN(_ungetc_r, (rptr, c, fp),
- struct _reent *rptr,
+_ungetc_r (struct _reent *rptr,
int c,
register FILE *fp)
{
@@ -208,8 +206,7 @@ _DEFUN(_ungetc_r, (rptr, c, fp),
#ifndef _REENT_ONLY
int
-_DEFUN(ungetc, (c, fp),
- int c,
+ungetc (int c,
register FILE *fp)
{
return _ungetc_r (_REENT, c, fp);
@@ -74,8 +74,7 @@ C99
#include "local.h"
wint_t
-_DEFUN(_ungetwc_r, (ptr, wc, fp),
- struct _reent *ptr,
+_ungetwc_r (struct _reent *ptr,
wint_t wc,
register FILE *fp)
{
@@ -106,8 +105,7 @@ _DEFUN(_ungetwc_r, (ptr, wc, fp),
* MT-safe version.
*/
wint_t
-_DEFUN(ungetwc, (wint_t wc, FILE *fp),
- wint_t wc,
+ungetwc (wint_t wc,
FILE *fp)
{
struct _reent *reent = _REENT;
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vasiprintf, (strp, fmt, ap),
- char **strp,
+vasiprintf (char **strp,
const char *fmt,
va_list ap)
{
@@ -42,8 +41,7 @@ _DEFUN(vasiprintf, (strp, fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vasiprintf_r, (ptr, strp, fmt, ap),
- struct _reent *ptr,
+_vasiprintf_r (struct _reent *ptr,
char **strp,
const char *fmt,
va_list ap)
@@ -14,8 +14,7 @@
#include "local.h"
char *
-_DEFUN(_vasniprintf_r, (ptr, buf, lenp, fmt, ap),
- struct _reent *ptr,
+_vasniprintf_r (struct _reent *ptr,
char *buf,
size_t *lenp,
const char *fmt,
@@ -59,8 +58,7 @@ _DEFUN(_vasniprintf_r, (ptr, buf, lenp, fmt, ap),
#ifndef _REENT_ONLY
char *
-_DEFUN(vasniprintf, (buf, lenp, fmt, ap),
- char *buf,
+vasniprintf (char *buf,
size_t *lenp,
const char *fmt,
va_list ap)
@@ -14,8 +14,7 @@
#include "local.h"
char *
-_DEFUN(_vasnprintf_r, (ptr, buf, lenp, fmt, ap),
- struct _reent *ptr,
+_vasnprintf_r (struct _reent *ptr,
char *buf,
size_t *lenp,
const char *fmt,
@@ -66,8 +65,7 @@ _EXFUN(_vasniprintf_r, (struct _reent*, char *, size_t *,
#ifndef _REENT_ONLY
char *
-_DEFUN(vasnprintf, (buf, lenp, fmt, ap),
- char *buf,
+vasnprintf (char *buf,
size_t *lenp,
const char *fmt,
va_list ap)
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vasprintf, (strp, fmt, ap),
- char **strp,
+vasprintf (char **strp,
const char *fmt,
va_list ap)
{
@@ -48,8 +47,7 @@ _EXFUN(vasiprintf, (char **, const char *, __VALIST)
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vasprintf_r, (ptr, strp, fmt, ap),
- struct _reent *ptr,
+_vasprintf_r (struct _reent *ptr,
char **strp,
const char *fmt,
va_list ap)
@@ -13,8 +13,7 @@
#include "local.h"
int
-_DEFUN(_vdiprintf_r, (ptr, fd, format, ap),
- struct _reent *ptr,
+_vdiprintf_r (struct _reent *ptr,
int fd,
const char *format,
va_list ap)
@@ -36,8 +35,7 @@ _DEFUN(_vdiprintf_r, (ptr, fd, format, ap),
#ifndef _REENT_ONLY
int
-_DEFUN(vdiprintf, (fd, format, ap),
- int fd,
+vdiprintf (int fd,
const char *format,
va_list ap)
{
@@ -13,8 +13,7 @@
#include "local.h"
int
-_DEFUN(_vdprintf_r, (ptr, fd, format, ap),
- struct _reent *ptr,
+_vdprintf_r (struct _reent *ptr,
int fd,
const char *__restrict format,
va_list ap)
@@ -42,8 +41,7 @@ _EXFUN(_vdiprintf_r, (struct _reent *, int, const char *, __VALIST)
#ifndef _REENT_ONLY
int
-_DEFUN(vdprintf, (fd, format, ap),
- int fd,
+vdprintf (int fd,
const char *__restrict format,
va_list ap)
{
@@ -198,8 +198,7 @@ static char *rcsid = "$Id$";
#ifdef INTEGER_ONLY
#ifndef _FVWRITE_IN_STREAMIO
int
-_DEFUN(__ssputs_r, (ptr, fp, buf, len),
- struct _reent *ptr,
+__ssputs_r (struct _reent *ptr,
FILE *fp,
const char *buf,
size_t len)
@@ -267,8 +266,7 @@ err:
#endif
int
-_DEFUN(__ssprint_r, (ptr, fp, uio),
- struct _reent *ptr,
+__ssprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
@@ -369,8 +367,7 @@ int __ssprint_r (struct _reent *, FILE *, register struct __suio *);
#ifndef _FVWRITE_IN_STREAMIO
int
-_DEFUN(__sfputs_r, (ptr, fp, buf, len),
- struct _reent *ptr,
+__sfputs_r (struct _reent *ptr,
FILE *fp,
const char *buf,
size_t len)
@@ -403,8 +400,7 @@ _DEFUN(__sfputs_r, (ptr, fp, buf, len),
* then reset it so that it can be reused.
*/
int
-_DEFUN(__sprint_r, (ptr, fp, uio),
- struct _reent *ptr,
+__sprint_r (struct _reent *ptr,
FILE *fp,
register struct __suio *uio)
{
@@ -456,8 +452,7 @@ int __sprint_r (struct _reent *, FILE *, register struct __suio *);
* Make sure to avoid inlining.
*/
_NOINLINE_STATIC int
-_DEFUN(__sbprintf, (rptr, fp, fmt, ap),
- struct _reent *rptr,
+__sbprintf (struct _reent *rptr,
register FILE *fp,
const char *fmt,
va_list ap)
@@ -648,8 +643,7 @@ int _EXFUN(_VFPRINTF_R, (struct _reent *, FILE *, const char *, va_list));
#ifndef STRING_ONLY
int
-_DEFUN(VFPRINTF, (fp, fmt0, ap),
- FILE * fp,
+VFPRINTF (FILE * fp,
const char *fmt0,
va_list ap)
{
@@ -660,8 +654,7 @@ _DEFUN(VFPRINTF, (fp, fmt0, ap),
#endif /* STRING_ONLY */
int
-_DEFUN(_VFPRINTF_R, (data, fp, fmt0, ap),
- struct _reent *data,
+_VFPRINTF_R (struct _reent *data,
FILE * fp,
const char *fmt0,
va_list ap)
@@ -2043,8 +2036,7 @@ const __ACTION __action_table[MAX_STATE][MAX_CH_CLASS] = {
/* function to get positional parameter N where n = N - 1 */
static union arg_val *
-_DEFUN(get_arg, (data, n, fmt, ap, numargs_p, args, arg_type, last_fmt),
- struct _reent *data,
+get_arg (struct _reent *data,
int n,
char *fmt,
va_list *ap,
@@ -224,8 +224,7 @@ typedef unsigned long long u_long_long;
#ifndef _REENT_ONLY
int
-_DEFUN(VFSCANF, (fp, fmt, ap),
- register FILE *fp,
+VFSCANF (register FILE *fp,
const char *fmt,
va_list ap)
{
@@ -236,8 +235,7 @@ _DEFUN(VFSCANF, (fp, fmt, ap),
}
int
-_DEFUN(__SVFSCANF, (fp, fmt0, ap),
- register FILE *fp,
+__SVFSCANF (register FILE *fp,
char const *fmt0,
va_list ap)
{
@@ -247,8 +245,7 @@ _DEFUN(__SVFSCANF, (fp, fmt0, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_VFSCANF_R, (data, fp, fmt, ap),
- struct _reent *data,
+_VFSCANF_R (struct _reent *data,
register FILE *fp,
const char *fmt,
va_list ap)
@@ -263,8 +260,7 @@ _DEFUN(_VFSCANF_R, (data, fp, fmt, ap),
* regular ungetc which will drag in file I/O items we don't need.
* So, we create our own trimmed-down version. */
int
-_DEFUN(_sungetc_r, (data, fp, ch),
- struct _reent *data,
+_sungetc_r (struct _reent *data,
int c,
register FILE *fp)
{
@@ -321,8 +317,7 @@ _DEFUN(_sungetc_r, (data, fp, ch),
/* String only version of __srefill_r for sscanf family. */
int
-_DEFUN(__ssrefill_r, (ptr, fp),
- struct _reent * ptr,
+__ssrefill_r (struct _reent * ptr,
register FILE * fp)
{
/*
@@ -347,8 +342,7 @@ _DEFUN(__ssrefill_r, (ptr, fp),
}
size_t
-_DEFUN(_sfread_r, (ptr, buf, size, count, fp),
- struct _reent * ptr,
+_sfread_r (struct _reent * ptr,
void *buf,
size_t size,
size_t count,
@@ -402,8 +396,7 @@ __wctob (struct _reent *rptr, wint_t wc)
}
int
-_DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap),
- struct _reent *rptr,
+__SVFSCANF_R (struct _reent *rptr,
register FILE *fp,
char const *fmt0,
va_list ap)
@@ -174,8 +174,7 @@ int _EXFUN(__SPRINT, (struct _reent *, FILE *, const char *, size_t));
* worries about ungetc buffers and so forth.
*/
static int
-_DEFUN(__sbwprintf, (rptr, fp, fmt, ap),
- struct _reent *rptr,
+__sbwprintf (struct _reent *rptr,
register FILE *fp,
const wchar_t *fmt,
va_list ap)
@@ -366,8 +365,7 @@ _EXFUN(get_arg, (struct _reent *data, int n, wchar_t *fmt,
#ifndef STRING_ONLY
int
-_DEFUN(VFWPRINTF, (fp, fmt0, ap),
- FILE *__restrict fp,
+VFWPRINTF (FILE *__restrict fp,
const wchar_t *__restrict fmt0,
va_list ap)
{
@@ -378,8 +376,7 @@ _DEFUN(VFWPRINTF, (fp, fmt0, ap),
#endif /* STRING_ONLY */
int
-_DEFUN(_VFWPRINTF_R, (data, fp, fmt0, ap),
- struct _reent *data,
+_VFWPRINTF_R (struct _reent *data,
FILE * fp,
const wchar_t *fmt0,
va_list ap)
@@ -1734,8 +1731,7 @@ wexponent(wchar_t *p0, int exp, int fmtch)
/* function to get positional parameter N where n = N - 1 */
static union arg_val *
-_DEFUN(get_arg, (data, n, fmt, ap, numargs_p, args, arg_type, last_fmt),
- struct _reent *data,
+get_arg (struct _reent *data,
int n,
wchar_t *fmt,
va_list *ap,
@@ -226,8 +226,7 @@ static void * get_arg (int, va_list *, int *, void **);
#ifndef _REENT_ONLY
int
-_DEFUN(VFWSCANF, (fp, fmt, ap),
- register FILE *__restrict fp,
+VFWSCANF (register FILE *__restrict fp,
const wchar_t *__restrict fmt,
va_list ap)
{
@@ -238,8 +237,7 @@ _DEFUN(VFWSCANF, (fp, fmt, ap),
}
int
-_DEFUN(__SVFWSCANF, (fp, fmt0, ap),
- register FILE *fp,
+__SVFWSCANF (register FILE *fp,
wchar_t const *fmt0,
va_list ap)
{
@@ -249,8 +247,7 @@ _DEFUN(__SVFWSCANF, (fp, fmt0, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_VFWSCANF_R, (data, fp, fmt, ap),
- struct _reent *data,
+_VFWSCANF_R (struct _reent *data,
register FILE *fp,
const wchar_t *fmt,
va_list ap)
@@ -265,8 +262,7 @@ _DEFUN(_VFWSCANF_R, (data, fp, fmt, ap),
* regular ungetwc which will drag in file I/O items we don't need.
* So, we create our own trimmed-down version. */
static wint_t
-_DEFUN(_sungetwc_r, (data, fp, ch),
- struct _reent *data,
+_sungetwc_r (struct _reent *data,
wint_t wc,
register FILE *fp)
{
@@ -325,8 +321,7 @@ _DEFUN(_sungetwc_r, (data, fp, ch),
extern int __ssrefill_r (struct _reent *ptr, register FILE * fp);
static size_t
-_DEFUN(_sfgetwc_r, (ptr, fp),
- struct _reent * ptr,
+_sfgetwc_r (struct _reent * ptr,
FILE * fp)
{
wchar_t wc;
@@ -341,8 +336,7 @@ _DEFUN(_sfgetwc_r, (ptr, fp),
#endif /* STRING_ONLY */
int
-_DEFUN(__SVFWSCANF_R, (rptr, fp, fmt0, ap),
- struct _reent *rptr,
+__SVFWSCANF_R (struct _reent *rptr,
register FILE *fp,
wchar_t const *fmt0,
va_list ap)
@@ -105,8 +105,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifndef _REENT_ONLY
int
-_DEFUN(viprintf, (fmt, ap),
- const char *fmt,
+viprintf (const char *fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -118,8 +117,7 @@ _DEFUN(viprintf, (fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_viprintf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_viprintf_r (struct _reent *ptr,
const char *fmt,
va_list ap)
{
@@ -89,8 +89,7 @@ Supporting OS subroutines required:
#ifndef _REENT_ONLY
int
-_DEFUN(viscanf, (fmt, ap),
- const char *fmt,
+viscanf (const char *fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -102,8 +101,7 @@ _DEFUN(viscanf, (fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_viscanf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_viscanf_r (struct _reent *ptr,
const char *fmt,
va_list ap)
{
@@ -29,8 +29,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vprintf, (fmt, ap),
- const char *fmt,
+vprintf (const char *fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -47,8 +46,7 @@ _EXFUN(viprintf, (const char *, __VALIST) _ATTRIBUTE ((__alias__("vprintf"))));
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vprintf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_vprintf_r (struct _reent *ptr,
const char *__restrict fmt,
va_list ap)
{
@@ -30,8 +30,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vscanf, (fmt, ap),
- const char *fmt,
+vscanf (const char *fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -48,8 +47,7 @@ _EXFUN(viscanf, (const char *, __VALIST) _ATTRIBUTE ((__alias__("vscanf"))));
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vscanf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_vscanf_r (struct _reent *ptr,
const char *__restrict fmt,
va_list ap)
{
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vsiprintf, (str, fmt, ap),
- char *str,
+vsiprintf (char *str,
const char *fmt,
va_list ap)
{
@@ -42,8 +41,7 @@ _DEFUN(vsiprintf, (str, fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsiprintf_r, (ptr, str, fmt, ap),
- struct _reent *ptr,
+_vsiprintf_r (struct _reent *ptr,
char *str,
const char *fmt,
va_list ap)
@@ -35,8 +35,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vsiscanf, (str, fmt, ap),
- const char *str,
+vsiscanf (const char *str,
const char *fmt,
va_list ap)
{
@@ -46,8 +45,7 @@ _DEFUN(vsiscanf, (str, fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsiscanf_r, (ptr, str, fmt, ap),
- struct _reent *ptr,
+_vsiscanf_r (struct _reent *ptr,
const char *str,
const char *fmt,
va_list ap)
@@ -32,8 +32,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vsniprintf, (str, size, fmt, ap),
- char *str,
+vsniprintf (char *str,
size_t size,
const char *fmt,
va_list ap)
@@ -44,8 +43,7 @@ _DEFUN(vsniprintf, (str, size, fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsniprintf_r, (ptr, str, size, fmt, ap),
- struct _reent *ptr,
+_vsniprintf_r (struct _reent *ptr,
char *str,
size_t size,
const char *fmt,
@@ -32,8 +32,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vsnprintf, (str, size, fmt, ap),
- char *__restrict str,
+vsnprintf (char *__restrict str,
size_t size,
const char *__restrict fmt,
va_list ap)
@@ -50,8 +49,7 @@ _EXFUN(vsniprintf, (char *, size_t, const char *, __VALIST)
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsnprintf_r, (ptr, str, size, fmt, ap),
- struct _reent *ptr,
+_vsnprintf_r (struct _reent *ptr,
char *__restrict str,
size_t size,
const char *__restrict fmt,
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifndef _REENT_ONLY
int
-_DEFUN(vsprintf, (str, fmt, ap),
- char *__restrict str,
+vsprintf (char *__restrict str,
const char *__restrict fmt,
va_list ap)
{
@@ -48,8 +47,7 @@ _EXFUN(vsiprintf, (char *, const char *, __VALIST)
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsprintf_r, (ptr, str, fmt, ap),
- struct _reent *ptr,
+_vsprintf_r (struct _reent *ptr,
char *__restrict str,
const char *__restrict fmt,
va_list ap)
@@ -35,8 +35,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vsscanf, (str, fmt, ap),
- const char *__restrict str,
+vsscanf (const char *__restrict str,
const char *__restrict fmt,
va_list ap)
{
@@ -52,8 +51,7 @@ _EXFUN(vsiscanf, (const char *, const char *, __VALIST)
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vsscanf_r, (ptr, str, fmt, ap),
- struct _reent *ptr,
+_vsscanf_r (struct _reent *ptr,
const char *__restrict str,
const char *__restrict fmt,
va_list ap)
@@ -31,8 +31,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include "local.h"
int
-_DEFUN(_vswprintf_r, (ptr, str, size, fmt, ap),
- struct _reent *ptr,
+_vswprintf_r (struct _reent *ptr,
wchar_t *str,
size_t size,
const wchar_t *fmt,
@@ -70,8 +69,7 @@ _DEFUN(_vswprintf_r, (ptr, str, size, fmt, ap),
#ifndef _REENT_ONLY
int
-_DEFUN(vswprintf, (str, size, fmt, ap),
- wchar_t *__restrict str,
+vswprintf (wchar_t *__restrict str,
size_t size,
const wchar_t *__restrict fmt,
va_list ap)
@@ -26,8 +26,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN(vwprintf, (fmt, ap),
- const wchar_t *__restrict fmt,
+vwprintf (const wchar_t *__restrict fmt,
va_list ap)
{
struct _reent *reent = _REENT;
@@ -39,8 +38,7 @@ _DEFUN(vwprintf, (fmt, ap),
#endif /* !_REENT_ONLY */
int
-_DEFUN(_vwprintf_r, (ptr, fmt, ap),
- struct _reent *ptr,
+_vwprintf_r (struct _reent *ptr,
const wchar_t *fmt,
va_list ap)
{
@@ -33,8 +33,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
*/
int
-_DEFUN(__swbuf_r, (ptr, c, fp),
- struct _reent *ptr,
+__swbuf_r (struct _reent *ptr,
register int c,
register FILE *fp)
{
@@ -88,8 +87,7 @@ _DEFUN(__swbuf_r, (ptr, c, fp),
required for backward compatibility with applications built against
earlier dynamically built newlib libraries. */
int
-_DEFUN(__swbuf, (c, fp),
- register int c,
+__swbuf (register int c,
register FILE *fp)
{
return __swbuf_r (_REENT, c, fp);
@@ -24,8 +24,7 @@
#include "local.h"
int
-_DEFUN(_wprintf_r, (ptr, fmt),
- struct _reent *ptr,
+_wprintf_r (struct _reent *ptr,
const wchar_t *fmt, ...)
{
int ret;
@@ -41,8 +40,7 @@ _DEFUN(_wprintf_r, (ptr, fmt),
#ifndef _REENT_ONLY
int
-_DEFUN(wprintf, (fmt),
- const wchar_t *__restrict fmt, ...)
+wprintf (const wchar_t *__restrict fmt, ...)
{
int ret;
va_list ap;
@@ -30,8 +30,7 @@
*/
int
-_DEFUN(__swsetup_r, (ptr, fp),
- struct _reent *ptr,
+__swsetup_r (struct _reent *ptr,
register FILE * fp)
{
/* Make sure stdio is set up. */
@@ -35,8 +35,7 @@ File pointer or <<NULL>>, as for <<fopen>>.
extern int __sflags ();
FILE *
-_DEFUN (_fdopen64_r, (ptr, fd, mode),
- struct _reent *ptr,
+_fdopen64_r (struct _reent *ptr,
int fd,
const char *mode)
{
@@ -108,8 +107,7 @@ _DEFUN (_fdopen64_r, (ptr, fd, mode),
#ifndef _REENT_ONLY
FILE *
-_DEFUN (fdopen64, (fd, mode),
- int fd,
+fdopen64 (int fd,
const char *mode)
{
return _fdopen64_r (_REENT, fd, mode);
@@ -45,8 +45,7 @@ No supporting OS subroutines are required.
#ifdef __LARGE64_FILES
int
-_DEFUN (_fgetpos64_r, (ptr, fp, pos),
- struct _reent * ptr,
+_fgetpos64_r (struct _reent * ptr,
FILE * fp,
_fpos64_t * pos)
{
@@ -62,8 +61,7 @@ _DEFUN (_fgetpos64_r, (ptr, fp, pos),
#ifndef _REENT_ONLY
int
-_DEFUN (fgetpos64, (fp, pos),
- FILE * fp,
+fgetpos64 (FILE * fp,
_fpos64_t * pos)
{
return _fgetpos64_r (_REENT, fp, pos);
@@ -64,8 +64,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifdef __LARGE64_FILES
FILE *
-_DEFUN (_fopen64_r, (ptr, file, mode),
- struct _reent *ptr,
+_fopen64_r (struct _reent *ptr,
const char *file,
const char *mode)
{
@@ -117,8 +116,7 @@ _DEFUN (_fopen64_r, (ptr, file, mode),
#ifndef _REENT_ONLY
FILE *
-_DEFUN (fopen64, (file, mode),
- const char *file,
+fopen64 (const char *file,
const char *mode)
{
return _fopen64_r (_REENT, file, mode);
@@ -75,8 +75,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef __LARGE64_FILES
FILE *
-_DEFUN (_freopen64_r, (ptr, file, mode, fp),
- struct _reent *ptr,
+_freopen64_r (struct _reent *ptr,
const char *file,
const char *mode,
register FILE *fp)
@@ -247,8 +246,7 @@ _DEFUN (_freopen64_r, (ptr, file, mode, fp),
#ifndef _REENT_ONLY
FILE *
-_DEFUN (freopen64, (file, mode, fp),
- const char *file,
+freopen64 (const char *file,
const char *mode,
register FILE *fp)
{
@@ -85,8 +85,7 @@ Supporting OS subroutines required: <<close>>, <<fstat64>>, <<isatty>>,
*/
_off64_t
-_DEFUN (_fseeko64_r, (ptr, fp, offset, whence),
- struct _reent *ptr,
+_fseeko64_r (struct _reent *ptr,
register FILE *fp,
_off64_t offset,
int whence)
@@ -342,8 +341,7 @@ dumb:
#ifndef _REENT_ONLY
_off64_t
-_DEFUN (fseeko64, (fp, offset, whence),
- register FILE *fp,
+fseeko64 (register FILE *fp,
_off64_t offset,
int whence)
{
@@ -41,8 +41,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef __LARGE64_FILES
int
-_DEFUN (_fsetpos64_r, (ptr, iop, pos),
- struct _reent *ptr,
+_fsetpos64_r (struct _reent *ptr,
FILE * iop,
const _fpos64_t * pos)
{
@@ -56,8 +55,7 @@ _DEFUN (_fsetpos64_r, (ptr, iop, pos),
#ifndef _REENT_ONLY
int
-_DEFUN (fsetpos64, (iop, pos),
- FILE * iop,
+fsetpos64 (FILE * iop,
const _fpos64_t * pos)
{
return _fsetpos64_r (_REENT, iop, pos);
@@ -76,8 +76,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#ifdef __LARGE64_FILES
_off64_t
-_DEFUN (_ftello64_r, (ptr, fp),
- struct _reent *ptr,
+_ftello64_r (struct _reent *ptr,
register FILE * fp)
{
_fpos64_t pos;
@@ -144,8 +143,7 @@ _DEFUN (_ftello64_r, (ptr, fp),
#ifndef _REENT_ONLY
_off64_t
-_DEFUN (ftello64, (fp),
- register FILE * fp)
+ftello64 (register FILE * fp)
{
return _ftello64_r (_REENT, fp);
}
@@ -26,8 +26,7 @@
#ifdef __LARGE64_FILES
_fpos64_t
-_DEFUN(__sseek64, (ptr, cookie, offset, whence),
- struct _reent *ptr,
+__sseek64 (struct _reent *ptr,
void *cookie,
_fpos64_t offset,
int whence)
@@ -47,8 +46,7 @@ _DEFUN(__sseek64, (ptr, cookie, offset, whence),
}
_READ_WRITE_RETURN_TYPE
-_DEFUN(__swrite64, (ptr, cookie, buf, n),
- struct _reent *ptr,
+__swrite64 (struct _reent *ptr,
void *cookie,
char const *buf,
_READ_WRITE_BUFSIZE_TYPE n)
@@ -53,8 +53,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<getpid>>,
#ifdef __LARGE64_FILES
FILE *
-_DEFUN (_tmpfile64_r, (ptr),
- struct _reent *ptr)
+_tmpfile64_r (struct _reent *ptr)
{
FILE *fp;
int e;
@@ -34,8 +34,7 @@ Supporting OS subroutines required: <<_exit>>.
#include <reent.h>
void
-_DEFUN (_Exit, (code),
- int code)
+_Exit (int code)
{
_exit (code);
}
@@ -9,8 +9,7 @@
#define abs(x) (((x) < 0) ? -(x) : (x))
double
-_DEFUN (__adjust, (ptr, acc, dexp, sign),
- struct _reent *ptr,
+__adjust (struct _reent *ptr,
double *acc,
int dexp,
int sign)
@@ -63,9 +63,7 @@ static struct _atexit _global_atexit0 = _ATEXIT_INIT;
*/
int
-_DEFUN (__register_exitproc,
- (type, fn, arg, d),
- int type,
+__register_exitproc (int type,
void (*fn) (void),
void *arg,
void *d)
@@ -65,8 +65,7 @@ register_fini(void)
*/
void
-_DEFUN (__call_exitprocs, (code, d),
- int code, void *d)
+__call_exitprocs (int code, void *d)
{
register struct _atexit *p;
struct _atexit **lastp;
@@ -6,8 +6,7 @@
#include "std.h"
double
-_DEFUN (__exp10, (x),
- unsigned x)
+__exp10 (unsigned x)
{
static const double powtab[] =
{1.0,
@@ -9,8 +9,7 @@
#include "std.h"
int
-_DEFUN (__ten_mul, (acc, digit),
- double *acc,
+__ten_mul (double *acc,
int digit)
{
/*
@@ -56,8 +56,7 @@ Supporting OS subroutines required: None.
#include <limits.h>
long
-_DEFUN (a64l, (input),
- const char *input)
+a64l (const char *input)
{
const char *ptr;
char ch;
@@ -32,7 +32,7 @@ No supporting OS subroutines are required.
#include <stdlib.h>
int
-_DEFUN (abs, (i), int i)
+abs (int i)
{
return (i < 0) ? -i : i;
}
@@ -50,8 +50,7 @@ Supporting OS subroutines required (only if enabled): <<close>>, <<fstat>>,
#ifndef HAVE_ASSERT_FUNC
/* func can be NULL, in which case no function information is given. */
void
-_DEFUN (__assert_func, (file, line, func, failedexpr),
- const char *file,
+__assert_func (const char *file,
int line,
const char *func,
const char *failedexpr)
@@ -66,8 +65,7 @@ _DEFUN (__assert_func, (file, line, func, failedexpr),
#endif /* HAVE_ASSERT_FUNC */
void
-_DEFUN (__assert, (file, line, failedexpr),
- const char *file,
+__assert (const char *file,
int line,
const char *failedexpr)
{
@@ -53,9 +53,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
*/
int
-_DEFUN (atexit,
- (fn),
- void _EXFNPTR(fn, (void)))
+atexit (void _EXFNPTR(fn, (void)))
{
return __register_exitproc (__et_atexit, fn, NULL, NULL);
}
@@ -57,8 +57,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <_ansi.h>
double
-_DEFUN (atof, (s),
- const char *s)
+atof (const char *s)
{
return strtod (s, NULL);
}
@@ -2,8 +2,7 @@
#include <_ansi.h>
float
-_DEFUN (atoff, (s),
- const char *s)
+atoff (const char *s)
{
return strtof (s, NULL);
}
@@ -47,16 +47,14 @@ No supporting OS subroutines are required.
#ifndef _REENT_ONLY
int
-_DEFUN (atoi, (s),
- const char *s)
+atoi (const char *s)
{
return (int) strtol (s, NULL, 10);
}
#endif /* !_REENT_ONLY */
int
-_DEFUN (_atoi_r, (s),
- struct _reent *ptr,
+_atoi_r (struct _reent *ptr,
const char *s)
{
return (int) _strtol_r (ptr, s, NULL, 10);
@@ -7,14 +7,14 @@
#ifndef _REENT_ONLY
long
-_DEFUN (atol, (s), const char *s)
+atol (const char *s)
{
return strtol (s, NULL, 10);
}
#endif /* !_REENT_ONLY */
long
-_DEFUN (_atol_r, (ptr, s), struct _reent *ptr, const char *s)
+_atol_r (struct _reent *ptr, const char *s)
{
return _strtol_r (ptr, s, NULL, 10);
}
@@ -69,16 +69,14 @@ No supporting OS subroutines are required.
#ifndef _REENT_ONLY
long long
-_DEFUN(atoll, (str),
- const char *str)
+atoll (const char *str)
{
return strtoll(str, (char **)NULL, 10);
}
#endif /* !_REENT_ONLY */
long long
-_DEFUN(_atoll_r, (ptr, str),
- struct _reent *ptr,
+_atoll_r (struct _reent *ptr,
const char *str)
{
return _strtoll_r(ptr, str, (char **)NULL, 10);
@@ -46,8 +46,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifndef _REENT_ONLY
void *
-_DEFUN (calloc, (n, size),
- size_t n,
+calloc (size_t n,
size_t size)
{
return _calloc_r (_REENT, n, size);
@@ -22,9 +22,7 @@ const void * const __cxa_atexit_dummy = &__on_exit_args;
*/
int
-_DEFUN (__cxa_atexit,
- (fn, arg, d),
- void (*fn) (void *),
+__cxa_atexit (void (*fn) (void *),
void *arg,
void *d)
{
@@ -13,8 +13,7 @@
*/
void
-_DEFUN (__cxa_finalize, (d),
- void * d)
+__cxa_finalize (void * d)
{
__call_exitprocs (0, d);
}
@@ -81,8 +81,7 @@ No supporting OS subroutines are required.
#include <stdlib.h> /* div_t */
div_t
-_DEFUN (div, (num, denom),
- int num,
+div (int num,
int denom)
{
div_t r;
@@ -14,8 +14,7 @@
#include "rand48.h"
double
-_DEFUN (_drand48_r, (r),
- struct _reent *r)
+_drand48_r (struct _reent *r)
{
_REENT_CHECK_RAND48(r);
return _erand48_r(r, __rand48_seed);
@@ -33,9 +33,7 @@
#include "mprec.h"
static int
-_DEFUN (quorem,
- (b, S),
- _Bigint * b, _Bigint * S)
+quorem (_Bigint * b, _Bigint * S)
{
int n;
__Long borrow, y;
@@ -177,9 +175,7 @@ _DEFUN (quorem,
char *
-_DEFUN (_dtoa_r,
- (ptr, _d, mode, ndigits, decpt, sign, rve),
- struct _reent *ptr,
+_dtoa_r (struct _reent *ptr,
double _d,
int mode,
int ndigits,
@@ -8,9 +8,7 @@
#ifndef _REENT_ONLY
char *
-_DEFUN (__dtoa,
- (d, mode, ndigits, decpt, sign, rve),
- double d,
+__dtoa (double d,
int mode,
int ndigits,
int *decpt,
@@ -58,8 +58,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
static void
-_DEFUN (print_f, (ptr, buf, invalue, ndigit, type, dot, mode),
- struct _reent *ptr,
+print_f (struct _reent *ptr,
char *buf,
double invalue,
int ndigit,
@@ -126,8 +125,7 @@ _DEFUN (print_f, (ptr, buf, invalue, ndigit, type, dot, mode),
WIDTH is the number of digits of precision after the decimal point. */
static void
-_DEFUN (print_e, (ptr, buf, invalue, width, type, dot),
- struct _reent *ptr,
+print_e (struct _reent *ptr,
char *buf,
double invalue,
int width,
@@ -209,8 +207,7 @@ _DEFUN (print_e, (ptr, buf, invalue, width, type, dot),
support ecvt and fcvt, which aren't ANSI anyway. */
char *
-_DEFUN (fcvtbuf, (invalue, ndigit, decpt, sign, fcvt_buf),
- double invalue,
+fcvtbuf (double invalue,
int ndigit,
int *decpt,
int *sign,
@@ -266,8 +263,7 @@ _DEFUN (fcvtbuf, (invalue, ndigit, decpt, sign, fcvt_buf),
}
char *
-_DEFUN (ecvtbuf, (invalue, ndigit, decpt, sign, fcvt_buf),
- double invalue,
+ecvtbuf (double invalue,
int ndigit,
int *decpt,
int *sign,
@@ -317,8 +313,7 @@ _DEFUN (ecvtbuf, (invalue, ndigit, decpt, sign, fcvt_buf),
#endif
char *
-_DEFUN (_gcvt, (ptr, invalue, ndigit, buf, type, dot),
- struct _reent *ptr,
+_gcvt (struct _reent *ptr,
double invalue,
int ndigit,
char *buf,
@@ -425,8 +420,7 @@ _DEFUN (_gcvt, (ptr, invalue, ndigit, buf, type, dot),
}
char *
-_DEFUN (_dcvt, (ptr, buffer, invalue, precision, width, type, dot),
- struct _reent *ptr,
+_dcvt (struct _reent *ptr,
char *buffer,
double invalue,
int precision,
@@ -103,8 +103,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include "local.h"
char *
-_DEFUN (fcvt, (d, ndigit, decpt, sign),
- double d,
+fcvt (double d,
int ndigit,
int *decpt,
int *sign)
@@ -113,8 +112,7 @@ _DEFUN (fcvt, (d, ndigit, decpt, sign),
}
char *
-_DEFUN (fcvtf, (d, ndigit, decpt, sign),
- float d,
+fcvtf (float d,
int ndigit,
int *decpt,
int *sign)
@@ -124,8 +122,7 @@ _DEFUN (fcvtf, (d, ndigit, decpt, sign),
char *
-_DEFUN (gcvtf, (d, ndigit, buf),
- float d,
+gcvtf (float d,
int ndigit,
char *buf)
{
@@ -135,8 +132,7 @@ _DEFUN (gcvtf, (d, ndigit, buf),
char *
-_DEFUN (ecvt, (d, ndigit, decpt, sign),
- double d,
+ecvt (double d,
int ndigit,
int *decpt,
int *sign)
@@ -145,8 +141,7 @@ _DEFUN (ecvt, (d, ndigit, decpt, sign),
}
char *
-_DEFUN (ecvtf, (d, ndigit, decpt, sign),
- float d,
+ecvtf (float d,
int ndigit,
int *decpt,
int *sign)
@@ -156,8 +151,7 @@ _DEFUN (ecvtf, (d, ndigit, decpt, sign),
char *
-_DEFUN (gcvt, (d, ndigit, buf),
- double d,
+gcvt (double d,
int ndigit,
char *buf)
{
@@ -14,8 +14,7 @@
#include "rand48.h"
double
-_DEFUN (_erand48_r, (r, xseed),
- struct _reent *r,
+_erand48_r (struct _reent *r,
unsigned short xseed[3])
{
__dorand48(r, xseed);
@@ -26,8 +25,7 @@ _DEFUN (_erand48_r, (r, xseed),
#ifndef _REENT_ONLY
double
-_DEFUN (erand48, (xseed),
- unsigned short xseed[3])
+erand48 (unsigned short xseed[3])
{
return _erand48_r (_REENT, xseed);
}
@@ -50,8 +50,7 @@ Supporting OS subroutines required: <<_exit>>.
*/
void
-_DEFUN (exit, (code),
- int code)
+exit (int code)
{
#ifdef _LITE_EXIT
/* Refer to comments in __atexit.c for more details of lite exit. */
@@ -59,8 +59,7 @@ const unsigned char __hexdig[256]=
};
#else /* !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__) && !defined(_SMALL_HEXDIG) */
unsigned char
-_DEFUN (__hexdig_fun, (c),
- unsigned char c)
+__hexdig_fun (unsigned char c)
{
if(c>='0' && c<='9') return c-'0'+0x10;
else if(c>='a' && c<='f') return c-'a'+0x10+10;
@@ -70,8 +69,7 @@ _DEFUN (__hexdig_fun, (c),
#endif /* !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__) && !defined(_SMALL_HEXDIG) */
static void
-_DEFUN(rshift, (b, k),
- _Bigint *b,
+rshift (_Bigint *b,
int k)
{
__ULong *x, *x1, *xe, y;
@@ -101,8 +99,7 @@ _DEFUN(rshift, (b, k),
}
static _Bigint *
-_DEFUN (increment, (ptr, b),
- struct _reent *ptr,
+increment (struct _reent *ptr,
_Bigint *b)
{
__ULong *x, *xe;
@@ -45,8 +45,7 @@ THIS SOFTWARE.
#ifdef INFNAN_CHECK
int
-_DEFUN (match, (sp, t),
- const char **sp,
+match (const char **sp,
char *t)
{
int c, d;
@@ -63,8 +62,7 @@ _DEFUN (match, (sp, t),
}
static void
-_DEFUN (L_shift, (x, x1, i),
- __ULong *x,
+L_shift (__ULong *x,
__ULong *x1,
int i)
{
@@ -80,8 +78,7 @@ _DEFUN (L_shift, (x, x1, i),
}
int
-_DEFUN (hexnan, (sp, fpi, x0),
- const char **sp,
+hexnan (const char **sp,
const FPI *fpi,
__ULong *x0)
{
@@ -64,8 +64,7 @@ variables vary from one system to another.
*/
char *
-_DEFUN (_findenv, (name, offset),
- register const char *name,
+_findenv (register const char *name,
int *offset)
{
return _findenv_r (_REENT, name, offset);
@@ -77,8 +76,7 @@ _DEFUN (_findenv, (name, offset),
*/
char *
-_DEFUN (getenv, (name),
- const char *name)
+getenv (const char *name)
{
int offset;
@@ -74,8 +74,7 @@ static char ***p_environ = &environ;
*/
char *
-_DEFUN (_findenv_r, (reent_ptr, name, offset),
- struct _reent *reent_ptr,
+_findenv_r (struct _reent *reent_ptr,
register const char *name,
int *offset)
{
@@ -119,8 +118,7 @@ _DEFUN (_findenv_r, (reent_ptr, name, offset),
*/
char *
-_DEFUN (_getenv_r, (reent_ptr, name),
- struct _reent *reent_ptr,
+_getenv_r (struct _reent *reent_ptr,
const char *name)
{
int offset;
@@ -30,8 +30,7 @@ No supporting OS subroutine calls are required.
#include <stdlib.h>
char *
-_DEFUN (__itoa, (value, str, base),
- int value,
+__itoa (int value,
char *str,
int base)
{
@@ -60,8 +59,7 @@ _DEFUN (__itoa, (value, str, base),
}
char *
-_DEFUN (itoa, (value, str, base),
- int value,
+itoa (int value,
char *str,
int base)
{
@@ -14,8 +14,7 @@
#include "rand48.h"
long
-_DEFUN (_jrand48_r, (r, xseed),
- struct _reent *r,
+_jrand48_r (struct _reent *r,
unsigned short xseed[3])
{
__dorand48(r, xseed);
@@ -24,8 +23,7 @@ _DEFUN (_jrand48_r, (r, xseed),
#ifndef _REENT_ONLY
long
-_DEFUN (jrand48, (xseed),
- unsigned short xseed[3])
+jrand48 (unsigned short xseed[3])
{
return _jrand48_r (_REENT, xseed);
}
@@ -27,15 +27,13 @@
static const char R64_ARRAY[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
char *
-_DEFUN (l64a, (value),
- long value)
+l64a (long value)
{
return _l64a_r (_REENT, value);
}
char *
-_DEFUN (_l64a_r, (rptr, value),
- struct _reent *rptr,
+_l64a_r (struct _reent *rptr,
long value)
{
char *ptr;
@@ -33,8 +33,7 @@ No supporting OS subroutine calls are required.
#include <stdlib.h>
long
-_DEFUN (labs, (x),
- long x)
+labs (long x)
{
if (x < 0)
{
@@ -14,8 +14,7 @@
#include "rand48.h"
void
-_DEFUN (_lcong48_r, (r, p),
- struct _reent *r,
+_lcong48_r (struct _reent *r,
unsigned short p[7])
{
_REENT_CHECK_RAND48(r);
@@ -30,8 +29,7 @@ _DEFUN (_lcong48_r, (r, p),
#ifndef _REENT_ONLY
void
-_DEFUN (lcong48, (p),
- unsigned short p[7])
+lcong48 (unsigned short p[7])
{
_lcong48_r (_REENT, p);
}
@@ -82,8 +82,7 @@ No supporting OS subroutines are required.
#include <stdlib.h> /* ldiv_t */
ldiv_t
-_DEFUN (ldiv, (num, denom),
- long num,
+ldiv (long num,
long denom)
{
ldiv_t r;
@@ -54,8 +54,7 @@ No supporting OS subroutines are required.
#include <stdlib.h>
long long
-_DEFUN(llabs, (j),
- long long j)
+llabs (long long j)
{
return (j < 0 ? -j : j);
}
@@ -94,8 +94,7 @@ No supporting OS subroutines are required.
* subtract denom from r.rem.
*/
lldiv_t
-_DEFUN (lldiv, (number, denom),
- long long numer, long long denom)
+lldiv (long long numer, long long denom)
{
lldiv_t retval;
@@ -14,8 +14,7 @@
#include "rand48.h"
long
-_DEFUN (_lrand48_r, (r),
- struct _reent *r)
+_lrand48_r (struct _reent *r)
{
_REENT_CHECK_RAND48(r);
__dorand48(r, __rand48_seed);
@@ -9,8 +9,7 @@
#ifndef _REENT_ONLY
void *
-_DEFUN (memalign, (align, nbytes),
- size_t align,
+memalign (size_t align,
size_t nbytes)
{
return _memalign_r (_REENT, align, nbytes);
@@ -159,15 +159,13 @@ Supporting OS subroutines required: <<sbrk>>. */
#ifndef _REENT_ONLY
void *
-_DEFUN (malloc, (nbytes),
- size_t nbytes) /* get a block */
+malloc (size_t nbytes) /* get a block */
{
return _malloc_r (_REENT, nbytes);
}
void
-_DEFUN (free, (aptr),
- void *aptr)
+free (void *aptr)
{
_free_r (_REENT, aptr);
}
@@ -43,8 +43,7 @@ effects vary with the locale.
#include "local.h"
int
-_DEFUN (mblen, (s, n),
- const char *s,
+mblen (const char *s,
size_t n)
{
#ifdef _MB_CAPABLE
@@ -41,8 +41,7 @@ effects vary with the locale.
#include "local.h"
int
-_DEFUN (_mblen_r, (r, s, n, state),
- struct _reent *r,
+_mblen_r (struct _reent *r,
const char *s,
size_t n,
mbstate_t *state)
@@ -8,8 +8,7 @@
#include "local.h"
size_t
-_DEFUN (_mbrtowc_r, (ptr, pwc, s, n, ps),
- struct _reent *ptr,
+_mbrtowc_r (struct _reent *ptr,
wchar_t *pwc,
const char *s,
size_t n,
@@ -42,8 +41,7 @@ _DEFUN (_mbrtowc_r, (ptr, pwc, s, n, ps),
#ifndef _REENT_ONLY
size_t
-_DEFUN (mbrtowc, (pwc, s, n, ps),
- wchar_t *__restrict pwc,
+mbrtowc (wchar_t *__restrict pwc,
const char *__restrict s,
size_t n,
mbstate_t *__restrict ps)
@@ -71,8 +71,7 @@ PORTABILITY
#include <errno.h>
size_t
-_DEFUN (_mbsnrtowcs_r, (r, dst, src, nms, len, ps),
- struct _reent *r,
+_mbsnrtowcs_r (struct _reent *r,
wchar_t *dst,
const char **src,
size_t nms,
@@ -137,8 +136,7 @@ _DEFUN (_mbsnrtowcs_r, (r, dst, src, nms, len, ps),
#ifndef _REENT_ONLY
size_t
-_DEFUN (mbsnrtowcs, (dst, src, nms, len, ps),
- wchar_t *__restrict dst,
+mbsnrtowcs (wchar_t *__restrict dst,
const char **__restrict src,
size_t nms,
size_t len,
@@ -8,8 +8,7 @@
#include <errno.h>
size_t
-_DEFUN (_mbsrtowcs_r, (r, dst, src, len, ps),
- struct _reent *r,
+_mbsrtowcs_r (struct _reent *r,
wchar_t *dst,
const char **src,
size_t len,
@@ -20,8 +19,7 @@ _DEFUN (_mbsrtowcs_r, (r, dst, src, len, ps),
#ifndef _REENT_ONLY
size_t
-_DEFUN (mbsrtowcs, (dst, src, len, ps),
- wchar_t *__restrict dst,
+mbsrtowcs (wchar_t *__restrict dst,
const char **__restrict src,
size_t len,
mbstate_t *__restrict ps)
@@ -47,8 +47,7 @@ effects vary with the locale.
#include <wchar.h>
size_t
-_DEFUN (mbstowcs, (pwcs, s, n),
- wchar_t *__restrict pwcs,
+mbstowcs (wchar_t *__restrict pwcs,
const char *__restrict s,
size_t n)
{
@@ -3,8 +3,7 @@
#include "local.h"
size_t
-_DEFUN (_mbstowcs_r, (reent, pwcs, s, n, state),
- struct _reent *r,
+_mbstowcs_r (struct _reent *r,
wchar_t *__restrict pwcs,
const char *__restrict s,
size_t n,
@@ -50,8 +50,7 @@ effects vary with the locale.
#include "local.h"
int
-_DEFUN (mbtowc, (pwc, s, n),
- wchar_t *__restrict pwc,
+mbtowc (wchar_t *__restrict pwc,
const char *__restrict s,
size_t n)
{
@@ -8,8 +8,7 @@
#include "local.h"
int
-_DEFUN (_mbtowc_r, (r, pwc, s, n, state),
- struct _reent *r,
+_mbtowc_r (struct _reent *r,
wchar_t *__restrict pwc,
const char *__restrict s,
size_t n,
@@ -19,8 +18,7 @@ _DEFUN (_mbtowc_r, (r, pwc, s, n, state),
}
int
-_DEFUN (__ascii_mbtowc, (r, pwc, s, n, state),
- struct _reent *r,
+__ascii_mbtowc (struct _reent *r,
wchar_t *pwc,
const char *s,
size_t n,
@@ -528,8 +526,7 @@ __cp_mbtowc (int val)
#endif /* _MB_EXTENDED_CHARSETS_WINDOWS */
int
-_DEFUN (__utf8_mbtowc, (r, pwc, s, n, state),
- struct _reent *r,
+__utf8_mbtowc (struct _reent *r,
wchar_t *pwc,
const char *s,
size_t n,
@@ -730,8 +727,7 @@ _DEFUN (__utf8_mbtowc, (r, pwc, s, n, state),
because the underlying OS requires wchar_t == UTF-16. */
#ifndef __CYGWIN__
int
-_DEFUN (__sjis_mbtowc, (r, pwc, s, n, state),
- struct _reent *r,
+__sjis_mbtowc (struct _reent *r,
wchar_t *pwc,
const char *s,
size_t n,
@@ -787,8 +783,7 @@ _DEFUN (__sjis_mbtowc, (r, pwc, s, n, state),
}
int
-_DEFUN (__eucjp_mbtowc, (r, pwc, s, n, state),
- struct _reent *r,
+__eucjp_mbtowc (struct _reent *r,
wchar_t *pwc,
const char *s,
size_t n,
@@ -870,8 +865,7 @@ _DEFUN (__eucjp_mbtowc, (r, pwc, s, n, state),
}
int
-_DEFUN (__jis_mbtowc, (r, pwc, s, n, state),
- struct _reent *r,
+__jis_mbtowc (struct _reent *r,
wchar_t *pwc,
const char *s,
size_t n,
@@ -94,7 +94,7 @@
*/
_Bigint *
-_DEFUN (Balloc, (ptr, k), struct _reent *ptr, int k)
+Balloc (struct _reent *ptr, int k)
{
int x;
_Bigint *rv ;
@@ -133,7 +133,7 @@ _DEFUN (Balloc, (ptr, k), struct _reent *ptr, int k)
}
void
-_DEFUN (Bfree, (ptr, v), struct _reent *ptr, _Bigint * v)
+Bfree (struct _reent *ptr, _Bigint * v)
{
_REENT_CHECK_MP(ptr);
if (v)
@@ -144,8 +144,7 @@ _DEFUN (Bfree, (ptr, v), struct _reent *ptr, _Bigint * v)
}
_Bigint *
-_DEFUN (multadd, (ptr, b, m, a),
- struct _reent *ptr,
+multadd (struct _reent *ptr,
_Bigint * b,
int m,
int a)
@@ -191,8 +190,7 @@ _DEFUN (multadd, (ptr, b, m, a),
}
_Bigint *
-_DEFUN (s2b, (ptr, s, nd0, nd, y9),
- struct _reent * ptr,
+s2b (struct _reent * ptr,
const char *s,
int nd0,
int nd,
@@ -231,8 +229,7 @@ _DEFUN (s2b, (ptr, s, nd0, nd, y9),
}
int
-_DEFUN (hi0bits,
- (x), register __ULong x)
+hi0bits (register __ULong x)
{
register int k = 0;
@@ -266,7 +263,7 @@ _DEFUN (hi0bits,
}
int
-_DEFUN (lo0bits, (y), __ULong *y)
+lo0bits (__ULong *y)
{
register int k;
register __ULong x = *y;
@@ -316,7 +313,7 @@ _DEFUN (lo0bits, (y), __ULong *y)
}
_Bigint *
-_DEFUN (i2b, (ptr, i), struct _reent * ptr, int i)
+i2b (struct _reent * ptr, int i)
{
_Bigint *b;
@@ -327,7 +324,7 @@ _DEFUN (i2b, (ptr, i), struct _reent * ptr, int i)
}
_Bigint *
-_DEFUN (mult, (ptr, a, b), struct _reent * ptr, _Bigint * a, _Bigint * b)
+mult (struct _reent * ptr, _Bigint * a, _Bigint * b)
{
_Bigint *c;
int k, wa, wb, wc;
@@ -419,8 +416,7 @@ _DEFUN (mult, (ptr, a, b), struct _reent * ptr, _Bigint * a, _Bigint * b)
}
_Bigint *
-_DEFUN (pow5mult,
- (ptr, b, k), struct _reent * ptr, _Bigint * b, int k)
+pow5mult (struct _reent * ptr, _Bigint * b, int k)
{
_Bigint *b1, *p5, *p51;
int i;
@@ -459,7 +455,7 @@ _DEFUN (pow5mult,
}
_Bigint *
-_DEFUN (lshift, (ptr, b, k), struct _reent * ptr, _Bigint * b, int k)
+lshift (struct _reent * ptr, _Bigint * b, int k)
{
int i, k1, n, n1;
_Bigint *b1;
@@ -519,7 +515,7 @@ _DEFUN (lshift, (ptr, b, k), struct _reent * ptr, _Bigint * b, int k)
}
int
-_DEFUN (cmp, (a, b), _Bigint * a, _Bigint * b)
+cmp (_Bigint * a, _Bigint * b)
{
__ULong *xa, *xa0, *xb, *xb0;
int i, j;
@@ -549,7 +545,7 @@ _DEFUN (cmp, (a, b), _Bigint * a, _Bigint * b)
}
_Bigint *
-_DEFUN (diff, (ptr, a, b), struct _reent * ptr,
+diff (struct _reent * ptr,
_Bigint * a, _Bigint * b)
{
_Bigint *c;
@@ -633,7 +629,7 @@ _DEFUN (diff, (ptr, a, b), struct _reent * ptr,
}
double
-_DEFUN (ulp, (_x), double _x)
+ulp (double _x)
{
union double_union x, a;
register __Long L;
@@ -679,8 +675,7 @@ _DEFUN (ulp, (_x), double _x)
}
double
-_DEFUN (b2d, (a, e),
- _Bigint * a, int *e)
+b2d (_Bigint * a, int *e)
{
__ULong *xa, *xa0, w, y, z;
int k;
@@ -756,9 +751,7 @@ ret_d:
}
_Bigint *
-_DEFUN (d2b,
- (ptr, _d, e, bits),
- struct _reent * ptr,
+d2b (struct _reent * ptr,
double _d,
int *e,
int *bits)
@@ -911,7 +904,7 @@ _DEFUN (d2b,
#undef d1
double
-_DEFUN (ratio, (a, b), _Bigint * a, _Bigint * b)
+ratio (_Bigint * a, _Bigint * b)
{
union double_union da, db;
@@ -976,8 +969,7 @@ const double tinytens[] =
double
-_DEFUN (_mprec_log10, (dig),
- int dig)
+_mprec_log10 (int dig)
{
double v = 1.0;
if (dig < 24)
@@ -991,8 +983,7 @@ _DEFUN (_mprec_log10, (dig),
}
void
-_DEFUN (copybits, (c, n, b),
- __ULong *c,
+copybits (__ULong *c,
int n,
_Bigint *b)
{
@@ -1020,8 +1011,7 @@ _DEFUN (copybits, (c, n, b),
}
__ULong
-_DEFUN (any_on, (b, k),
- _Bigint *b,
+any_on (_Bigint *b,
int k)
{
int n, nwds;
@@ -14,8 +14,7 @@
#include "rand48.h"
long
-_DEFUN (_mrand48_r, (r),
- struct _reent *r)
+_mrand48_r (struct _reent *r)
{
_REENT_CHECK_RAND48(r);
__dorand48(r, __rand48_seed);
@@ -9,8 +9,7 @@
#ifndef _REENT_ONLY
size_t
-_DEFUN (malloc_usable_size, (ptr),
- void *ptr)
+malloc_usable_size (void *ptr)
{
return _malloc_usable_size_r (_REENT, ptr);
}
@@ -97,8 +97,7 @@ malloc_stats (void)
}
int
-_DEFUN (mallopt, (p, v),
- int p,
+mallopt (int p,
int v)
{
return _mallopt_r (_REENT, p, v);
@@ -115,8 +114,7 @@ _DEFUN (mallopt, (p, v),
malloc_stats. */
void
-_DEFUN (_mstats_r, (ptr, s),
- struct _reent *ptr,
+_mstats_r (struct _reent *ptr,
char *s)
{
_REENT_SMALL_CHECK_INIT(ptr);
@@ -126,8 +124,7 @@ _DEFUN (_mstats_r, (ptr, s),
#ifndef _REENT_ONLY
void
-_DEFUN (mstats, (s),
- char *s)
+mstats (char *s)
{
_mstats_r (_REENT, s);
}
@@ -9,8 +9,7 @@
#ifndef _REENT_ONLY
int
-_DEFUN (malloc_trim, (pad),
- size_t pad)
+malloc_trim (size_t pad)
{
return _malloc_trim_r (_REENT, pad);
}
@@ -14,8 +14,7 @@
#include "rand48.h"
long
-_DEFUN (_nrand48_r, (r, xseed),
- struct _reent *r,
+_nrand48_r (struct _reent *r,
unsigned short xseed[3])
{
__dorand48 (r, xseed);
@@ -25,8 +24,7 @@ _DEFUN (_nrand48_r, (r, xseed),
#ifndef _REENT_ONLY
long
-_DEFUN (nrand48, (xseed),
- unsigned short xseed[3])
+nrand48 (unsigned short xseed[3])
{
return _nrand48_r (_REENT, xseed);
}
@@ -66,9 +66,7 @@ const void * const __on_exit_dummy = &__on_exit_args;
*/
int
-_DEFUN (on_exit,
- (fn, arg),
- void _EXFNPTR(fn, (int, void *)),
+on_exit (void _EXFNPTR(fn, (int, void *)),
void *arg)
{
return __register_exitproc (__et_onexit, (void (*)(void)) fn, arg, NULL);
@@ -23,8 +23,7 @@
#include <string.h>
int
-_DEFUN (putenv, (str),
- char *str)
+putenv (char *str)
{
return _putenv_r (_REENT, str);
}
@@ -31,8 +31,7 @@
or replaces the environment variable "name"
with "value" which is specified by str as "name=value". */
int
-_DEFUN (_putenv_r, (reent_ptr, str),
- struct _reent *reent_ptr,
+_putenv_r (struct _reent *reent_ptr,
char *str)
{
register char *p, *equal;
@@ -59,7 +59,7 @@ on two different systems.
#include <reent.h>
void
-_DEFUN (srand, (seed), unsigned int seed)
+srand (unsigned int seed)
{
struct _reent *reent = _REENT;
@@ -130,8 +130,7 @@ No supporting OS subroutines are required.
#include "rand48.h"
void
-_DEFUN (__dorand48, (r, xseed),
- struct _reent *r,
+__dorand48 (struct _reent *r,
unsigned short xseed[3])
{
unsigned long accu;
@@ -22,7 +22,7 @@
*/
int
-_DEFUN (rand_r, (seed), unsigned int *seed)
+rand_r (unsigned int *seed)
{
long k;
long s = (long)(*seed);
@@ -57,7 +57,7 @@ algorithm as <<rand>>.
#include <reent.h>
void
-_DEFUN (srandom, (seed), unsigned int seed)
+srandom (unsigned int seed)
{
struct _reent *reent = _REENT;
@@ -11,8 +11,7 @@ int _dummy_realloc = 1;
#ifndef _REENT_ONLY
void *
-_DEFUN (realloc, (ap, nbytes),
- void *ap,
+realloc (void *ap,
size_t nbytes)
{
return _realloc_r (_REENT, ap, nbytes);
@@ -31,8 +31,7 @@
#include <stdlib.h>
void *
-_DEFUN (_reallocf_r, (reentptr, ptr, size),
- struct _reent *reentptr,
+_reallocf_r (struct _reent *reentptr,
void *ptr,
size_t size)
{
@@ -46,8 +45,7 @@ _DEFUN (_reallocf_r, (reentptr, ptr, size),
#ifndef _REENT_ONLY
void *
-_DEFUN (reallocf, (ptr, size),
- void *ptr,
+reallocf (void *ptr,
size_t size)
{
return _reallocf_r(_REENT, ptr, size);
@@ -59,8 +59,7 @@ No supporting OS subroutines are required.
#include <stdlib.h>
int
-_DEFUN(rpmatch, (response),
- const char *response)
+rpmatch (const char *response)
{
regex_t yes, no;
int ret;
@@ -14,8 +14,7 @@
#include "rand48.h"
unsigned short *
-_DEFUN (_seed48_r, (r, xseed),
- struct _reent *r,
+_seed48_r (struct _reent *r,
unsigned short xseed[3])
{
static unsigned short sseed[3];
@@ -36,8 +35,7 @@ _DEFUN (_seed48_r, (r, xseed),
#ifndef _REENT_ONLY
unsigned short *
-_DEFUN (seed48, (xseed),
- unsigned short xseed[3])
+seed48 (unsigned short xseed[3])
{
return _seed48_r (_REENT, xseed);
}
@@ -32,8 +32,7 @@ extern int _unsetenv_r (struct _reent *, const char *);
*/
int
-_DEFUN (setenv, (name, value, rewrite),
- const char *name,
+setenv (const char *name,
const char *value,
int rewrite)
{
@@ -45,8 +44,7 @@ _DEFUN (setenv, (name, value, rewrite),
* Delete environmental variable "name".
*/
int
-_DEFUN (unsetenv, (name),
- const char *name)
+unsetenv (const char *name)
{
return _unsetenv_r (_REENT, name);
}
@@ -49,8 +49,7 @@ extern char *_findenv_r (struct _reent *, const char *, int *);
*/
int
-_DEFUN (_setenv_r, (reent_ptr, name, value, rewrite),
- struct _reent *reent_ptr,
+_setenv_r (struct _reent *reent_ptr,
const char *name,
const char *value,
int rewrite)
@@ -133,8 +132,7 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite),
* Delete environmental variable "name".
*/
int
-_DEFUN (_unsetenv_r, (reent_ptr, name),
- struct _reent *reent_ptr,
+_unsetenv_r (struct _reent *reent_ptr,
const char *name)
{
register char **P;
@@ -14,8 +14,7 @@
#include "rand48.h"
void
-_DEFUN (_srand48_r, (r, seed),
- struct _reent *r,
+_srand48_r (struct _reent *r,
long seed)
{
_REENT_CHECK_RAND48(r);
@@ -30,8 +29,7 @@ _DEFUN (_srand48_r, (r, seed),
#ifndef _REENT_ONLY
void
-_DEFUN (srand48, (seed),
- long seed)
+srand48 (long seed)
{
_srand48_r (_REENT, seed);
}
@@ -174,8 +174,7 @@ static const double tinytens[] = { 1e-16, 1e-32,
#ifdef Avoid_Underflow /*{*/
static double
-_DEFUN (sulp, (x, scale),
- U x,
+sulp (U x,
int scale)
{
U u;
@@ -197,8 +196,7 @@ _DEFUN (sulp, (x, scale),
#ifndef NO_HEX_FP
static void
-_DEFUN (ULtod, (L, bits, exp, k),
- __ULong *L,
+ULtod (__ULong *L,
__ULong *bits,
Long exp,
int k)
@@ -1252,8 +1250,7 @@ _strtod_l (struct _reent *ptr, const char *__restrict s00, char **__restrict se,
}
double
-_DEFUN (_strtod_r, (ptr, s00, se),
- struct _reent *ptr,
+_strtod_r (struct _reent *ptr,
const char *__restrict s00,
char **__restrict se)
{
@@ -1269,8 +1266,7 @@ strtod_l (const char *__restrict s00, char **__restrict se, locale_t loc)
}
double
-_DEFUN (strtod, (s00, se),
- const char *__restrict s00, char **__restrict se)
+strtod (const char *__restrict s00, char **__restrict se)
{
return _strtod_l (_REENT, s00, se, __get_current_locale ());
}
@@ -1290,8 +1286,7 @@ strtof_l (const char *__restrict s00, char **__restrict se, locale_t loc)
}
float
-_DEFUN (strtof, (s00, se),
- const char *__restrict s00,
+strtof (const char *__restrict s00,
char **__restrict se)
{
double val = _strtod_l (_REENT, s00, se, __get_current_locale ());
@@ -212,8 +212,7 @@ _strtol_l (struct _reent *rptr, const char *__restrict nptr,
}
long
-_DEFUN (_strtol_r, (rptr, nptr, endptr, base),
- struct _reent *rptr,
+_strtol_r (struct _reent *rptr,
const char *__restrict nptr,
char **__restrict endptr,
int base)
@@ -231,8 +230,7 @@ strtol_l (const char *__restrict s, char **__restrict ptr, int base,
}
long
-_DEFUN (strtol, (s, ptr, base),
- const char *__restrict s,
+strtol (const char *__restrict s,
char **__restrict ptr,
int base)
{
@@ -214,8 +214,7 @@ _strtoll_l (struct _reent *rptr, const char *__restrict nptr,
}
long long
-_DEFUN (_strtoll_r, (rptr, nptr, endptr, base),
- struct _reent *rptr,
+_strtoll_r (struct _reent *rptr,
const char *__restrict nptr,
char **__restrict endptr,
int base)
@@ -233,8 +232,7 @@ strtoll_l (const char *__restrict s, char **__restrict ptr, int base,
}
long long
-_DEFUN (strtoll, (s, ptr, base),
- const char *__restrict s,
+strtoll (const char *__restrict s,
char **__restrict ptr,
int base)
{
@@ -191,8 +191,7 @@ _strtoul_l (struct _reent *rptr, const char *__restrict nptr,
}
unsigned long
-_DEFUN (_strtoul_r, (rptr, nptr, endptr, base),
- struct _reent *rptr,
+_strtoul_r (struct _reent *rptr,
const char *__restrict nptr,
char **__restrict endptr,
int base)
@@ -210,8 +209,7 @@ strtoul_l (const char *__restrict s, char **__restrict ptr, int base,
}
unsigned long
-_DEFUN (strtoul, (s, ptr, base),
- const char *__restrict s,
+strtoul (const char *__restrict s,
char **__restrict ptr,
int base)
{
@@ -189,8 +189,7 @@ _strtoull_l (struct _reent *rptr, const char *__restrict nptr,
}
unsigned long long
-_DEFUN (_strtoull_r, (rptr, nptr, endptr, base),
- struct _reent *rptr,
+_strtoull_r (struct _reent *rptr,
const char *__restrict nptr,
char **__restrict endptr,
int base)
@@ -208,8 +207,7 @@ strtoull_l (const char *__restrict s, char **__restrict ptr, int base,
}
unsigned long long
-_DEFUN (strtoull, (s, ptr, base),
- const char *__restrict s,
+strtoull (const char *__restrict s,
char **__restrict ptr,
int base)
{
@@ -57,8 +57,7 @@ static int _EXFUN(do_system, (struct _reent *ptr, const char *s));
#endif
int
-_DEFUN(_system_r, (ptr, s),
- struct _reent *ptr,
+_system_r (struct _reent *ptr,
const char *s)
{
#if defined(HAVE_SYSTEM)
@@ -93,8 +92,7 @@ _DEFUN(_system_r, (ptr, s),
#ifndef _REENT_ONLY
int
-_DEFUN(system, (s),
- const char *s)
+system (const char *s)
{
return _system_r (_REENT, s);
}
@@ -110,8 +108,7 @@ extern char **environ;
static char ***p_environ = &environ;
static int
-_DEFUN(do_system, (ptr, s),
- struct _reent *ptr,
+do_system (struct _reent *ptr,
const char *s)
{
char *argv[4];
@@ -142,8 +139,7 @@ _DEFUN(do_system, (ptr, s),
#if defined (__CYGWIN__)
static int
-_DEFUN(do_system, (ptr, s),
- struct _reent *ptr,
+do_system (struct _reent *ptr,
const char *s)
{
char *argv[4];
@@ -28,8 +28,7 @@ No supporting OS subroutine calls are required.
#include <stdlib.h>
char *
-_DEFUN (__utoa, (value, str, base),
- unsigned value,
+__utoa (unsigned value,
char *str,
int base)
{
@@ -67,8 +66,7 @@ _DEFUN (__utoa, (value, str, base),
}
char *
-_DEFUN (utoa, (value, str, base),
- unsigned value,
+utoa (unsigned value,
char *str,
int base)
{
@@ -9,15 +9,13 @@
#ifndef _REENT_ONLY
void *
-_DEFUN (valloc, (nbytes),
- size_t nbytes)
+valloc (size_t nbytes)
{
return _valloc_r (_REENT, nbytes);
}
void *
-_DEFUN (pvalloc, (nbytes),
- size_t nbytes)
+pvalloc (size_t nbytes)
{
return _pvalloc_r (_REENT, nbytes);
}
@@ -7,8 +7,7 @@
#include "local.h"
size_t
-_DEFUN (_wcrtomb_r, (ptr, s, wc, ps),
- struct _reent *ptr,
+_wcrtomb_r (struct _reent *ptr,
char *s,
wchar_t wc,
mbstate_t *ps)
@@ -41,8 +40,7 @@ _DEFUN (_wcrtomb_r, (ptr, s, wc, ps),
#ifndef _REENT_ONLY
size_t
-_DEFUN (wcrtomb, (s, wc, ps),
- char *__restrict s,
+wcrtomb (char *__restrict s,
wchar_t wc,
mbstate_t *__restrict ps)
{
@@ -138,8 +138,7 @@ _wcsnrtombs_l (struct _reent *r, char *dst, const wchar_t **src, size_t nwc,
}
size_t
-_DEFUN (_wcsnrtombs_r, (r, dst, src, nwc, len, ps),
- struct _reent *r,
+_wcsnrtombs_r (struct _reent *r,
char *dst,
const wchar_t **src,
size_t nwc,
@@ -152,8 +151,7 @@ _DEFUN (_wcsnrtombs_r, (r, dst, src, nwc, len, ps),
#ifndef _REENT_ONLY
size_t
-_DEFUN (wcsnrtombs, (dst, src, nwc, len, ps),
- char *__restrict dst,
+wcsnrtombs (char *__restrict dst,
const wchar_t **__restrict src,
size_t nwc,
size_t len,
@@ -5,8 +5,7 @@
#include <wchar.h>
size_t
-_DEFUN (_wcsrtombs_r, (r, dst, src, len, ps),
- struct _reent *r,
+_wcsrtombs_r (struct _reent *r,
char *dst,
const wchar_t **src,
size_t len,
@@ -17,8 +16,7 @@ _DEFUN (_wcsrtombs_r, (r, dst, src, len, ps),
#ifndef _REENT_ONLY
size_t
-_DEFUN (wcsrtombs, (dst, src, len, ps),
- char *__restrict dst,
+wcsrtombs (char *__restrict dst,
const wchar_t **__restrict src,
size_t len,
mbstate_t *__restrict ps)
@@ -214,8 +214,7 @@ _wcstod_l (struct _reent *ptr, const wchar_t *nptr, wchar_t **endptr,
}
double
-_DEFUN (_wcstod_r, (ptr, nptr, endptr),
- struct _reent *ptr,
+_wcstod_r (struct _reent *ptr,
const wchar_t *nptr,
wchar_t **endptr)
{
@@ -223,8 +222,7 @@ _DEFUN (_wcstod_r, (ptr, nptr, endptr),
}
float
-_DEFUN (_wcstof_r, (ptr, nptr, endptr),
- struct _reent *ptr,
+_wcstof_r (struct _reent *ptr,
const wchar_t *nptr,
wchar_t **endptr)
{
@@ -244,8 +242,7 @@ wcstod_l (const wchar_t *__restrict nptr, wchar_t **__restrict endptr,
}
double
-_DEFUN (wcstod, (nptr, endptr),
- const wchar_t *__restrict nptr, wchar_t **__restrict endptr)
+wcstod (const wchar_t *__restrict nptr, wchar_t **__restrict endptr)
{
return _wcstod_l (_REENT, nptr, endptr, __get_current_locale ());
}
@@ -266,8 +263,7 @@ wcstof_l (const wchar_t *__restrict nptr, wchar_t **__restrict endptr,
}
float
-_DEFUN (wcstof, (nptr, endptr),
- const wchar_t *__restrict nptr,
+wcstof (const wchar_t *__restrict nptr,
wchar_t **__restrict endptr)
{
double val = _wcstod_l (_REENT, nptr, endptr, __get_current_locale ());
@@ -213,8 +213,7 @@ _wcstol_l (struct _reent *rptr, const wchar_t *nptr, wchar_t **endptr,
}
long
-_DEFUN (_wcstol_r, (rptr, nptr, endptr, base),
- struct _reent *rptr,
+_wcstol_r (struct _reent *rptr,
const wchar_t *nptr,
wchar_t **endptr,
int base)
@@ -232,8 +231,7 @@ wcstol_l (const wchar_t *__restrict s, wchar_t **__restrict ptr, int base,
}
long
-_DEFUN (wcstol, (s, ptr, base),
- const wchar_t *__restrict s,
+wcstol (const wchar_t *__restrict s,
wchar_t **__restrict ptr,
int base)
{
@@ -213,8 +213,7 @@ _wcstoll_l (struct _reent *rptr, const wchar_t *nptr, wchar_t **endptr,
}
long long
-_DEFUN (_wcstoll_r, (rptr, nptr, endptr, base),
- struct _reent *rptr,
+_wcstoll_r (struct _reent *rptr,
const wchar_t *nptr,
wchar_t **endptr,
int base)
@@ -232,8 +231,7 @@ wcstoll_l (const wchar_t *__restrict s, wchar_t **__restrict ptr, int base,
}
long long
-_DEFUN (wcstoll, (s, ptr, base),
- const wchar_t *__restrict s,
+wcstoll (const wchar_t *__restrict s,
wchar_t **__restrict ptr,
int base)
{
@@ -48,8 +48,7 @@ effects vary with the locale.
#include <wchar.h>
size_t
-_DEFUN (wcstombs, (s, pwcs, n),
- char *__restrict s,
+wcstombs (char *__restrict s,
const wchar_t *__restrict pwcs,
size_t n)
{
@@ -3,8 +3,7 @@
#include "local.h"
size_t
-_DEFUN (_wcstombs_r, (reent, s, pwcs, n, state),
- struct _reent *r,
+_wcstombs_r (struct _reent *r,
char *__restrict s,
const wchar_t *__restrict pwcs,
size_t n,
@@ -192,8 +192,7 @@ _wcstoul_l (struct _reent *rptr, const wchar_t *nptr, wchar_t **endptr,
}
unsigned long
-_DEFUN (_wcstoul_r, (rptr, nptr, endptr, base),
- struct _reent *rptr,
+_wcstoul_r (struct _reent *rptr,
const wchar_t *nptr,
wchar_t **endptr,
int base)
@@ -211,8 +210,7 @@ wcstoul_l (const wchar_t *__restrict s, wchar_t **__restrict ptr, int base,
}
unsigned long
-_DEFUN (wcstoul, (s, ptr, base),
- const wchar_t *__restrict s,
+wcstoul (const wchar_t *__restrict s,
wchar_t **__restrict ptr,
int base)
{
@@ -208,8 +208,7 @@ _wcstoull_l (struct _reent *rptr, const wchar_t *nptr, wchar_t **endptr,
}
unsigned long long
-_DEFUN (_wcstoull_r, (rptr, nptr, endptr, base),
- struct _reent *rptr,
+_wcstoull_r (struct _reent *rptr,
const wchar_t *nptr,
wchar_t **endptr,
int base)
@@ -227,8 +226,7 @@ wcstoull_l (const wchar_t *__restrict s, wchar_t **__restrict ptr, int base,
}
unsigned long long
-_DEFUN (wcstoull, (s, ptr, base),
- const wchar_t *__restrict s,
+wcstoull (const wchar_t *__restrict s,
wchar_t **__restrict ptr,
int base)
{
@@ -46,8 +46,7 @@ effects vary with the locale.
#include "local.h"
int
-_DEFUN (wctomb, (s, wchar),
- char *s,
+wctomb (char *s,
wchar_t wchar)
{
#ifdef _MB_CAPABLE
@@ -7,8 +7,7 @@
#include "local.h"
int
-_DEFUN (_wctomb_r, (r, s, wchar, state),
- struct _reent *r,
+_wctomb_r (struct _reent *r,
char *s,
wchar_t _wchar,
mbstate_t *state)
@@ -17,8 +16,7 @@ _DEFUN (_wctomb_r, (r, s, wchar, state),
}
int
-_DEFUN (__ascii_wctomb, (r, s, wchar, state),
- struct _reent *r,
+__ascii_wctomb (struct _reent *r,
char *s,
wchar_t _wchar,
mbstate_t *state)
@@ -50,8 +48,7 @@ _DEFUN (__ascii_wctomb, (r, s, wchar, state),
#define __state __count
int
-_DEFUN (__utf8_wctomb, (r, s, wchar, state),
- struct _reent *r,
+__utf8_wctomb (struct _reent *r,
char *s,
wchar_t _wchar,
mbstate_t *state)
@@ -144,8 +141,7 @@ _DEFUN (__utf8_wctomb, (r, s, wchar, state),
because the underlying OS requires wchar_t == UTF-16. */
#ifndef __CYGWIN__
int
-_DEFUN (__sjis_wctomb, (r, s, wchar, state),
- struct _reent *r,
+__sjis_wctomb (struct _reent *r,
char *s,
wchar_t _wchar,
mbstate_t *state)
@@ -178,8 +174,7 @@ _DEFUN (__sjis_wctomb, (r, s, wchar, state),
}
int
-_DEFUN (__eucjp_wctomb, (r, s, wchar, state),
- struct _reent *r,
+__eucjp_wctomb (struct _reent *r,
char *s,
wchar_t _wchar,
mbstate_t *state)
@@ -218,8 +213,7 @@ _DEFUN (__eucjp_wctomb, (r, s, wchar, state),
}
int
-_DEFUN (__jis_wctomb, (r, s, wchar, state),
- struct _reent *r,
+__jis_wctomb (struct _reent *r,
char *s,
wchar_t _wchar,
mbstate_t *state)
@@ -32,8 +32,7 @@ QUICKREF
#include <strings.h>
int
-_DEFUN (bcmp, (m1, m2, n),
- const void *m1,
+bcmp (const void *m1,
const void *m2,
size_t n)
@@ -24,8 +24,7 @@ QUICKREF
#include <strings.h>
void
-_DEFUN (bcopy, (b1, b2, length),
- const void *b1,
+bcopy (const void *b1,
void *b2,
size_t length)
{
@@ -14,8 +14,7 @@
#include <string.h>
char *
-_DEFUN (__gnu_basename, (path),
- const char *path)
+__gnu_basename (const char *path)
{
char *p;
if ((p = strrchr (path, '/')))
@@ -31,8 +31,7 @@ QUICKREF
#include <strings.h>
char *
-_DEFUN (index, (s, c),
- const char *s,
+index (const char *s,
int c)
{
return strchr (s, c);
@@ -56,8 +56,7 @@ PORTABILITY
void *
-_DEFUN (memccpy, (dst0, src0, endchar, len0),
- void *__restrict dst0,
+memccpy (void *__restrict dst0,
const void *__restrict src0,
int endchar0,
size_t len0)
@@ -62,8 +62,7 @@ QUICKREF
#define DETECTCHAR(X,MASK) (DETECTNULL(X ^ MASK))
void *
-_DEFUN (memchr, (src_void, c, length),
- const void *src_void,
+memchr (const void *src_void,
int c,
size_t length)
{
@@ -43,8 +43,7 @@ QUICKREF
#define TOO_SMALL(LEN) ((LEN) < LBLOCKSIZE)
int
-_DEFUN (memcmp, (m1, m2, n),
- const void *m1,
+memcmp (const void *m1,
const void *m2,
size_t n)
{
@@ -44,8 +44,7 @@ QUICKREF
#define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE)
void *
-_DEFUN (memcpy, (dst0, src0, len0),
- void *__restrict dst0,
+memcpy (void *__restrict dst0,
const void *__restrict src0,
size_t len0)
{
@@ -46,8 +46,7 @@ QUICKREF
#endif
void *
-_DEFUN (memmem, (haystack_start, haystack_len, needle_start, needle_len),
- const void *haystack_start,
+memmem (const void *haystack_start,
size_t haystack_len,
const void *needle_start,
size_t needle_len)
@@ -50,8 +50,7 @@ QUICKREF
/*SUPPRESS 20*/
void *
__inhibit_loop_to_libcall
-_DEFUN (memmove, (dst_void, src_void, length),
- void *dst_void,
+memmove (void *dst_void,
const void *src_void,
size_t length)
{
@@ -43,8 +43,7 @@ PORTABILITY
#define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE)
void *
-_DEFUN (mempcpy, (dst0, src0, len0),
- void *dst0,
+mempcpy (void *dst0,
const void *src0,
size_t len0)
{
@@ -62,8 +62,7 @@ QUICKREF
#define DETECTCHAR(X,MASK) (DETECTNULL(X ^ MASK))
void *
-_DEFUN (memrchr, (src_void, c, length),
- const void *src_void,
+memrchr (const void *src_void,
int c,
size_t length)
{
@@ -35,8 +35,7 @@ QUICKREF
void *
__inhibit_loop_to_libcall
-_DEFUN (memset, (m, c, n),
- void *m,
+memset (void *m,
int c,
size_t n)
{
@@ -61,8 +61,7 @@ QUICKREF
#define DETECTCHAR(X,MASK) (DETECTNULL(X ^ MASK))
void *
-_DEFUN (rawmemchr, (src_void, c),
- const void *src_void,
+rawmemchr (const void *src_void,
int c)
{
const unsigned char *src = (const unsigned char *) src_void;
@@ -31,8 +31,7 @@ QUICKREF
#include <strings.h>
char *
-_DEFUN (rindex, (s, c),
- const char *s,
+rindex (const char *s,
int c)
{
return strrchr (s, c);
@@ -53,8 +53,7 @@ QUICKREF
#endif
char*
-_DEFUN (stpcpy, (dst, src),
- char *__restrict dst,
+stpcpy (char *__restrict dst,
const char *__restrict src)
{
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
@@ -61,8 +61,7 @@ QUICKREF
#define TOO_SMALL(LEN) ((LEN) < sizeof (long))
char *
-_DEFUN (stpncpy, (dst, src),
- char *__restrict dst,
+stpncpy (char *__restrict dst,
const char *__restrict src,
size_t count)
{
@@ -36,8 +36,7 @@ QUICKREF
#include <ctype.h>
int
-_DEFUN (strcasecmp, (s1, s2),
- const char *s1,
+strcasecmp (const char *s1,
const char *s2)
{
int d = 0;
@@ -90,8 +90,7 @@ QUICKREF
* Find the first occurrence of find in s, ignore case.
*/
char *
-_DEFUN (strcasestr, (s, find),
- const char *s,
+strcasestr (const char *s,
const char *find)
{
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
@@ -54,8 +54,7 @@ QUICKREF
/*SUPPRESS 530*/
char *
-_DEFUN (strcat, (s1, s2),
- char *__restrict s1,
+strcat (char *__restrict s1,
const char *__restrict s2)
{
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
@@ -52,8 +52,7 @@ QUICKREF
#define DETECTCHAR(X,MASK) (DETECTNULL(X ^ MASK))
char *
-_DEFUN (strchr, (s1, i),
- const char *s1,
+strchr (const char *s1,
int i)
{
const unsigned char *s = (const unsigned char *)s1;
@@ -31,8 +31,7 @@ QUICKREF
#include <string.h>
char *
-_DEFUN (strchrnul, (s1, i),
- const char *s1,
+strchrnul (const char *s1,
int i)
{
char *s = strchr(s1, i);
@@ -52,8 +52,7 @@ QUICKREF
#endif
int
-_DEFUN (strcmp, (s1, s2),
- const char *s1,
+strcmp (const char *s1,
const char *s2)
{
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
@@ -36,8 +36,7 @@ QUICKREF
#include <string.h>
int
-_DEFUN (strcoll, (a, b),
- const char *a,
+strcoll (const char *a,
const char *b)
{
@@ -52,8 +52,7 @@ QUICKREF
#endif
char*
-_DEFUN (strcpy, (dst0, src0),
- char *dst0,
+strcpy (char *dst0,
const char *src0)
{
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
@@ -26,8 +26,7 @@ PORTABILITY
#include <string.h>
size_t
-_DEFUN (strcspn, (s1, s2),
- const char *s1,
+strcspn (const char *s1,
const char *s2)
{
const char *s = s1;
@@ -5,7 +5,7 @@
#include <string.h>
char *
-_DEFUN (strdup, (str), const char *str)
+strdup (const char *str)
{
return _strdup_r (_REENT, str);
}
@@ -3,8 +3,7 @@
#include <string.h>
char *
-_DEFUN (_strdup_r, (reent_ptr, str),
- struct _reent *reent_ptr,
+_strdup_r (struct _reent *reent_ptr,
const char *str)
{
size_t len = strlen (str) + 1;
@@ -385,8 +385,7 @@ QUICKREF
#include <string.h>
char *
-_DEFUN (_strerror_r, (ptr, errnum, internal, errptr),
- struct _reent *ptr,
+_strerror_r (struct _reent *ptr,
int errnum,
int internal,
int *errptr)
@@ -893,8 +892,7 @@ _DEFUN (_strerror_r, (ptr, errnum, internal, errptr),
}
char *
-_DEFUN(strerror, (int),
- int errnum)
+strerror (int errnum)
{
return _strerror_r (_REENT, errnum, 0, NULL);
}
@@ -65,8 +65,7 @@ a non-empty alternate string without assigning into its third argument.
/* For backwards-compatible linking, this must be the GNU signature;
see xpg_strerror_r.c for the POSIX version. */
char *
-_DEFUN (strerror_r, (errnum, buffer, n),
- int errnum,
+strerror_r (int errnum,
char *buffer,
size_t n)
{
@@ -42,8 +42,7 @@ static char *rcsid = "$OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp
* If retval >= siz, truncation occurred.
*/
size_t
-_DEFUN (strlcat, (dst, src, siz),
- char *dst,
+strlcat (char *dst,
const char *src,
size_t siz)
{
@@ -40,8 +40,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
size_t
-_DEFUN (strlcpy, (dst, src, siz),
- char *dst,
+strlcpy (char *dst,
const char *src,
size_t siz)
{
@@ -49,8 +49,7 @@ QUICKREF
#endif
size_t
-_DEFUN (strlen, (str),
- const char *str)
+strlen (const char *str)
{
const char *start = str;
@@ -29,8 +29,7 @@ QUICKREF
#include <ctype.h>
char *
-_DEFUN (strlwr, (s),
- char *s)
+strlwr (char *s)
{
unsigned char *ucs = (unsigned char *) s;
for ( ; *ucs != '\0'; ucs++)
@@ -37,8 +37,7 @@ QUICKREF
#include <ctype.h>
int
-_DEFUN (strncasecmp, (s1, s2, n),
- const char *s1,
+strncasecmp (const char *s1,
const char *s2,
size_t n)
{
@@ -58,8 +58,7 @@ QUICKREF
#endif
char *
-_DEFUN (strncat, (s1, s2, n),
- char *__restrict s1,
+strncat (char *__restrict s1,
const char *__restrict s2,
size_t n)
{
@@ -52,8 +52,7 @@ QUICKREF
#endif
int
-_DEFUN (strncmp, (s1, s2, n),
- const char *s1,
+strncmp (const char *s1,
const char *s2,
size_t n)
{
@@ -59,8 +59,7 @@ QUICKREF
#define TOO_SMALL(LEN) ((LEN) < sizeof (long))
char *
-_DEFUN (strncpy, (dst0, src0),
- char *__restrict dst0,
+strncpy (char *__restrict dst0,
const char *__restrict src0,
size_t count)
{
@@ -6,8 +6,7 @@
#include <string.h>
char *
-_DEFUN (strndup, (str, n),
- const char *str,
+strndup (const char *str,
size_t n)
{
return _strndup_r (_REENT, str, n);
@@ -3,8 +3,7 @@
#include <string.h>
char *
-_DEFUN (_strndup_r, (reent_ptr, str, n),
- struct _reent *reent_ptr,
+_strndup_r (struct _reent *reent_ptr,
const char *str,
size_t n)
{
@@ -30,8 +30,7 @@ PORTABILITY
#include <string.h>
size_t
-_DEFUN (strnlen, (str, n),
- const char *str,
+strnlen (const char *str,
size_t n)
{
const char *start = str;
@@ -25,8 +25,7 @@ PORTABILITY
#include <string.h>
char *
-_DEFUN (strpbrk, (s1, s2),
- const char *s1,
+strpbrk (const char *s1,
const char *s2)
{
const char *c = s2;
@@ -30,8 +30,7 @@ QUICKREF
#include <string.h>
char *
-_DEFUN (strrchr, (s, i),
- const char *s,
+strrchr (const char *s,
int i)
{
const char *last = NULL;
@@ -11,8 +11,7 @@
extern char *__strtok_r (char *, const char *, char **, int);
char *
-_DEFUN (strsep, (source_ptr, delim),
- register char **source_ptr,
+strsep (register char **source_ptr,
register const char *delim)
{
return __strtok_r (*source_ptr, delim, source_ptr, 0);
@@ -53,8 +53,7 @@ QUICKREF
#include <reent.h>
char *
-_DEFUN (strsignal, (signal),
- int signal)
+strsignal (int signal)
{
char *buffer;
struct _reent *ptr;
@@ -30,8 +30,7 @@ QUICKREF
#include <string.h>
size_t
-_DEFUN (strspn, (s1, s2),
- const char *s1,
+strspn (const char *s1,
const char *s2)
{
const char *s = s1;
@@ -39,8 +39,7 @@ QUICKREF
#endif
char *
-_DEFUN (strstr, (searchee, lookfor),
- const char *searchee,
+strstr (const char *searchee,
const char *lookfor)
{
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
@@ -79,8 +79,7 @@ QUICKREF
extern char *__strtok_r (char *, const char *, char **, int);
char *
-_DEFUN (strtok, (s, delim),
- register char *__restrict s,
+strtok (register char *__restrict s,
register const char *__restrict delim)
{
struct _reent *reent = _REENT;
@@ -30,8 +30,7 @@
#include <string.h>
char *
-_DEFUN (__strtok_r, (s, delim, lasts, skip_leading_delim),
- register char *s,
+__strtok_r (register char *s,
register const char *delim,
char **lasts,
int skip_leading_delim)
@@ -90,8 +89,7 @@ cont:
}
char *
-_DEFUN (strtok_r, (s, delim, lasts),
- register char *__restrict s,
+strtok_r (register char *__restrict s,
register const char *__restrict delim,
char **__restrict lasts)
{
@@ -29,8 +29,7 @@ QUICKREF
#include <ctype.h>
char *
-_DEFUN (strupr, (s),
- char *s)
+strupr (char *s)
{
unsigned char *ucs = (unsigned char *) s;
for ( ; *ucs != '\0'; ucs++)
@@ -46,8 +46,7 @@ QUICKREF
#include <string.h>
size_t
-_DEFUN (strxfrm, (s1, s2, n),
- char *__restrict s1,
+strxfrm (char *__restrict s1,
const char *__restrict s2,
size_t n)
{
@@ -18,8 +18,7 @@ PORTABILITY
#include <unistd.h>
void
-_DEFUN (swab, (b1, b2, length),
- const void *b1,
+swab (const void *b1,
void *b2,
ssize_t length)
{
@@ -1,8 +1,7 @@
#include <_ansi.h>
char *
-_DEFUN(_user_strerror, (errnum, internal, errptr),
- int errnum,
+_user_strerror (int errnum,
int internal,
int *errptr)
{
@@ -26,8 +26,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcpcpy, (s1, s2),
- wchar_t *__restrict s1,
+wcpcpy (wchar_t *__restrict s1,
const wchar_t *__restrict s2)
{
while ((*s1++ = *s2++))
@@ -33,8 +33,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcpncpy, (dst, src, count),
- wchar_t *__restrict dst,
+wcpncpy (wchar_t *__restrict dst,
const wchar_t *__restrict src,
size_t count)
{
@@ -36,8 +36,7 @@ QUICKREF
#include <wctype.h>
int
-_DEFUN (wcscasecmp, (s1, s2),
- const wchar_t *s1,
+wcscasecmp (const wchar_t *s1,
const wchar_t *s2)
{
int d = 0;
@@ -61,8 +61,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcscat, (s1, s2),
- wchar_t *__restrict s1,
+wcscat (wchar_t *__restrict s1,
const wchar_t *__restrict s2)
{
wchar_t *p;
@@ -58,8 +58,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcschr, (s, c),
- const wchar_t * s,
+wcschr (const wchar_t * s,
wchar_t c)
{
const wchar_t *p;
@@ -67,8 +67,7 @@ No supporting OS subroutines are required.
* Compare strings.
*/
int
-_DEFUN (wcscmp, (s1, s2),
- const wchar_t * s1,
+wcscmp (const wchar_t * s1,
const wchar_t * s2)
{
@@ -33,8 +33,7 @@ PORTABILITY
#include <wchar.h>
int
-_DEFUN (wcscoll, (a, b),
- const wchar_t *a,
+wcscoll (const wchar_t *a,
const wchar_t *b)
{
@@ -57,8 +57,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcscpy, (s1, s2),
- wchar_t *__restrict s1,
+wcscpy (wchar_t *__restrict s1,
const wchar_t *__restrict s2)
{
wchar_t *p;
@@ -56,8 +56,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
size_t
-_DEFUN (wcscspn, (s, set),
- const wchar_t * s,
+wcscspn (const wchar_t * s,
const wchar_t * set)
{
const wchar_t *p;
@@ -68,8 +68,7 @@ No supporting OS subroutines are required.
* truncation occurred.
*/
size_t
-_DEFUN (wcslcat, (dst, src, siz),
- wchar_t * dst,
+wcslcat (wchar_t * dst,
const wchar_t * src,
size_t siz)
{
@@ -62,8 +62,7 @@ No supporting OS subroutines are required.
* Returns wcslen(src); if retval >= siz, truncation occurred.
*/
size_t
-_DEFUN (wcslcpy, (dst, src, siz),
- wchar_t * dst,
+wcslcpy (wchar_t * dst,
const wchar_t * src,
size_t siz)
{
@@ -55,8 +55,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
size_t
-_DEFUN (wcslen, (s),
- const wchar_t * s)
+wcslen (const wchar_t * s)
{
const wchar_t *p;
@@ -37,8 +37,7 @@ QUICKREF
#include <wctype.h>
int
-_DEFUN (wcsncasecmp, (s1, s2, n),
- const wchar_t *s1,
+wcsncasecmp (const wchar_t *s1,
const wchar_t *s2,
size_t n)
{
@@ -62,8 +62,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcsncat, (s1, s2, n),
- wchar_t *__restrict s1,
+wcsncat (wchar_t *__restrict s1,
const wchar_t *__restrict s2,
size_t n)
{
@@ -63,8 +63,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
int
-_DEFUN (wcsncmp, (s1, s2, n),
- const wchar_t * s1,
+wcsncmp (const wchar_t * s1,
const wchar_t * s2,
size_t n)
{
@@ -35,8 +35,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcsncpy, (s1, s2, n),
- wchar_t *__restrict s1,
+wcsncpy (wchar_t *__restrict s1,
const wchar_t *__restrict s2,
size_t n)
{
@@ -52,8 +52,7 @@ PORTABILITY
#include <wchar.h>
size_t
-_DEFUN(wcsnlen, (s, maxlen),
- const wchar_t *s,
+wcsnlen (const wchar_t *s,
size_t maxlen)
{
const wchar_t *p;
@@ -57,8 +57,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcspbrk, (s, set),
- const wchar_t * s,
+wcspbrk (const wchar_t * s,
const wchar_t * set)
{
const wchar_t *p;
@@ -60,8 +60,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wcsrchr, (s, c),
- const wchar_t * s,
+wcsrchr (const wchar_t * s,
wchar_t c)
{
const wchar_t *p;
@@ -56,8 +56,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
size_t
-_DEFUN (wcsspn, (s, set),
- const wchar_t * s,
+wcsspn (const wchar_t * s,
const wchar_t * set)
{
const wchar_t *p;
@@ -61,8 +61,7 @@ PORTABILITY
#include <wchar.h>
wchar_t *
-_DEFUN (wcsstr, (big, little),
- const wchar_t *__restrict big,
+wcsstr (const wchar_t *__restrict big,
const wchar_t *__restrict little)
{
const wchar_t *p;
@@ -90,8 +90,7 @@ QUICKREF
#include <wchar.h>
wchar_t *
-_DEFUN (wcstok, (s, delim, lasts),
- register wchar_t *__restrict s,
+wcstok (register wchar_t *__restrict s,
register const wchar_t *__restrict delim,
wchar_t **__restrict lasts)
{
@@ -34,8 +34,7 @@ PORTABILITY
#include "local.h"
int
-_DEFUN (wcswidth, (pwcs, n),
- const wchar_t *pwcs,
+wcswidth (const wchar_t *pwcs,
size_t n)
{
@@ -36,8 +36,7 @@ PORTABILITY
#include <wchar.h>
size_t
-_DEFUN (wcsxfrm, (a, b, n),
- wchar_t *__restrict a,
+wcsxfrm (wchar_t *__restrict a,
const wchar_t *__restrict b,
size_t n)
@@ -163,8 +163,7 @@ bisearch(wint_t ucs, const struct interval *table, int max)
*/
int
-_DEFUN (__wcwidth, (ucs),
- const wint_t ucs)
+__wcwidth (const wint_t ucs)
{
#ifdef _MB_CAPABLE
/* sorted list of non-overlapping intervals of East Asian Ambiguous
@@ -329,8 +328,7 @@ _DEFUN (__wcwidth, (ucs),
}
int
-_DEFUN (wcwidth, (wc),
- const wchar_t wc)
+wcwidth (const wchar_t wc)
{
wint_t wi = wc;
@@ -63,8 +63,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wmemchr, (s, c, n),
- const wchar_t * s,
+wmemchr (const wchar_t * s,
wchar_t c,
size_t n)
{
@@ -62,8 +62,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
int
-_DEFUN (wmemcmp, (s1, s2, n),
- const wchar_t * s1,
+wmemcmp (const wchar_t * s1,
const wchar_t * s2,
size_t n)
{
@@ -61,8 +61,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wmemcpy, (d, s, n),
- wchar_t *__restrict d,
+wmemcpy (wchar_t *__restrict d,
const wchar_t *__restrict s,
size_t n)
{
@@ -66,8 +66,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wmemmove, (d, s, n),
- wchar_t * d,
+wmemmove (wchar_t * d,
const wchar_t * s,
size_t n)
{
@@ -34,8 +34,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN (wmempcpy, (d, s, n),
- wchar_t *__restrict d,
+wmempcpy (wchar_t *__restrict d,
const wchar_t *__restrict s,
size_t n)
{
@@ -59,8 +59,7 @@ No supporting OS subroutines are required.
#include <wchar.h>
wchar_t *
-_DEFUN(wmemset, (s, c, n),
- wchar_t *s,
+wmemset (wchar_t *s,
wchar_t c,
size_t n)
{
@@ -4,8 +4,7 @@
#include <string.h>
int
-_DEFUN (__xpg_strerror_r, (errnum, buffer, n),
- int errnum,
+__xpg_strerror_r (int errnum,
char *buffer,
size_t n)
{
@@ -6,8 +6,7 @@
/* The pid argument should be of type pid_t. */
int
-_DEFUN (_kill, (pid, sig),
- int pid,
+_kill (int pid,
int sig)
{
if (pid == 1 || pid < 0)
@@ -7,19 +7,17 @@
/* _raise(), getpid(), and kill() are required by abort().
getpid/kill are prefixed with '_' because of MISSING_SYSCALL_NAMES. */
-int _DEFUN(_raise,(sig),
- int sig)
+int _raise (int sig)
{
return 0;
}
-int _DEFUN(_getpid,(),)
+int _getpid (void)
{
return 0;
}
-int _DEFUN(_kill,(pid, sig),
- int pid,
+int _kill (int pid,
int sig)
{
if (pid == 0)
@@ -8,19 +8,17 @@
/* _raise(), getpid(), and kill() are required by abort().
getpid/kill are prefixed with '_' because of MISSING_SYSCALL_NAMES. */
-int _DEFUN(_raise,(sig),
- int sig)
+int _raise (int sig)
{
return 0;
}
-int _DEFUN(_getpid,(),)
+int _getpid (void)
{
return 0;
}
-int _DEFUN(_kill,(pid, sig),
- int pid,
+int _kill (int pid,
int sig)
{
if (sig == SIGABRT)
@@ -6,8 +6,7 @@
static char devname[] = "/dev/tty";
char *
-_DEFUN (ctermid, (buf),
- char *buf)
+ctermid (char *buf)
{
if (buf == NULL)
return devname;
@@ -3,8 +3,7 @@
#include <pwd.h>
struct passwd *
-_DEFUN (getpwnam, (name),
- const char *name)
+getpwnam (const char *name)
{
errno = ENOSYS;
return NULL;
@@ -12,8 +11,7 @@ _DEFUN (getpwnam, (name),
/* FIXME: dummy stub for now. */
struct passwd *
-_DEFUN (getpwuid, (uid),
- uid_t uid)
+getpwuid (uid_t uid)
{
errno = ENOSYS;
return NULL;
@@ -21,8 +19,7 @@ _DEFUN (getpwuid, (uid),
/* FIXME: dummy stub for now. */
struct passwd *
-_DEFUN (getpwent, (uid),
- uid_t uid)
+getpwent (uid_t uid)
{
errno = ENOSYS;
return NULL;
@@ -6,8 +6,7 @@
#include <machine/weakalias.h>
ssize_t
-_DEFUN (_pread_r, (rptr, fd, buf, n, off),
- struct _reent *rptr,
+_pread_r (struct _reent *rptr,
int fd,
void *buf,
size_t n,
@@ -33,8 +32,7 @@ _DEFUN (_pread_r, (rptr, fd, buf, n, off),
#ifndef _REENT_ONLY
ssize_t
-_DEFUN (__libc_pread, (fd, buf, n, off),
- int fd,
+__libc_pread (int fd,
void *buf,
size_t n,
off_t off)
@@ -30,8 +30,7 @@ Supporting OS subroutine required: <<read>>, <<lseek64>>.
#include <machine/weakalias.h>
ssize_t
-_DEFUN (__libc_pread64, (fd, buf, n, off),
- int fd,
+__libc_pread64 (int fd,
void *buf,
size_t n,
loff_t off)
@@ -6,8 +6,7 @@
#include <machine/weakalias.h>
ssize_t
-_DEFUN (_pwrite_r, (rptr, fd, buf, n, off),
- struct _reent *rptr,
+_pwrite_r (struct _reent *rptr,
int fd,
const void *buf,
size_t n,
@@ -33,8 +32,7 @@ _DEFUN (_pwrite_r, (rptr, fd, buf, n, off),
#ifndef _REENT_ONLY
ssize_t
-_DEFUN (__libc_pwrite, (fd, buf, n, off),
- int fd,
+__libc_pwrite (int fd,
const void *buf,
size_t n,
off_t off)
@@ -30,8 +30,7 @@ Supporting OS subroutine required: <<write>>, <<lseek64>>.
#include <machine/weakalias.h>
ssize_t
-_DEFUN (__libc_pwrite64, (fd, buf, n, off),
- int fd,
+__libc_pwrite64 (int fd,
void *buf,
size_t n,
loff_t off)
@@ -16,8 +16,7 @@ fpgetround (void)
}
fp_rnd
-_DEFUN(fpsetround,(new),
- fp_rnd new)
+fpsetround (fp_rnd new)
{
fp_rnd old = fpgetround();
char *dummy;
@@ -60,8 +59,7 @@ fpgetmask (void)
}
fp_except
-_DEFUN(fpsetmask,(mask),
- fp_except mask)
+fpsetmask (fp_except mask)
{
fp_except old = fpgetmask();
@@ -85,8 +83,7 @@ _DEFUN(fpsetmask,(mask),
}
fp_except
-_DEFUN(fpsetsticky,(mask),
- fp_except mask)
+fpsetsticky (fp_except mask)
{
return fpsetmask(mask);
}
@@ -98,8 +95,7 @@ fpgetsticky (void)
}
int
-_DEFUN(fpsetroundtoi,(rdi_mode),
- fp_rdi rdi_mode)
+fpsetroundtoi (fp_rdi rdi_mode)
{
return 0;
@@ -16,8 +16,7 @@ fpgetround (void)
}
fp_rnd
-_DEFUN(fpsetround,(new),
- fp_rnd new)
+fpsetround (fp_rnd new)
{
fp_rnd old = fpgetround();
char *dummy;
@@ -60,8 +59,7 @@ fpgetmask (void)
}
fp_except
-_DEFUN(fpsetmask,(mask),
- fp_except mask)
+fpsetmask (fp_except mask)
{
fp_except old = fpgetmask();
@@ -85,8 +83,7 @@ _DEFUN(fpsetmask,(mask),
}
fp_except
-_DEFUN(fpsetsticky,(mask),
- fp_except mask)
+fpsetsticky (fp_except mask)
{
return fpsetmask(mask);
}
@@ -98,8 +95,7 @@ fpgetsticky (void)
}
int
-_DEFUN(fpsetroundtoi,(rdi_mode),
- fp_rdi rdi_mode)
+fpsetroundtoi (fp_rdi rdi_mode)
{
return 0;
@@ -30,8 +30,7 @@ isatty() {
}
int
-_DEFUN(_fstat,(file, st),
- int file,
+_fstat (int file,
struct stat *st)
{
st->st_mode = S_IFCHR;
@@ -2,8 +2,7 @@
#include <machine/registers.h>
-fp_except _DEFUN(fpsetmask,(newmask),
- fp_except newmask)
+fp_except fpsetmask (fp_except newmask)
{
fp_except oldmask;
@@ -32,8 +31,7 @@ fp_rnd fpgetround (void)
return tkcw.fp_rounding;
}
-fp_rnd _DEFUN(fpsetround,(rnd),
- fp_rnd rnd)
+fp_rnd fpsetround (fp_rnd rnd)
{
fp_rnd oldrnd;
v60_tkcw_type tkcw;
@@ -56,8 +54,7 @@ fp_rdi fpgetroundtoi (void)
return tkcw.integer_rounding;
}
-fp_rdi _DEFUN(fpsetroundtoi,(rnd),
- fp_rdi rnd)
+fp_rdi fpsetroundtoi (fp_rdi rnd)
{
fp_rdi oldrnd;
v60_tkcw_type tkcw;
@@ -2,8 +2,7 @@
#include <machine/registers.h>
-fp_except _DEFUN(fpsetmask,(newmask),
- fp_except newmask)
+fp_except fpsetmask (fp_except newmask)
{
fp_except oldmask;
@@ -32,8 +31,7 @@ fp_rnd fpgetround (void)
return tkcw.fp_rounding;
}
-fp_rnd _DEFUN(fpsetround,(rnd),
- fp_rnd rnd)
+fp_rnd fpsetround (fp_rnd rnd)
{
fp_rnd oldrnd;
v60_tkcw_type tkcw;
@@ -56,8 +54,7 @@ fp_rdi fpgetroundtoi (void)
return tkcw.integer_rounding;
}
-fp_rdi _DEFUN(fpsetroundtoi,(rnd),
- fp_rdi rnd)
+fp_rdi fpsetroundtoi (fp_rdi rnd)
{
fp_rdi oldrnd;
v60_tkcw_type tkcw;
@@ -4,8 +4,7 @@
#include <unistd.h>
int
-_DEFUN (close, (fd),
- int fd)
+close (int fd)
{
return _close_r (_REENT, fd);
}
@@ -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[])
{
@@ -5,8 +5,7 @@
#include <errno.h>
int
-_DEFUN (fcntl, (fd, flag, arg),
- int fd,
+fcntl (int fd,
int flag,
int arg)
{
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -4,8 +4,7 @@
#include <unistd.h>
off_t
-_DEFUN (lseek, (fd, pos, whence),
- int fd,
+lseek (int fd,
off_t pos,
int whence)
{
@@ -10,8 +10,7 @@
#include <stdarg.h>
int
-_DEFUN (open, (file, flags, ...),
- const char *file,
+open (const char *file,
int flags, ...)
{
va_list ap;
@@ -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)
{
@@ -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);
}
@@ -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);
@@ -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);
}
@@ -4,8 +4,7 @@
#include <unistd.h>
int
-_DEFUN (unlink, (file),
- const char *file)
+unlink (const char *file)
{
return _unlink_r (_REENT, file);
}
@@ -4,8 +4,7 @@
#include <sys/wait.h>
pid_t
-_DEFUN (wait, (status),
- int *status)
+wait (int *status)
{
return _wait_r (_REENT, status);
}
@@ -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)
{
@@ -48,8 +48,7 @@ ANSI C requires <<asctime>>.
#ifndef _REENT_ONLY
char *
-_DEFUN (asctime, (tim_p),
- const struct tm *tim_p)
+asctime (const struct tm *tim_p)
{
struct _reent *reent = _REENT;
@@ -6,8 +6,7 @@
#include <time.h>
char *
-_DEFUN (asctime_r, (tim_p, result),
- const struct tm *__restrict tim_p,
+asctime_r (const struct tm *__restrict tim_p,
char *__restrict result)
{
static const char day_name[7][3] = {
@@ -37,8 +37,7 @@ ANSI C requires <<ctime>>.
#ifndef _REENT_ONLY
char *
-_DEFUN (ctime, (tim_p),
- const time_t * tim_p)
+ctime (const time_t * tim_p)
{
return asctime (localtime (tim_p));
}
@@ -5,8 +5,7 @@
#include <time.h>
char *
-_DEFUN (ctime_r, (tim_p, result),
- const time_t * tim_p,
+ctime_r (const time_t * tim_p,
char * result)
{
@@ -30,8 +30,7 @@ in all implementations.
#include <time.h>
double
-_DEFUN (difftime, (tim1, tim2),
- time_t tim1,
+difftime (time_t tim1,
time_t tim2)
{
return (double)(tim1 - tim2);
@@ -50,8 +50,7 @@ ANSI C requires <<gmtime>>.
#ifndef _REENT_ONLY
struct tm *
-_DEFUN (gmtime, (tim_p),
- const time_t * tim_p)
+gmtime (const time_t * tim_p)
{
struct _reent *reent = _REENT;
@@ -46,8 +46,7 @@
#define YEARS_PER_ERA 400
struct tm *
-_DEFUN (gmtime_r, (tim_p, res),
- const time_t *__restrict tim_p,
+gmtime_r (const time_t *__restrict tim_p,
struct tm *__restrict res)
{
long days, rem;
@@ -43,8 +43,7 @@ ANSI C requires <<localtime>>.
#ifndef _REENT_ONLY
struct tm *
-_DEFUN (localtime, (tim_p),
- const time_t * tim_p)
+localtime (const time_t * tim_p)
{
struct _reent *reent = _REENT;
@@ -16,8 +16,7 @@
#include "local.h"
struct tm *
-_DEFUN (localtime_r, (tim_p, res),
- const time_t *__restrict tim_p,
+localtime_r (const time_t *__restrict tim_p,
struct tm *__restrict res)
{
long offset;
@@ -62,8 +62,7 @@ static const int _DAYS_BEFORE_MONTH[12] =
#define _DAYS_IN_YEAR(year) (_ISLEAP(year) ? 366 : 365)
static void
-_DEFUN(validate_structure, (tim_p),
- struct tm *tim_p)
+validate_structure (struct tm *tim_p)
{
div_t res;
int days_in_feb = 28;
@@ -149,8 +148,7 @@ _DEFUN(validate_structure, (tim_p),
}
time_t
-_DEFUN(mktime, (tim_p),
- struct tm *tim_p)
+mktime (struct tm *tim_p)
{
time_t tim = 0;
long days = 0;
@@ -348,8 +348,7 @@ static const int dname_len[7] =
-1, 0, or 1 as the adjustment to add to the year for the ISO week
numbering used in "%g%G%V", avoiding overflow. */
static int
-_DEFUN (iso_year_adjust, (tim_p),
- const struct tm *tim_p)
+iso_year_adjust (const struct tm *tim_p)
{
/* Account for fact that tm_year==0 is year 1900. */
int leap = isleap (tim_p->tm_year + (YEAR_BASE
@@ -1431,8 +1430,7 @@ recurse:
}
size_t
-_DEFUN (strftime, (s, maxsize, format, tim_p),
- CHAR *__restrict s,
+strftime (CHAR *__restrict s,
size_t maxsize,
const CHAR *__restrict format,
const struct tm *__restrict tim_p)
@@ -33,8 +33,7 @@ Supporting OS subroutine required: Some implementations require
#include <sys/time.h>
time_t
-_DEFUN (time, (t),
- time_t * t)
+time (time_t * t)
{
struct timeval now;
@@ -11,8 +11,7 @@
#include "local.h"
int
-_DEFUN (__tzcalc_limits, (year),
- int year)
+__tzcalc_limits (int year)
{
int days, year_days, years;
int i, j;
@@ -14,8 +14,7 @@ static char __tzname_dst[11];
static char *prev_tzenv = NULL;
void
-_DEFUN (_tzset_unlocked_r, (reent_ptr),
- struct _reent *reent_ptr)
+_tzset_unlocked_r (struct _reent *reent_ptr)
{
char *tzenv;
unsigned short hh, mm, ss, m, w, d;
@@ -184,8 +183,7 @@ _DEFUN (_tzset_unlocked_r, (reent_ptr),
}
void
-_DEFUN (_tzset_r, (reent_ptr),
- struct _reent *reent_ptr)
+_tzset_r (struct _reent *reent_ptr)
{
TZ_LOCK;
_tzset_unlocked_r (reent_ptr);
@@ -8,8 +8,7 @@
#include <string.h>
char*
-_DEFUN (basename, (path),
- char *path)
+basename (char *path)
{
char *p;
if( path == NULL || *path == '\0' )
@@ -9,8 +9,7 @@
#include <string.h>
char *
-_DEFUN (dirname, (path),
- char *path)
+dirname (char *path)
{
char *p;
if( path == NULL || *path == '\0' )
@@ -38,8 +38,7 @@ Supporting OS subroutine required: <<read>>, <<lseek>>.
#include <reent.h>
ssize_t
-_DEFUN (_pread_r, (rptr, fd, buf, n, off),
- struct _reent *rptr,
+_pread_r (struct _reent *rptr,
int fd,
void *buf,
size_t n,
@@ -65,8 +64,7 @@ _DEFUN (_pread_r, (rptr, fd, buf, n, off),
#ifndef _REENT_ONLY
ssize_t
-_DEFUN (pread, (fd, buf, n, off),
- int fd,
+pread (int fd,
void *buf,
size_t n,
off_t off)
@@ -39,8 +39,7 @@ Supporting OS subroutine required: <<write>>, <<lseek>>.
#include <reent.h>
ssize_t
-_DEFUN (_pwrite_r, (rptr, fd, buf, n, off),
- struct _reent *rptr,
+_pwrite_r (struct _reent *rptr,
int fd,
const void *buf,
size_t n,
@@ -66,8 +65,7 @@ _DEFUN (_pwrite_r, (rptr, fd, buf, n, off),
#ifndef _REENT_ONLY
ssize_t
-_DEFUN (pwrite, (fd, buf, n, off),
- int fd,
+pwrite (int fd,
const void *buf,
size_t n,
off_t off)
@@ -41,8 +41,7 @@ static char ttyname_buf[TTYNAME_BUFSIZE] = _PATH_DEV;
* ttyname() - POSIX 1003.1b 4.7.2 - Determine Terminal Device Name
*/
char *
-_DEFUN( ttyname,(fd),
- int fd)
+ ttyname (int fd)
{
register int fail;
register char *ret=NULL;
@@ -44,8 +44,7 @@
* ttyname_r() - POSIX 1003.1b 4.7.2 - Determine Terminal Device Name
*/
int
-_DEFUN( ttyname_r,(fd, name, namesize),
- int fd,
+ ttyname_r (int fd,
char *name,
size_t namesize)
{
@@ -62,8 +62,7 @@ static const char xdr_zero[BYTES_PER_XDR_UNIT] = { 0, 0, 0, 0 };
* Not a filter, but a convenient utility nonetheless
*/
void
-_DEFUN (xdr_free, (proc, objp),
- xdrproc_t proc,
+xdr_free (xdrproc_t proc,
void * objp)
{
XDR x;
@@ -86,8 +85,7 @@ xdr_void (void)
* XDR integers
*/
bool_t
-_DEFUN (xdr_int, (xdrs, ip),
- XDR * xdrs,
+xdr_int (XDR * xdrs,
int * ip)
{
#if INT_MAX < LONG_MAX
@@ -121,8 +119,7 @@ _DEFUN (xdr_int, (xdrs, ip),
* XDR unsigned integers
*/
bool_t
-_DEFUN (xdr_u_int, (xdrs, up),
- XDR * xdrs,
+xdr_u_int (XDR * xdrs,
u_int * up)
{
#if UINT_MAX < ULONG_MAX
@@ -156,8 +153,7 @@ _DEFUN (xdr_u_int, (xdrs, up),
* XDR long integers
*/
bool_t
-_DEFUN (xdr_long, (xdrs, lp),
- XDR * xdrs,
+xdr_long (XDR * xdrs,
long * lp)
{
if ((xdrs->x_op == XDR_ENCODE)
@@ -177,8 +173,7 @@ _DEFUN (xdr_long, (xdrs, lp),
* XDR unsigned long integers
*/
bool_t
-_DEFUN (xdr_u_long, (xdrs, ulp),
- XDR * xdrs,
+xdr_u_long (XDR * xdrs,
u_long * ulp)
{
switch (xdrs->x_op)
@@ -208,8 +203,7 @@ _DEFUN (xdr_u_long, (xdrs, ulp),
* XDR 32-bit integers
*/
bool_t
-_DEFUN (xdr_int32_t, (xdrs, int32_p),
- XDR * xdrs,
+xdr_int32_t (XDR * xdrs,
int32_t * int32_p)
{
switch (xdrs->x_op)
@@ -230,8 +224,7 @@ _DEFUN (xdr_int32_t, (xdrs, int32_p),
* XDR unsigned 32-bit integers
*/
bool_t
-_DEFUN (xdr_u_int32_t, (xdrs, u_int32_p),
- XDR * xdrs,
+xdr_u_int32_t (XDR * xdrs,
u_int32_t * u_int32_p)
{
switch (xdrs->x_op)
@@ -252,8 +245,7 @@ _DEFUN (xdr_u_int32_t, (xdrs, u_int32_p),
* XDR unsigned 32-bit integers
*/
bool_t
-_DEFUN (xdr_uint32_t, (xdrs, uint32_p),
- XDR * xdrs,
+xdr_uint32_t (XDR * xdrs,
uint32_t * uint32_p)
{
switch (xdrs->x_op)
@@ -274,8 +266,7 @@ _DEFUN (xdr_uint32_t, (xdrs, uint32_p),
* XDR short integers
*/
bool_t
-_DEFUN (xdr_short, (xdrs, sp),
- XDR * xdrs,
+xdr_short (XDR * xdrs,
short * sp)
{
long l;
@@ -302,8 +293,7 @@ _DEFUN (xdr_short, (xdrs, sp),
* XDR unsigned short integers
*/
bool_t
-_DEFUN (xdr_u_short, (xdrs, usp),
- XDR * xdrs,
+xdr_u_short (XDR * xdrs,
u_short * usp)
{
long l;
@@ -331,8 +321,7 @@ _DEFUN (xdr_u_short, (xdrs, usp),
* XDR 16-bit integers
*/
bool_t
-_DEFUN (xdr_int16_t, (xdrs, int16_p),
- XDR * xdrs,
+xdr_int16_t (XDR * xdrs,
int16_t * int16_p)
{
int32_t t;
@@ -359,8 +348,7 @@ _DEFUN (xdr_int16_t, (xdrs, int16_p),
* XDR unsigned 16-bit integers
*/
bool_t
-_DEFUN (xdr_u_int16_t, (xdrs, u_int16_p),
- XDR * xdrs,
+xdr_u_int16_t (XDR * xdrs,
u_int16_t * u_int16_p)
{
uint32_t ut;
@@ -387,8 +375,7 @@ _DEFUN (xdr_u_int16_t, (xdrs, u_int16_p),
* XDR unsigned 16-bit integers
*/
bool_t
-_DEFUN (xdr_uint16_t, (xdrs, uint16_p),
- XDR * xdrs,
+xdr_uint16_t (XDR * xdrs,
uint16_t * uint16_p)
{
uint32_t ut;
@@ -415,8 +402,7 @@ _DEFUN (xdr_uint16_t, (xdrs, uint16_p),
* XDR 8-bit integers
*/
bool_t
-_DEFUN (xdr_int8_t, (xdrs, int8_p),
- XDR * xdrs,
+xdr_int8_t (XDR * xdrs,
int8_t * int8_p)
{
int32_t t;
@@ -443,8 +429,7 @@ _DEFUN (xdr_int8_t, (xdrs, int8_p),
* XDR unsigned 8-bit integers
*/
bool_t
-_DEFUN (xdr_u_int8_t, (xdrs, u_int8_p),
- XDR * xdrs,
+xdr_u_int8_t (XDR * xdrs,
u_int8_t * u_int8_p)
{
uint32_t ut;
@@ -471,8 +456,7 @@ _DEFUN (xdr_u_int8_t, (xdrs, u_int8_p),
* XDR unsigned 8-bit integers
*/
bool_t
-_DEFUN (xdr_uint8_t, (xdrs, uint8_p),
- XDR * xdrs,
+xdr_uint8_t (XDR * xdrs,
uint8_t * uint8_p)
{
uint32_t ut;
@@ -501,8 +485,7 @@ _DEFUN (xdr_uint8_t, (xdrs, uint8_p),
* XDR a char
*/
bool_t
-_DEFUN (xdr_char, (xdrs, cp),
- XDR * xdrs,
+xdr_char (XDR * xdrs,
char * cp)
{
int i;
@@ -518,8 +501,7 @@ _DEFUN (xdr_char, (xdrs, cp),
* XDR an unsigned char
*/
bool_t
-_DEFUN (xdr_u_char, (xdrs, ucp),
- XDR * xdrs,
+xdr_u_char (XDR * xdrs,
u_char * ucp)
{
u_int u;
@@ -535,8 +517,7 @@ _DEFUN (xdr_u_char, (xdrs, ucp),
* XDR booleans
*/
bool_t
-_DEFUN (xdr_bool, (xdrs, bp),
- XDR * xdrs,
+xdr_bool (XDR * xdrs,
bool_t * bp)
{
long lb;
@@ -563,8 +544,7 @@ _DEFUN (xdr_bool, (xdrs, bp),
* XDR enumerations
*/
bool_t
-_DEFUN (xdr_enum, (xdrs, ep),
- XDR * xdrs,
+xdr_enum (XDR * xdrs,
enum_t * ep)
{
enum sizecheck
@@ -607,8 +587,7 @@ _DEFUN (xdr_enum, (xdrs, ep),
* cp points to the opaque object and cnt gives the byte length.
*/
bool_t
-_DEFUN (xdr_opaque, (xdrs, cp, cnt),
- XDR * xdrs,
+xdr_opaque (XDR * xdrs,
caddr_t cp,
u_int cnt)
{
@@ -656,8 +635,7 @@ _DEFUN (xdr_opaque, (xdrs, cp, cnt),
* If *cpp is NULL maxsize bytes are allocated
*/
bool_t
-_DEFUN (xdr_bytes, (xdrs, cpp, sizep, maxsize),
- XDR * xdrs,
+xdr_bytes (XDR * xdrs,
char ** cpp,
u_int * sizep,
u_int maxsize)
@@ -711,8 +689,7 @@ _DEFUN (xdr_bytes, (xdrs, cpp, sizep, maxsize),
* Implemented here due to commonality of the object.
*/
bool_t
-_DEFUN (xdr_netobj, (xdrs, np),
- XDR * xdrs,
+xdr_netobj (XDR * xdrs,
struct netobj * np)
{
return (xdr_bytes (xdrs, &np->n_bytes, &np->n_len, MAX_NETOBJ_SZ));
@@ -734,8 +711,7 @@ _DEFUN (xdr_netobj, (xdrs, np),
* dfault: default xdr routine
*/
bool_t
-_DEFUN (xdr_union, (xdrs, dscmp, unp, choices, dfault),
- XDR * xdrs,
+xdr_union (XDR * xdrs,
enum_t * dscmp,
char * unp,
const struct xdr_discrim * choices,
@@ -783,8 +759,7 @@ _DEFUN (xdr_union, (xdrs, dscmp, unp, choices, dfault),
* of the string as specified by a protocol.
*/
bool_t
-_DEFUN (xdr_string, (xdrs, cpp, maxsize),
- XDR * xdrs,
+xdr_string (XDR * xdrs,
char ** cpp,
u_int maxsize)
{
@@ -861,8 +836,7 @@ _DEFUN (xdr_string, (xdrs, cpp, maxsize),
* routines like clnt_call
*/
bool_t
-_DEFUN (xdr_wrapstring, (xdrs, cpp),
- XDR * xdrs,
+xdr_wrapstring (XDR * xdrs,
char ** cpp)
{
return xdr_string (xdrs, cpp, LASTUNSIGNED);
@@ -882,8 +856,7 @@ _DEFUN (xdr_wrapstring, (xdrs, cpp),
* XDR 64-bit integers
*/
bool_t
-_DEFUN (xdr_int64_t, (xdrs, llp),
- XDR * xdrs,
+xdr_int64_t (XDR * xdrs,
int64_t * llp)
{
int32_t t1, t2;
@@ -913,8 +886,7 @@ _DEFUN (xdr_int64_t, (xdrs, llp),
* XDR unsigned 64-bit integers
*/
bool_t
-_DEFUN (xdr_u_int64_t, (xdrs, ullp),
- XDR * xdrs,
+xdr_u_int64_t (XDR * xdrs,
u_int64_t * ullp)
{
uint32_t t1, t2;
@@ -945,8 +917,7 @@ _DEFUN (xdr_u_int64_t, (xdrs, ullp),
* XDR unsigned 64-bit integers
*/
bool_t
-_DEFUN (xdr_uint64_t, (xdrs, ullp),
- XDR * xdrs,
+xdr_uint64_t (XDR * xdrs,
uint64_t * ullp)
{
uint32_t t1, t2;
@@ -978,8 +949,7 @@ _DEFUN (xdr_uint64_t, (xdrs, ullp),
* XDR hypers
*/
bool_t
-_DEFUN (xdr_hyper, (xdrs, llp),
- XDR * xdrs,
+xdr_hyper (XDR * xdrs,
quad_t * llp)
{
/*
@@ -994,8 +964,7 @@ _DEFUN (xdr_hyper, (xdrs, llp),
* XDR unsigned hypers
*/
bool_t
-_DEFUN (xdr_u_hyper, (xdrs, ullp),
- XDR * xdrs,
+xdr_u_hyper (XDR * xdrs,
u_quad_t * ullp)
{
/*
@@ -1010,8 +979,7 @@ _DEFUN (xdr_u_hyper, (xdrs, ullp),
* XDR longlong_t's
*/
bool_t
-_DEFUN (xdr_longlong_t, (xdrs, llp),
- XDR * xdrs,
+xdr_longlong_t (XDR * xdrs,
quad_t * llp)
{
/*
@@ -1026,8 +994,7 @@ _DEFUN (xdr_longlong_t, (xdrs, llp),
* XDR u_longlong_t's
*/
bool_t
-_DEFUN (xdr_u_longlong_t, (xdrs, ullp),
- XDR * xdrs,
+xdr_u_longlong_t (XDR * xdrs,
u_quad_t *ullp)
{
/*
@@ -54,8 +54,7 @@
* xdr procedure to call to handle each element of the array.
*/
bool_t
-_DEFUN (xdr_array, (xdrs, addrp, sizep, maxsize, elsize, elproc),
- XDR * xdrs,
+xdr_array (XDR * xdrs,
caddr_t * addrp,
u_int * sizep,
u_int maxsize,
@@ -138,8 +137,7 @@ _DEFUN (xdr_array, (xdrs, addrp, sizep, maxsize, elsize, elproc),
* > xdr_elem: routine to XDR each element
*/
bool_t
-_DEFUN (xdr_vector, (xdrs, basep, nelem, elemsize, xdr_elem),
- XDR * xdrs,
+xdr_vector (XDR * xdrs,
char *basep,
u_int nelem,
u_int elemsize,
@@ -59,8 +59,7 @@
#if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BIG_ENDIAN)
bool_t
-_DEFUN (xdr_float, (xdrs, fp),
- XDR * xdrs,
+xdr_float (XDR * xdrs,
float *fp)
{
switch (xdrs->x_op)
@@ -80,8 +79,7 @@ _DEFUN (xdr_float, (xdrs, fp),
#if !defined(_DOUBLE_IS_32BITS)
bool_t
-_DEFUN (xdr_double, (xdrs, dp),
- XDR * xdrs,
+xdr_double (XDR * xdrs,
double *dp)
{
int32_t *i32p;
@@ -81,8 +81,7 @@ static struct sgl_limits
*/
bool_t
-_DEFUN (xdr_float, (xdrs, fp),
- XDR * xdrs,
+xdr_float (XDR * xdrs,
float *fp)
{
struct ieee_single is;
@@ -184,8 +183,7 @@ static struct dbl_limits
*/
bool_t
-_DEFUN (xdr_double, (xdrs, dp),
- XDR * xdrs,
+xdr_double (XDR * xdrs,
double *dp)
{
int32_t *lp;
@@ -101,8 +101,7 @@ static const struct xdr_ops xdrmem_ops_unaligned = {
* memory buffer.
*/
void
-_DEFUN (xdrmem_create, (xdrs, addr, size, op),
- XDR * xdrs,
+xdrmem_create (XDR * xdrs,
caddr_t addr,
u_int size,
enum xdr_op op)
@@ -116,14 +115,12 @@ _DEFUN (xdrmem_create, (xdrs, addr, size, op),
}
static void
-_DEFUN (xdrmem_destroy, (xdrs),
- XDR * xdrs)
+xdrmem_destroy (XDR * xdrs)
{
}
static bool_t
-_DEFUN (xdrmem_getlong_aligned, (xdrs, lp),
- XDR * xdrs,
+xdrmem_getlong_aligned (XDR * xdrs,
long *lp)
{
if (xdrs->x_handy < sizeof (int32_t))
@@ -135,8 +132,7 @@ _DEFUN (xdrmem_getlong_aligned, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrmem_putlong_aligned, (xdrs, lp),
- XDR * xdrs,
+xdrmem_putlong_aligned (XDR * xdrs,
const long *lp)
{
if (xdrs->x_handy < sizeof (int32_t))
@@ -148,8 +144,7 @@ _DEFUN (xdrmem_putlong_aligned, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrmem_getlong_unaligned, (xdrs, lp),
- XDR * xdrs,
+xdrmem_getlong_unaligned (XDR * xdrs,
long *lp)
{
u_int32_t l;
@@ -164,8 +159,7 @@ _DEFUN (xdrmem_getlong_unaligned, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrmem_putlong_unaligned, (xdrs, lp),
- XDR * xdrs,
+xdrmem_putlong_unaligned (XDR * xdrs,
const long *lp)
{
u_int32_t l;
@@ -180,8 +174,7 @@ _DEFUN (xdrmem_putlong_unaligned, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrmem_getbytes, (xdrs, addr, len),
- XDR * xdrs,
+xdrmem_getbytes (XDR * xdrs,
char *addr,
u_int len)
{
@@ -194,8 +187,7 @@ _DEFUN (xdrmem_getbytes, (xdrs, addr, len),
}
static bool_t
-_DEFUN (xdrmem_putbytes, (xdrs, addr, len),
- XDR * xdrs,
+xdrmem_putbytes (XDR * xdrs,
const char *addr,
u_int len)
{
@@ -208,16 +200,14 @@ _DEFUN (xdrmem_putbytes, (xdrs, addr, len),
}
static u_int
-_DEFUN (xdrmem_getpos, (xdrs),
- XDR * xdrs)
+xdrmem_getpos (XDR * xdrs)
{
/* XXX w/64-bit pointers, u_int not enough! */
return (u_int) ((u_long) xdrs->x_private - (u_long) xdrs->x_base);
}
static bool_t
-_DEFUN (xdrmem_setpos, (xdrs, pos),
- XDR * xdrs,
+xdrmem_setpos (XDR * xdrs,
u_int pos)
{
caddr_t newaddr = xdrs->x_base + pos;
@@ -236,8 +226,7 @@ _DEFUN (xdrmem_setpos, (xdrs, pos),
}
static int32_t *
-_DEFUN (xdrmem_inline_aligned, (xdrs, len),
- XDR * xdrs,
+xdrmem_inline_aligned (XDR * xdrs,
u_int len)
{
int32_t *buf = 0;
@@ -252,16 +241,14 @@ _DEFUN (xdrmem_inline_aligned, (xdrs, len),
}
static int32_t *
-_DEFUN (xdrmem_inline_unaligned, (xdrs, len),
- XDR * xdrs,
+xdrmem_inline_unaligned (XDR * xdrs,
u_int len)
{
return (0);
}
static bool_t
-_DEFUN (xdrmem_getint32_aligned, (xdrs, ip),
- XDR *xdrs,
+xdrmem_getint32_aligned (XDR *xdrs,
int32_t *ip)
{
if (xdrs->x_handy < sizeof(int32_t))
@@ -273,8 +260,7 @@ _DEFUN (xdrmem_getint32_aligned, (xdrs, ip),
}
static bool_t
-_DEFUN (xdrmem_putint32_aligned, (xdrs, ip),
- XDR *xdrs,
+xdrmem_putint32_aligned (XDR *xdrs,
const int32_t *ip)
{
if (xdrs->x_handy < sizeof(int32_t))
@@ -286,8 +272,7 @@ _DEFUN (xdrmem_putint32_aligned, (xdrs, ip),
}
static bool_t
-_DEFUN (xdrmem_getint32_unaligned, (xdrs, ip),
- XDR *xdrs,
+xdrmem_getint32_unaligned (XDR *xdrs,
int32_t *ip)
{
u_int32_t l;
@@ -302,8 +287,7 @@ _DEFUN (xdrmem_getint32_unaligned, (xdrs, ip),
}
static bool_t
-_DEFUN (xdrmem_putint32_unaligned, (xdrs, ip),
- XDR *xdrs,
+xdrmem_putint32_unaligned (XDR *xdrs,
const int32_t *ip)
{
u_int32_t l;
@@ -26,8 +26,7 @@
static xdr_vprintf_t xdr_vprintf = NULL;
xdr_vprintf_t
-_DEFUN (xdr_set_vprintf, (fnptr),
- xdr_vprintf_t fnptr)
+xdr_set_vprintf (xdr_vprintf_t fnptr)
{
xdr_vprintf_t tmp = xdr_vprintf;
xdr_vprintf = fnptr;
@@ -35,8 +34,7 @@ _DEFUN (xdr_set_vprintf, (fnptr),
}
void
-_DEFUN (xdr_vwarnx, (format, ap),
- const char *format,
+xdr_vwarnx (const char *format,
va_list ap)
{
if (xdr_vprintf)
@@ -48,8 +46,7 @@ _DEFUN (xdr_vwarnx, (format, ap),
}
void
-_DEFUN (xdr_warnx, (fmt),
- const char *fmt, ...)
+xdr_warnx (const char *fmt, ...)
{
va_list ap;
va_start (ap, fmt);
@@ -169,8 +169,7 @@ bool_t _EXFUN (__xdrrec_setnonblock, (XDR *, int));
* calls except that they take an opaque handle rather than an fd.
*/
void
-_DEFUN (xdrrec_create, (xdrs, sendsize, recvsize, tcp_handle, readit, writeit),
- XDR * xdrs,
+xdrrec_create (XDR * xdrs,
u_int sendsize,
u_int recvsize,
void *tcp_handle,
@@ -261,8 +260,7 @@ _DEFUN (xdrrec_create, (xdrs, sendsize, recvsize, tcp_handle, readit, writeit),
*/
static bool_t
-_DEFUN (xdrrec_getlong, (xdrs, lp),
- XDR * xdrs,
+xdrrec_getlong (XDR * xdrs,
long *lp)
{
RECSTREAM *rstrm = (RECSTREAM *) (xdrs->x_private);
@@ -288,8 +286,7 @@ _DEFUN (xdrrec_getlong, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrrec_putlong, (xdrs, lp),
- XDR * xdrs,
+xdrrec_putlong (XDR * xdrs,
const long *lp)
{
RECSTREAM *rstrm = (RECSTREAM *) (xdrs->x_private);
@@ -313,8 +310,7 @@ _DEFUN (xdrrec_putlong, (xdrs, lp),
}
static bool_t /* must manage buffers, fragments, and records */
-_DEFUN (xdrrec_getbytes, (xdrs, addr, len),
- XDR * xdrs,
+xdrrec_getbytes (XDR * xdrs,
char *addr,
u_int len)
{
@@ -343,8 +339,7 @@ _DEFUN (xdrrec_getbytes, (xdrs, addr, len),
}
static bool_t
-_DEFUN (xdrrec_putbytes, (xdrs, addr, len),
- XDR * xdrs,
+xdrrec_putbytes (XDR * xdrs,
const char *addr,
u_int len)
{
@@ -371,8 +366,7 @@ _DEFUN (xdrrec_putbytes, (xdrs, addr, len),
}
static u_int
-_DEFUN (xdrrec_getpos, (xdrs),
- XDR * xdrs)
+xdrrec_getpos (XDR * xdrs)
{
RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private;
off_t pos;
@@ -398,8 +392,7 @@ _DEFUN (xdrrec_getpos, (xdrs),
}
static bool_t
-_DEFUN (xdrrec_setpos, (xdrs, pos),
- XDR * xdrs,
+xdrrec_setpos (XDR * xdrs,
u_int pos)
{
RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private;
@@ -439,8 +432,7 @@ _DEFUN (xdrrec_setpos, (xdrs, pos),
}
static int32_t *
-_DEFUN (xdrrec_inline, (xdrs, len),
- XDR * xdrs,
+xdrrec_inline (XDR * xdrs,
u_int len)
{
RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private;
@@ -482,8 +474,7 @@ _DEFUN (xdrrec_inline, (xdrs, len),
}
static void
-_DEFUN (xdrrec_destroy, (xdrs),
- XDR * xdrs)
+xdrrec_destroy (XDR * xdrs)
{
RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private;
@@ -493,8 +484,7 @@ _DEFUN (xdrrec_destroy, (xdrs),
}
static bool_t
-_DEFUN (xdrrec_getint32, (xdrs, ip),
- XDR *xdrs,
+xdrrec_getint32 (XDR *xdrs,
int32_t *ip)
{
RECSTREAM *rstrm = (RECSTREAM *) (xdrs->x_private);
@@ -520,8 +510,7 @@ _DEFUN (xdrrec_getint32, (xdrs, ip),
}
static bool_t
-_DEFUN (xdrrec_putint32, (xdrs, ip),
- XDR *xdrs,
+xdrrec_putint32 (XDR *xdrs,
const int32_t *ip)
{
RECSTREAM *rstrm = (RECSTREAM *) (xdrs->x_private);
@@ -553,8 +542,7 @@ _DEFUN (xdrrec_putint32, (xdrs, ip),
* this procedure to guarantee proper record alignment.
*/
bool_t
-_DEFUN (xdrrec_skiprecord, (xdrs),
- XDR * xdrs)
+xdrrec_skiprecord (XDR * xdrs)
{
RECSTREAM *rstrm = (RECSTREAM *) (xdrs->x_private);
enum xprt_stat xstat;
@@ -592,8 +580,7 @@ _DEFUN (xdrrec_skiprecord, (xdrs),
* after consuming the rest of the current record.
*/
bool_t
-_DEFUN (xdrrec_eof, (xdrs),
- XDR * xdrs)
+xdrrec_eof (XDR * xdrs)
{
RECSTREAM *rstrm = (RECSTREAM *) (xdrs->x_private);
@@ -617,8 +604,7 @@ _DEFUN (xdrrec_eof, (xdrs),
* pipelined procedure calls.) TRUE => immmediate flush to tcp connection.
*/
bool_t
-_DEFUN (xdrrec_endofrecord, (xdrs, sendnow),
- XDR * xdrs,
+xdrrec_endofrecord (XDR * xdrs,
bool_t sendnow)
{
RECSTREAM *rstrm = (RECSTREAM *) (xdrs->x_private);
@@ -644,8 +630,7 @@ _DEFUN (xdrrec_endofrecord, (xdrs, sendnow),
* Return true if a record is available in the buffer, false if not.
*/
bool_t
-_DEFUN (__xdrrec_getrec, (xdrs, statp, expectdata),
- XDR * xdrs,
+__xdrrec_getrec (XDR * xdrs,
enum xprt_stat * statp,
bool_t expectdata)
{
@@ -737,8 +722,7 @@ _DEFUN (__xdrrec_getrec, (xdrs, statp, expectdata),
}
bool_t
-_DEFUN (__xdrrec_setnonblock, (xdrs, maxrec),
- XDR * xdrs,
+__xdrrec_setnonblock (XDR * xdrs,
int maxrec)
{
RECSTREAM *rstrm = (RECSTREAM *) (xdrs->x_private);
@@ -754,8 +738,7 @@ _DEFUN (__xdrrec_setnonblock, (xdrs, maxrec),
* Internal useful routines
*/
static bool_t
-_DEFUN (flush_out, (rstrm, eor),
- RECSTREAM * rstrm,
+flush_out (RECSTREAM * rstrm,
bool_t eor)
{
u_int32_t eormask = (eor == TRUE) ? LAST_FRAG : 0;
@@ -775,8 +758,7 @@ _DEFUN (flush_out, (rstrm, eor),
}
static bool_t /* knows nothing about records! Only about input buffers */
-_DEFUN (fill_input_buf, (rstrm),
- RECSTREAM * rstrm)
+fill_input_buf (RECSTREAM * rstrm)
{
char *where;
u_int32_t i;
@@ -798,8 +780,7 @@ _DEFUN (fill_input_buf, (rstrm),
}
static bool_t /* knows nothing about records! Only about input buffers */
-_DEFUN (get_input_bytes, (rstrm, addr, len),
- RECSTREAM * rstrm,
+get_input_bytes (RECSTREAM * rstrm,
char *addr,
size_t len)
{
@@ -834,8 +815,7 @@ _DEFUN (get_input_bytes, (rstrm, addr, len),
}
static bool_t /* next two bytes of the input stream are treated as a header */
-_DEFUN (set_input_fragment, (rstrm),
- RECSTREAM * rstrm)
+set_input_fragment (RECSTREAM * rstrm)
{
u_int32_t header;
@@ -860,8 +840,7 @@ _DEFUN (set_input_fragment, (rstrm),
}
static bool_t /* consumes input bytes; knows nothing about records! */
-_DEFUN (skip_input_bytes, (rstrm, cnt),
- RECSTREAM * rstrm,
+skip_input_bytes (RECSTREAM * rstrm,
long cnt)
{
size_t current;
@@ -884,8 +863,7 @@ _DEFUN (skip_input_bytes, (rstrm, cnt),
}
static u_int
-_DEFUN (fix_buf_size, (s),
- u_int s)
+fix_buf_size (u_int s)
{
if (s < 100)
@@ -897,8 +875,7 @@ _DEFUN (fix_buf_size, (s),
* Reallocate the input buffer for a non-block stream.
*/
static bool_t
-_DEFUN (realloc_stream, (rstrm, size),
- RECSTREAM * rstrm,
+realloc_stream (RECSTREAM * rstrm,
int size)
{
ptrdiff_t diff;
@@ -56,8 +56,7 @@
* proc is the routine to handle the referenced structure.
*/
bool_t
-_DEFUN (xdr_reference, (xdrs, pp, size, proc),
- XDR * xdrs,
+xdr_reference (XDR * xdrs,
caddr_t * pp,
u_int size,
xdrproc_t proc)
@@ -117,8 +116,7 @@ _DEFUN (xdr_reference, (xdrs, pp, size, proc),
*
*/
bool_t
-_DEFUN (xdr_pointer, (xdrs, objpp, obj_size, xdr_obj),
- XDR * xdrs,
+xdr_pointer (XDR * xdrs,
char **objpp,
u_int obj_size,
xdrproc_t xdr_obj)
@@ -43,8 +43,7 @@
/* ARGSUSED */
static bool_t
-_DEFUN (x_putlong, (xdrs, longp),
- XDR * xdrs,
+x_putlong (XDR * xdrs,
const long *longp)
{
xdrs->x_handy += BYTES_PER_XDR_UNIT;
@@ -53,8 +52,7 @@ _DEFUN (x_putlong, (xdrs, longp),
/* ARGSUSED */
static bool_t
-_DEFUN (x_putbytes, (xdrs, bp, len),
- XDR * xdrs,
+x_putbytes (XDR * xdrs,
const char *bp,
u_int len)
{
@@ -63,16 +61,14 @@ _DEFUN (x_putbytes, (xdrs, bp, len),
}
static u_int
-_DEFUN (x_getpostn, (xdrs),
- XDR * xdrs)
+x_getpostn (XDR * xdrs)
{
return xdrs->x_handy;
}
/* ARGSUSED */
static bool_t
-_DEFUN (x_setpostn, (xdrs, pos),
- XDR * xdrs,
+x_setpostn (XDR * xdrs,
u_int pos)
{
/* This is not allowed */
@@ -80,8 +76,7 @@ _DEFUN (x_setpostn, (xdrs, pos),
}
static int32_t *
-_DEFUN (x_inline, (xdrs, len),
- XDR * xdrs,
+x_inline (XDR * xdrs,
u_int len)
{
if (len == 0)
@@ -118,8 +113,7 @@ harmless (void)
}
static void
-_DEFUN (x_destroy, (xdrs),
- XDR * xdrs)
+x_destroy (XDR * xdrs)
{
xdrs->x_handy = 0;
xdrs->x_base = 0;
@@ -132,8 +126,7 @@ _DEFUN (x_destroy, (xdrs),
}
static bool_t
-_DEFUN (x_putint32, (xdrs, int32p),
- XDR *xdrs,
+x_putint32 (XDR *xdrs,
const int32_t *int32p)
{
xdrs->x_handy += BYTES_PER_XDR_UNIT;
@@ -142,8 +135,7 @@ _DEFUN (x_putint32, (xdrs, int32p),
unsigned long
-_DEFUN (xdr_sizeof, (func, data),
- xdrproc_t func,
+xdr_sizeof (xdrproc_t func,
void *data)
{
XDR x;
@@ -83,8 +83,7 @@ static const struct xdr_ops xdrstdio_ops = {
* Operation flag is set to op.
*/
void
-_DEFUN (xdrstdio_create, (xdrs, file, op),
- XDR * xdrs,
+xdrstdio_create (XDR * xdrs,
FILE * file,
enum xdr_op op)
{
@@ -100,16 +99,14 @@ _DEFUN (xdrstdio_create, (xdrs, file, op),
* Cleans up the xdr stream handle xdrs previously set up by xdrstdio_create.
*/
static void
-_DEFUN (xdrstdio_destroy, (xdrs),
- XDR * xdrs)
+xdrstdio_destroy (XDR * xdrs)
{
(void) fflush ((FILE *) xdrs->x_private);
/* XXX: should we close the file ?? */
}
static bool_t
-_DEFUN (xdrstdio_getlong, (xdrs, lp),
- XDR * xdrs,
+xdrstdio_getlong (XDR * xdrs,
long *lp)
{
u_int32_t temp;
@@ -121,8 +118,7 @@ _DEFUN (xdrstdio_getlong, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrstdio_putlong, (xdrs, lp),
- XDR * xdrs,
+xdrstdio_putlong (XDR * xdrs,
const long *lp)
{
u_int32_t temp = htonl ((u_int32_t) * lp);
@@ -133,8 +129,7 @@ _DEFUN (xdrstdio_putlong, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrstdio_getbytes, (xdrs, addr, len),
- XDR * xdrs,
+xdrstdio_getbytes (XDR * xdrs,
char *addr,
u_int len)
{
@@ -145,8 +140,7 @@ _DEFUN (xdrstdio_getbytes, (xdrs, addr, len),
}
static bool_t
-_DEFUN (xdrstdio_putbytes, (xdrs, addr, len),
- XDR * xdrs,
+xdrstdio_putbytes (XDR * xdrs,
const char *addr,
u_int len)
{
@@ -157,15 +151,13 @@ _DEFUN (xdrstdio_putbytes, (xdrs, addr, len),
}
static u_int
-_DEFUN (xdrstdio_getpos, (xdrs),
- XDR * xdrs)
+xdrstdio_getpos (XDR * xdrs)
{
return ((u_int) ftell ((FILE *) xdrs->x_private));
}
static bool_t
-_DEFUN (xdrstdio_setpos, (xdrs, pos),
- XDR * xdrs,
+xdrstdio_setpos (XDR * xdrs,
u_int pos)
{
return ((fseek ((FILE *) xdrs->x_private, (long) pos, 0) < 0) ?
@@ -174,8 +166,7 @@ _DEFUN (xdrstdio_setpos, (xdrs, pos),
/* ARGSUSED */
static int32_t *
-_DEFUN (xdrstdio_inline, (xdrs, len),
- XDR * xdrs,
+xdrstdio_inline (XDR * xdrs,
u_int len)
{
/*
@@ -191,8 +182,7 @@ _DEFUN (xdrstdio_inline, (xdrs, len),
}
static bool_t
-_DEFUN (xdrstdio_getint32, (xdrs, ip),
- XDR *xdrs,
+xdrstdio_getint32 (XDR *xdrs,
int32_t *ip)
{
int32_t temp;
@@ -204,8 +194,7 @@ _DEFUN (xdrstdio_getint32, (xdrs, ip),
}
static bool_t
-_DEFUN (xdrstdio_putint32, (xdrs, ip),
- XDR *xdrs,
+xdrstdio_putint32 (XDR *xdrs,
const int32_t *ip)
{
int32_t temp = htonl (*ip);
@@ -16,8 +16,7 @@
#undef isinf
int
-_DEFUN (isinf, (x),
- double x)
+isinf (double x)
{
__int32_t hx,lx;
EXTRACT_WORDS(hx,lx,x);
@@ -9,8 +9,7 @@
#ifndef _DOUBLE_IS_32BITS
int
-_DEFUN (__isinfd, (x),
- double x)
+__isinfd (double x)
{
__int32_t hx,lx;
EXTRACT_WORDS(hx,lx,x);
@@ -93,8 +93,7 @@ QUICKREF
#ifndef _DOUBLE_IS_32BITS
int
-_DEFUN (__isnand, (x),
- double x)
+__isnand (double x)
{
__int32_t hx,lx;
EXTRACT_WORDS(hx,lx,x);
@@ -13,8 +13,7 @@
#undef isinff
int
-_DEFUN (isinff, (x),
- float x)
+isinff (float x)
{
__int32_t ix;
GET_FLOAT_WORD(ix,x);
@@ -27,8 +26,7 @@ _DEFUN (isinff, (x),
#undef isinf
int
-_DEFUN (isinf, (x),
- double x)
+isinf (double x)
{
return isinff((float) x);
}
@@ -6,8 +6,7 @@
#include "fdlibm.h"
int
-_DEFUN (__isinff, (x),
- float x)
+__isinff (float x)
{
__int32_t ix;
GET_FLOAT_WORD(ix,x);
@@ -18,8 +17,7 @@ _DEFUN (__isinff, (x),
#ifdef _DOUBLE_IS_32BITS
int
-_DEFUN (__isinfd, (x),
- double x)
+__isinfd (double x)
{
return __isinff((float) x);
}
@@ -24,8 +24,7 @@
#undef isnanf
int
-_DEFUN (isnanf, (x),
- float x)
+isnanf (float x)
{
__int32_t ix;
GET_FLOAT_WORD(ix,x);
@@ -38,8 +37,7 @@ _DEFUN (isnanf, (x),
#undef isnan
int
-_DEFUN (isnan, (x),
- double x)
+isnan (double x)
{
return isnanf((float) x);
}
@@ -16,8 +16,7 @@
#include "fdlibm.h"
int
-_DEFUN (__isnanf, (x),
- float x)
+__isnanf (float x)
{
__int32_t ix;
GET_FLOAT_WORD(ix,x);
@@ -28,8 +27,7 @@ _DEFUN (__isnanf, (x),
#ifdef _DOUBLE_IS_32BITS
int
-_DEFUN (__isnand, (x),
- double x)
+__isnand (double x)
{
return __isnanf((float) x);
}
@@ -7,8 +7,7 @@
__inline__
static
int
-_DEFUN (check_finite, (x),
- double x)
+check_finite (double x)
{
__int32_t hx;
GET_HIGH_WORD(hx,x);
@@ -18,8 +17,7 @@ _DEFUN (check_finite, (x),
__inline__
static
int
-_DEFUN (check_finitef, (x),
- float x)
+check_finitef (float x)
{
__int32_t ix;
GET_FLOAT_WORD(ix,x);
@@ -75,8 +75,7 @@ MATHREF
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (acos, (double),
- double x)
+acos (double x)
{
return (asine (x, 1));
}
@@ -20,8 +20,7 @@
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (asin, (double),
- double x)
+asin (double x)
{
return (asine (x, 0));
}
@@ -89,8 +89,7 @@ static const double a[] = { 0.0, 0.78539816339744830962 };
static const double b[] = { 1.57079632679489661923, 0.78539816339744830962 };
double
-_DEFUN (asine, (double, int),
- double x,
+asine (double x,
int acosine)
{
int flag, i;
@@ -54,8 +54,7 @@ PORTABILITY
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (atan, (double),
- double x)
+atan (double x)
{
switch (numtest (x))
{
@@ -69,8 +69,7 @@ PORTABILITY
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (atan2, (double, double),
- double v,
+atan2 (double v,
double u)
{
return (atangent (0.0, v, u, 1));
@@ -85,8 +85,7 @@ static const double p[] = { -0.13688768894191926929e+2,
-0.83758299368150059274 };
double
-_DEFUN (atangent, (double, double, double, int),
- double x,
+atangent (double x,
double v,
double u,
int arctan2)
@@ -20,8 +20,7 @@
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (ceil, (double),
- double x)
+ceil (double x)
{
double f, y;
@@ -20,8 +20,7 @@
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (cos, (double),
- double x)
+cos (double x)
{
return (sine (x, 1));
}
@@ -63,8 +63,7 @@ QUICKREF
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (cosh, (double),
- double x)
+cosh (double x)
{
return (sineh (x, 1));
}
@@ -70,8 +70,7 @@ static const double q[] = { 0.5, 0.56817302698551221787e-1,
0.75104028399870046114e-6 };
double
-_DEFUN (exp, (double),
- double x)
+exp (double x)
{
int N;
double g, z, R, P, Q;
@@ -9,8 +9,7 @@
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (exp2, (double),
- double x)
+exp2 (double x)
{
return pow(2.0, x);
}
@@ -51,8 +51,7 @@ PORTABILITY
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (fabs, (double),
- double x)
+fabs (double x)
{
switch (numtest (x))
{
@@ -62,8 +62,7 @@ PORTABILITY
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (floor, (double),
- double x)
+floor (double x)
{
double f, y;
@@ -63,8 +63,7 @@ PORTABILITY
#define DOUBLE_EXP_OFFS 1023
double
-_DEFUN (ldexp, (double, int),
- double d,
+ldexp (double d,
int e)
{
int exp;
@@ -20,8 +20,7 @@
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (log, (double),
- double x)
+log (double x)
{
return (logarithm (x, 0));
}
@@ -51,8 +51,7 @@ PORTABILITY
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (log10, (double),
- double x)
+log10 (double x)
{
return (logarithm (x, 1));
}
@@ -79,8 +79,7 @@ static const double C2 = 1.428606820309417232e-06;
static const double C3 = 0.43429448190325182765;
double
-_DEFUN (logarithm, (double, int),
- double x,
+logarithm (double x,
int ten)
{
int N;
@@ -25,8 +25,7 @@
#ifndef _DOUBLE_IS_32BITS
int
-_DEFUN (numtest, (double),
- double x)
+numtest (double x)
{
__uint32_t hx, lx;
int exp;
@@ -20,8 +20,7 @@
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (sin, (double),
- double x)
+sin (double x)
{
return (sine (x, 0));
}
@@ -20,8 +20,7 @@
#ifndef _DOUBLE_IS_32BITS
void
-_DEFUN (sincos, (x, sinx, cosx),
- double x,
+sincos (double x,
double *sinx,
double *cosx)
{
@@ -72,8 +72,7 @@ static const double r[] = { -0.16666666666666665052,
0.27204790957888846175e-14 };
double
-_DEFUN (sine, (double, int),
- double x,
+sine (double x,
int cosine)
{
int sgn, N;
@@ -94,8 +94,7 @@ static const double INV_V2 = 0.24999308500451499336;
static const double V_OVER2_MINUS1 = 0.13830277879601902638e-4;
double
-_DEFUN (sineh, (double, int),
- double x,
+sineh (double x,
int cosineh)
{
double y, f, P, Q, R, res, z, w;
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (sinf, (float),
- float x)
+sinf (float x)
{
return (sinef (x, 0));
}
@@ -20,8 +20,7 @@
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (sinh, (double),
- double x)
+sinh (double x)
{
return (sineh (x, 0));
}
@@ -62,8 +62,7 @@ PORTABILITY
#ifndef _DOUBLE_IS_32BITS
double
-_DEFUN (sqrt, (double),
- double x)
+sqrt (double x)
{
double f, y;
int exp, i, odd;
@@ -63,8 +63,7 @@ static const double q[] = { -0.46671683339755294240,
0.49819433993786512270e-6 };
double
-_DEFUN (tan, (double),
- double x)
+tan (double x)
{
double y, f, g, XN, xnum, xden, res;
int N;
@@ -69,8 +69,7 @@ static const double q[] = { 0.48402357071988688686e+4,
0.11274474380534949335e+3 };
double
-_DEFUN (tanh, (double),
- double x)
+tanh (double x)
{
double f, res, g, P, Q, R;
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (acosf, (float),
- float x)
+acosf (float x)
{
return (asinef (x, 1));
}
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (asinf, (float),
- float x)
+asinf (float x)
{
return (asinef (x, 0));
}
@@ -30,8 +30,7 @@ static const float a[] = { 0.0, 0.785398163 };
static const float b[] = { 1.570796326, 0.785398163 };
float
-_DEFUN (asinef, (float, int),
- float x,
+asinef (float x,
int acosine)
{
int flag, i;
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (atanf, (float),
- float x)
+atanf (float x)
{
switch (numtestf (x))
{
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (atan2f, (float, float),
- float v,
+atan2f (float v,
float u)
{
return (atangentf (0.0, v, u, 1));
@@ -31,8 +31,7 @@ static const float q[] = { 0.1412500740e+1 };
static const float p[] = { -0.4708325141, -0.5090958253e-1 };
float
-_DEFUN (atangentf, (float, float, float, int),
- float x,
+atangentf (float x,
float v,
float u,
int arctan2)
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (ceilf, (float),
- float x)
+ceilf (float x)
{
float f, y;
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (cosf, (float),
- float x)
+cosf (float x)
{
return (sinef (x, 1));
}
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (coshf, (float),
- float x)
+coshf (float x)
{
return (sinehf (x, 1));
}
@@ -30,8 +30,7 @@ static const float p[] = { 0.249999999950, 0.00416028863 };
static const float q[] = { 0.5, 0.04998717878 };
float
-_DEFUN (expf, (float),
- float x)
+expf (float x)
{
int N;
float g, z, R, P, Q;
@@ -7,8 +7,7 @@
#include "fdlibm.h"
float
-_DEFUN (exp2f, (float),
- float x)
+exp2f (float x)
{
return powf(2.0, x);
}
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (fabsf, (float),
- float x)
+fabsf (float x)
{
switch (numtestf (x))
{
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (floorf, (float),
- float x)
+floorf (float x)
{
float f, y;
@@ -25,8 +25,7 @@
static const float one = 1.0, Zero[] = {0.0, -0.0,};
float
-_DEFUN (fmodf, (float, float),
- float x,
+fmodf (float x,
float y)
{
__int32_t n,hx,hy,hz,ix,iy,sx,i;
@@ -23,8 +23,7 @@
#define FLOAT_EXP_OFFS 127
float
-_DEFUN (ldexpf, (float, int),
- float d,
+ldexpf (float d,
int e)
{
int exp;
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (logf, (float),
- float x)
+logf (float x)
{
return (logarithmf (x, 0));
}
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (log10f, (float),
- float x)
+log10f (float x)
{
return (logarithmf (x, 1));
}
@@ -31,8 +31,7 @@ static const float C2 = 1.428606820e-06;
static const float C3 = 0.4342944819;
float
-_DEFUN (logarithmf, (float, int),
- float x,
+logarithmf (float x,
int ten)
{
int N;
@@ -23,8 +23,7 @@
#include "zmath.h"
int
-_DEFUN (numtestf, (float),
- float x)
+numtestf (float x)
{
__int32_t wx;
int exp;
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (sinf, (float),
- float x)
+sinf (float x)
{
return (sinef (x, 0));
}
@@ -18,8 +18,7 @@
#include "zmath.h"
void
-_DEFUN (sincosf, (x, sinx, cosx),
- float x,
+sincosf (float x,
float *sinx,
float *cosx)
{
@@ -32,8 +32,7 @@ static const float r[] = { -0.1666665668,
0.2601903036e-5 };
float
-_DEFUN (sinef, (float, int),
- float x,
+sinef (float x,
int cosine)
{
int sgn, N;
@@ -32,8 +32,7 @@ static const float INV_V2 = 0.2499930850;
static const float V_OVER2_MINUS1 = 0.1383027787e-4;
float
-_DEFUN (sinehf, (float, int),
- float x,
+sinehf (float x,
int cosineh)
{
float y, f, P, Q, R, res, z, w;
@@ -18,8 +18,7 @@
#include "zmath.h"
float
-_DEFUN (sinhf, (float),
- float x)
+sinhf (float x)
{
return (sinehf (x, 0));
}
@@ -32,8 +32,7 @@
#include "zmath.h"
float
-_DEFUN (sqrtf, (float),
- float x)
+sqrtf (float x)
{
float f, y;
int exp, i, odd;
@@ -29,8 +29,7 @@ static const float q[] = { -0.429135777,
0.971685835e-2 };
float
-_DEFUN (tanf, (float),
- float x)
+tanf (float x)
{
float y, f, g, XN, xnum, xden, res;
int N;
@@ -31,8 +31,7 @@ static const float q[] = { 0.6178299136,
0.25 };
float
-_DEFUN (tanhf, (float),
- float x)
+tanhf (float x)
{
float f, res, g, P, Q, R;
@@ -49,8 +49,7 @@ test_atoff (void)
static
void
-_DEFUN(iterate,(func, name),
- void _EXFUN((*func),(void)),
+iterate (void _EXFUN((*func),(void)),
char *name)
{
@@ -70,8 +69,7 @@ int_type *p = ints;
static void
-_DEFUN(int_iterate,(func, name),
- void (*func)(),
+int_iterate (void (*func)(),
char *name)
{
newfunc(name);
@@ -86,8 +84,7 @@ _DEFUN(int_iterate,(func, name),
}
void
-_DEFUN(test_strtol_base,(base, pi, string),
- int base,
+test_strtol_base (int base,
int_scan_type *pi,
char *string)
{
@@ -206,8 +203,7 @@ test_fcvt (void)
static void
-_DEFUN(diterate,(func, name),
- void (*func)(),
+diterate (void (*func)(),
char *name)
{
newfunc(name);
@@ -28,8 +28,7 @@ static struct p {
#define _MAX_PREC 16
static char
-_DEFUN(nextdigit,(value),
-double *value)
+nextdigit (double *value)
{
double tmp;
@@ -39,8 +38,7 @@ double *value)
static char *
-_DEFUN(print_nan,(buffer, value, precision),
- char *buffer,
+print_nan (char *buffer,
double value,
int precision)
{
@@ -100,8 +98,7 @@ typedef struct
void
-_DEFUN(renormalize,(in),
- cvt_info_type *in)
+renormalize (cvt_info_type *in)
{
/* Make sure all numbers are less than 1 */
@@ -133,8 +130,7 @@ _DEFUN(renormalize,(in),
*/
static void
-_DEFUN(normalize,(value, in),
- double value,
+normalize (double value,
cvt_info_type *in)
{
int j;
@@ -195,8 +191,7 @@ _DEFUN(normalize,(value, in),
}
int
-_DEFUN(round,(in, start, now, ch),
- cvt_info_type *in,
+round (cvt_info_type *in,
char *start,
char *now,
char ch)
@@ -272,8 +267,7 @@ _DEFUN(round,(in, start, now, ch),
void
-_DEFUN(_cvte,(in),
- register cvt_info_type *in)
+_cvte (register cvt_info_type *in)
{
int buffer_idx =0;
int digit = 0;
@@ -341,8 +335,7 @@ _DEFUN(_cvte,(in),
/* Produce NNNN.FFFF */
void
-_DEFUN(_cvtf,(in),
- cvt_info_type *in)
+_cvtf (cvt_info_type *in)
{
int buffer_idx = 0; /* Current char being output */
@@ -434,8 +427,7 @@ _DEFUN(_cvtf,(in),
char *
-_DEFUN(_dcvt,(buffer, invalue, precision, width, type, dot),
- char *buffer,
+_dcvt (char *buffer,
double invalue,
int precision,
int width,
@@ -533,8 +525,7 @@ _DEFUN(_dcvt,(buffer, invalue, precision, width, type, dot),
char *
-_DEFUN(fcvtbuf,(invalue,ndigit,decpt,sign, fcvt_buf),
- double invalue,
+fcvtbuf (double invalue,
int ndigit,
int *decpt,
int *sign,
@@ -563,8 +554,7 @@ _DEFUN(fcvtbuf,(invalue,ndigit,decpt,sign, fcvt_buf),
char *
-_DEFUN(ecvtbuf,(invalue,ndigit,decpt,sign, fcvt_buf),
- double invalue,
+ecvtbuf (double invalue,
int ndigit,
int *decpt,
int *sign,
@@ -596,8 +586,7 @@ _DEFUN(ecvtbuf,(invalue,ndigit,decpt,sign, fcvt_buf),
char *
-_DEFUN(gcvt,(d,ndigit,buf),
- double d,
+gcvt (double d,
int ndigit,
char *buf)
{
@@ -35,8 +35,7 @@ int verbose;
/* To test exceptions - we trap them all and return a known value */
int
-_DEFUN(matherr,(e),
- struct exception *e)
+matherr (struct exception *e)
{
if (traperror)
{
@@ -50,8 +49,7 @@ _DEFUN(matherr,(e),
}
-void _DEFUN(translate_to,(file,r),
- FILE *file,
+void translate_to (FILE *file,
double r)
{
__ieee_double_shape_type bits;
@@ -60,8 +58,7 @@ void _DEFUN(translate_to,(file,r),
}
int
-_DEFUN(ffcheck,( is, p, name, serrno, merror),
- double is,
+ffcheck (double is,
one_line_type *p,
char *name,
int serrno,
@@ -108,8 +105,7 @@ _DEFUN(ffcheck,( is, p, name, serrno, merror),
}
double
-_DEFUN(thedouble, (msw, lsw),
- long msw,
+thedouble (long msw,
long lsw)
{
__ieee_double_shape_type x;
@@ -123,8 +119,7 @@ int calc;
int reduce;
-_DEFUN(frontline,(f, mag, p, result, merror, errno, args, name),
- FILE *f,
+frontline (FILE *f,
int mag,
one_line_type *p,
double result,
@@ -176,8 +171,7 @@ _DEFUN(frontline,(f, mag, p, result, merror, errno, args, name),
fprintf(f, ")*/\n");
}
-_DEFUN(finish,(f, vector, result , p, args, name),
- FILE *f,
+finish (FILE *f,
int vector,
double result,
one_line_type *p,
@@ -194,8 +188,7 @@ _DEFUN(finish,(f, vector, result , p, args, name),
}
int redo;
-_DEFUN(run_vector_1,(vector, p, func, name, args),
- int vector,
+run_vector_1 (int vector,
one_line_type *p,
char *func,
char *name,
@@ -429,12 +422,12 @@ test_math (void)
*/
#if 0
-float _DEFUN(cosf,(a), float a) { return cos((double)a); }
-float _DEFUN(sinf,(a), float a) { return sin((double)a); }
-float _DEFUN(log1pf,(a), float a) { return log1p((double)a); }
-float _DEFUN(tanf,(a), float a) { return tan((double)a); }
-float _DEFUN(ceilf,(a), float a) { return ceil(a); }
-float _DEFUN(floorf,(a), float a) { return floor(a); }
+float cosf (float a) { return cos((double)a); }
+float sinf (float a) { return sin((double)a); }
+float log1pf (float a) { return log1p((double)a); }
+float tanf (float a) { return tan((double)a); }
+float ceilf (float a) { return ceil(a); }
+float floorf (float a) { return floor(a); }
#endif
/*ndef HAVE_FLOAT*/
@@ -10,8 +10,7 @@ int errors = 0;
#define check(thing) checkit(thing, __LINE__)
void
-_DEFUN(checkit,(ok,l),
- int ok,
+checkit (int ok,
int l )
{
@@ -31,8 +30,7 @@ _DEFUN(checkit,(ok,l),
#define equal(a, b) funcqual(a,b,__LINE__);
void
-_DEFUN(funcqual,(a,b,l),
- char *a,
+funcqual (char *a,
char *b,
int l)
{
@@ -9,8 +9,7 @@ int inacc;
int
-_DEFUN(main,(ac, av),
- int ac,
+main (int ac,
char **av)
{
int i;
@@ -57,8 +56,7 @@ bt();
static const char *iname = "foo";
void
-_DEFUN(newfunc,(string),
- const char *string)
+newfunc (const char *string)
{
if (strcmp(iname, string))
{
@@ -92,8 +90,7 @@ int reduce = 0;
int strtod_vector = 0;
int
-_DEFUN(bigger,(a,b),
- __ieee_double_shape_type *a,
+bigger (__ieee_double_shape_type *a,
__ieee_double_shape_type *b)
{
@@ -116,8 +113,7 @@ _DEFUN(bigger,(a,b),
/* Return the first bit different between two double numbers */
int
-_DEFUN(mag_of_error,(is, shouldbe),
- double is,
+mag_of_error (double is,
double shouldbe)
{
__ieee_double_shape_type a,b;
@@ -183,8 +179,7 @@ _DEFUN(mag_of_error,(is, shouldbe),
void
-_DEFUN(test_sok,(is, shouldbe),
- char *is,
+test_sok (char *is,
char *shouldbe)
{
if (strcmp(is,shouldbe))
@@ -197,8 +192,7 @@ _DEFUN(test_sok,(is, shouldbe),
}
}
void
-_DEFUN(test_iok,(is, shouldbe),
- int is,
+test_iok (int is,
int shouldbe)
{
if (is != shouldbe){
@@ -215,8 +209,7 @@ _DEFUN(test_iok,(is, shouldbe),
prec float conversions against double results
*/
void
-_DEFUN(test_scok,(is, shouldbe, count),
- char *is,
+test_scok (char *is,
char *shouldbe,
int count)
{
@@ -231,8 +224,7 @@ _DEFUN(test_scok,(is, shouldbe, count),
}
void
-_DEFUN(test_eok,(is, shouldbe),
- int is,
+test_eok (int is,
int shouldbe)
{
if (is != shouldbe){
@@ -245,8 +237,7 @@ _DEFUN(test_eok,(is, shouldbe),
}
void
-_DEFUN(test_mok,(value, shouldbe, okmag),
- double value,
+test_mok (double value,
double shouldbe,
int okmag)
{
@@ -82,8 +82,7 @@ test_getroundtoi (void)
}
double
- _DEFUN(dnumber,(msw, lsw),
- int msw,
+ dnumber (int msw,
int lsw)
{
@@ -18,8 +18,7 @@ int mygraph;
int mypunct;
void
-_DEFUN(test_is_single,(i),
- int i)
+test_is_single (int i)
{
setascii = 0;
setlower = 0;
@@ -1913,28 +1912,27 @@ _DEFUN(test_is_single,(i),
}
-int _DEFUN(def_isascii,(i), int i) { return isascii(i); }
-int _DEFUN(def_iscntrl,(i), int i) { return iscntrl(i); }
-int _DEFUN(def_isspace,(i), int i) { return isspace(i); }
-int _DEFUN(def_isprint,(i), int i) { return isprint(i); }
-int _DEFUN(def_isalnum,(i), int i) { return isalnum(i); }
-int _DEFUN(def_isdigit,(i), int i) { return isdigit(i); }
-int _DEFUN(def_isxdigit,(i), int i) { return isxdigit(i); }
-int _DEFUN(def_isalpha,(i), int i) { return isalpha(i); }
-int _DEFUN(def_isupper,(i), int i) { return isupper(i); }
-int _DEFUN(def_islower,(i), int i) { return islower(i); }
-int _DEFUN(def_isgraph,(i), int i) { return isgraph(i); }
-int _DEFUN(def_ispunct,(i), int i) { return ispunct(i); }
-int _DEFUN(def_tolower,(i), int i) { return tolower(i); }
-int _DEFUN(def_toupper,(i), int i) { return toupper(i); }
-int _DEFUN(def_toascii,(i), int i) { return toascii(i); }
-int _DEFUN(def__tolower,(i), int i) { return _tolower(i); }
-int _DEFUN(def__toupper,(i), int i) { return _toupper(i); }
+int def_isascii (int i) { return isascii(i); }
+int def_iscntrl (int i) { return iscntrl(i); }
+int def_isspace (int i) { return isspace(i); }
+int def_isprint (int i) { return isprint(i); }
+int def_isalnum (int i) { return isalnum(i); }
+int def_isdigit (int i) { return isdigit(i); }
+int def_isxdigit (int i) { return isxdigit(i); }
+int def_isalpha (int i) { return isalpha(i); }
+int def_isupper (int i) { return isupper(i); }
+int def_islower (int i) { return islower(i); }
+int def_isgraph (int i) { return isgraph(i); }
+int def_ispunct (int i) { return ispunct(i); }
+int def_tolower (int i) { return tolower(i); }
+int def_toupper (int i) { return toupper(i); }
+int def_toascii (int i) { return toascii(i); }
+int def__tolower (int i) { return _tolower(i); }
+int def__toupper (int i) { return _toupper(i); }
extern int inacc;
void
-_DEFUN(test_is_set,(func, name, p),
- int (*func)(),
+test_is_set (int (*func)(),
char *name,
int *p)
{
@@ -1952,8 +1950,7 @@ _DEFUN(test_is_set,(func, name, p),
}
}
void
-_DEFUN(test_to_set,(func, name, p, low, high),
- int (*func)(),
+test_to_set (int (*func)(),
char *name,
int *p,
int low,
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com> --- libgloss/bfin/_exit.c | 3 +- libgloss/close.c | 3 +- libgloss/cr16/fstat.c | 3 +- libgloss/cr16/getpid.c | 3 +- libgloss/cr16/isatty.c | 3 +- libgloss/cr16/kill.c | 3 +- libgloss/cr16/putnum.c | 3 +- libgloss/cr16/stat.c | 3 +- libgloss/crx/fstat.c | 3 +- libgloss/crx/getpid.c | 3 +- libgloss/crx/isatty.c | 3 +- libgloss/crx/kill.c | 3 +- libgloss/crx/putnum.c | 3 +- libgloss/crx/stat.c | 3 +- libgloss/epiphany/_isatty.c | 2 +- libgloss/frv/fstat.c | 3 +- libgloss/frv/getpid.c | 3 +- libgloss/frv/isatty.c | 3 +- libgloss/frv/kill.c | 3 +- libgloss/frv/print.c | 3 +- libgloss/frv/putnum.c | 3 +- libgloss/frv/sim-time.c | 9 +-- libgloss/frv/stat.c | 3 +- libgloss/fstat.c | 3 +- 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 +- libgloss/getpid.c | 3 +- libgloss/isatty.c | 3 +- libgloss/kill.c | 3 +- libgloss/libnosys/_exit.c | 3 +- libgloss/libnosys/chown.c | 3 +- libgloss/libnosys/close.c | 3 +- libgloss/libnosys/execve.c | 3 +- libgloss/libnosys/fork.c | 3 +- libgloss/libnosys/fstat.c | 3 +- libgloss/libnosys/getpid.c | 3 +- libgloss/libnosys/gettod.c | 3 +- libgloss/libnosys/isatty.c | 3 +- libgloss/libnosys/kill.c | 3 +- libgloss/libnosys/link.c | 3 +- libgloss/libnosys/lseek.c | 3 +- libgloss/libnosys/open.c | 3 +- libgloss/libnosys/read.c | 3 +- libgloss/libnosys/readlink.c | 3 +- libgloss/libnosys/stat.c | 3 +- libgloss/libnosys/symlink.c | 3 +- libgloss/libnosys/times.c | 3 +- libgloss/libnosys/unlink.c | 3 +- libgloss/libnosys/wait.c | 3 +- libgloss/libnosys/write.c | 3 +- libgloss/lm32/isatty.c | 3 +- libgloss/lseek.c | 3 +- libgloss/m68k/idp-outbyte.c | 6 +- libgloss/m68k/mc68ec.c | 6 +- libgloss/mcore/close.c | 3 +- libgloss/mcore/cmb-exit.c | 3 +- libgloss/mcore/cmb-inbyte.c | 3 +- libgloss/mcore/cmb-outbyte.c | 3 +- libgloss/mcore/fstat.c | 3 +- libgloss/mcore/getpid.c | 3 +- libgloss/mcore/kill.c | 3 +- libgloss/mcore/lseek.c | 3 +- libgloss/mcore/open.c | 3 +- libgloss/mcore/print.c | 3 +- libgloss/mcore/putnum.c | 3 +- libgloss/mcore/raise.c | 3 +- libgloss/mcore/read.c | 3 +- libgloss/mcore/stat.c | 3 +- libgloss/mcore/unlink.c | 3 +- libgloss/mcore/write.c | 3 +- libgloss/moxie/fstat.c | 3 +- libgloss/moxie/getpid.c | 3 +- libgloss/moxie/isatty.c | 3 +- libgloss/moxie/kill.c | 3 +- libgloss/moxie/print.c | 3 +- libgloss/moxie/putnum.c | 3 +- libgloss/moxie/qemu-time.c | 9 +-- libgloss/moxie/sim-lseek.S | 3 +- libgloss/moxie/sim-lseek.c | 3 +- libgloss/moxie/sim-time.c | 9 +-- libgloss/moxie/stat.c | 3 +- libgloss/open.c | 3 +- libgloss/print.c | 3 +- libgloss/putnum.c | 3 +- libgloss/read.c | 3 +- libgloss/spu/getpid.c | 2 +- libgloss/stat.c | 3 +- libgloss/tic6x/getpid.c | 3 +- libgloss/tic6x/kill.c | 3 +- libgloss/unlink.c | 3 +- libgloss/write.c | 3 +- libgloss/xc16x/misc.c | 8 +-- libgloss/xstormy16/close.c | 3 +- libgloss/xstormy16/fstat.c | 3 +- libgloss/xstormy16/getpid.c | 3 +- libgloss/xstormy16/isatty.c | 3 +- libgloss/xstormy16/kill.c | 3 +- libgloss/xstormy16/lseek.c | 3 +- libgloss/xstormy16/open.c | 3 +- libgloss/xstormy16/stat.c | 3 +- libgloss/xstormy16/unlink.c | 3 +- newlib/libc/argz/argz_add.c | 3 +- newlib/libc/argz/argz_add_sep.c | 3 +- newlib/libc/argz/argz_append.c | 3 +- newlib/libc/argz/argz_count.c | 3 +- newlib/libc/argz/argz_create.c | 3 +- newlib/libc/argz/argz_create_sep.c | 3 +- newlib/libc/argz/argz_delete.c | 3 +- newlib/libc/argz/argz_extract.c | 3 +- newlib/libc/argz/argz_insert.c | 3 +- newlib/libc/argz/argz_next.c | 3 +- newlib/libc/argz/argz_replace.c | 3 +- newlib/libc/argz/argz_stringify.c | 3 +- newlib/libc/argz/envz_add.c | 3 +- newlib/libc/argz/envz_entry.c | 3 +- newlib/libc/argz/envz_get.c | 3 +- newlib/libc/argz/envz_merge.c | 3 +- newlib/libc/argz/envz_remove.c | 3 +- newlib/libc/argz/envz_strip.c | 3 +- newlib/libc/ctype/isalnum.c | 2 +- newlib/libc/ctype/isalpha.c | 2 +- newlib/libc/ctype/isascii.c | 2 +- newlib/libc/ctype/isblank.c | 2 +- newlib/libc/ctype/iscntrl.c | 2 +- newlib/libc/ctype/isdigit.c | 2 +- newlib/libc/ctype/islower.c | 2 +- newlib/libc/ctype/isprint.c | 4 +- newlib/libc/ctype/ispunct.c | 2 +- newlib/libc/ctype/isspace.c | 2 +- newlib/libc/ctype/isupper.c | 2 +- newlib/libc/ctype/iswalnum.c | 2 +- newlib/libc/ctype/iswalpha.c | 2 +- newlib/libc/ctype/iswblank.c | 2 +- newlib/libc/ctype/iswcntrl.c | 2 +- newlib/libc/ctype/iswctype.c | 2 +- newlib/libc/ctype/iswdigit.c | 2 +- newlib/libc/ctype/iswgraph.c | 2 +- newlib/libc/ctype/iswlower.c | 2 +- newlib/libc/ctype/iswprint.c | 2 +- newlib/libc/ctype/iswpunct.c | 2 +- newlib/libc/ctype/iswspace.c | 2 +- newlib/libc/ctype/iswupper.c | 2 +- newlib/libc/ctype/iswxdigit.c | 2 +- newlib/libc/ctype/isxdigit.c | 2 +- newlib/libc/ctype/jp2uc.c | 4 +- newlib/libc/ctype/toascii.c | 2 +- newlib/libc/ctype/tolower.c | 2 +- newlib/libc/ctype/toupper.c | 2 +- newlib/libc/ctype/towctrans.c | 6 +- newlib/libc/ctype/towlower.c | 2 +- newlib/libc/ctype/towupper.c | 2 +- newlib/libc/ctype/wctrans.c | 6 +- newlib/libc/ctype/wctype.c | 6 +- newlib/libc/iconv/ces/euc.c | 21 +++---- newlib/libc/iconv/ces/table-pcs.c | 24 +++----- newlib/libc/iconv/ces/table.c | 30 ++++------ newlib/libc/iconv/ces/ucs-2-internal.c | 9 +-- newlib/libc/iconv/ces/ucs-2.c | 15 ++--- newlib/libc/iconv/ces/ucs-4-internal.c | 9 +-- newlib/libc/iconv/ces/ucs-4.c | 15 ++--- newlib/libc/iconv/ces/us-ascii.c | 9 +-- newlib/libc/iconv/ces/utf-16.c | 18 ++---- newlib/libc/iconv/ces/utf-8.c | 9 +-- newlib/libc/iconv/lib/aliasesi.c | 9 +-- newlib/libc/iconv/lib/iconv.c | 17 ++---- newlib/libc/iconv/lib/iconvnls.c | 24 +++----- newlib/libc/iconv/lib/nullconv.c | 22 +++---- newlib/libc/iconv/lib/ucsconv.c | 25 +++----- newlib/libc/include/_ansi.h | 2 - newlib/libc/locale/locale.c | 6 +- newlib/libc/locale/localeconv.c | 3 +- newlib/libc/machine/microblaze/strcmp.c | 3 +- newlib/libc/machine/microblaze/strcpy.c | 3 +- newlib/libc/machine/microblaze/strlen.c | 3 +- newlib/libc/machine/powerpc/atosfix16.c | 6 +- newlib/libc/machine/powerpc/atosfix32.c | 6 +- newlib/libc/machine/powerpc/atosfix64.c | 6 +- newlib/libc/machine/powerpc/atoufix16.c | 6 +- newlib/libc/machine/powerpc/atoufix32.c | 6 +- newlib/libc/machine/powerpc/atoufix64.c | 6 +- newlib/libc/machine/powerpc/strtosfix16.c | 6 +- newlib/libc/machine/powerpc/strtosfix32.c | 6 +- newlib/libc/machine/powerpc/strtosfix64.c | 6 +- newlib/libc/machine/powerpc/strtoufix16.c | 6 +- newlib/libc/machine/powerpc/strtoufix32.c | 6 +- newlib/libc/machine/powerpc/strtoufix64.c | 6 +- newlib/libc/machine/powerpc/ufix64toa.c | 3 +- newlib/libc/machine/powerpc/vec_calloc.c | 3 +- newlib/libc/machine/powerpc/vec_free.c | 3 +- newlib/libc/machine/powerpc/vec_malloc.c | 3 +- newlib/libc/machine/powerpc/vec_realloc.c | 3 +- newlib/libc/machine/powerpc/vfprintf.c | 6 +- newlib/libc/machine/powerpc/vfscanf.c | 6 +- newlib/libc/machine/spu/assert.c | 6 +- newlib/libc/machine/spu/clearerr.c | 3 +- newlib/libc/machine/spu/creat.c | 3 +- newlib/libc/machine/spu/fclose.c | 3 +- newlib/libc/machine/spu/fdopen.c | 3 +- newlib/libc/machine/spu/feof.c | 3 +- newlib/libc/machine/spu/ferror.c | 3 +- newlib/libc/machine/spu/fflush.c | 3 +- newlib/libc/machine/spu/fgetc.c | 3 +- newlib/libc/machine/spu/fgetpos.c | 3 +- newlib/libc/machine/spu/fgets.c | 3 +- newlib/libc/machine/spu/fileno.c | 3 +- newlib/libc/machine/spu/fopen.c | 3 +- newlib/libc/machine/spu/fputs.c | 3 +- newlib/libc/machine/spu/fread.c | 3 +- newlib/libc/machine/spu/freopen.c | 3 +- newlib/libc/machine/spu/fseek.c | 3 +- newlib/libc/machine/spu/fsetpos.c | 3 +- newlib/libc/machine/spu/ftell.c | 3 +- newlib/libc/machine/spu/fwrite.c | 3 +- newlib/libc/machine/spu/perror.c | 3 +- newlib/libc/machine/spu/puts.c | 3 +- newlib/libc/machine/spu/rewind.c | 3 +- newlib/libc/machine/spu/setbuf.c | 3 +- newlib/libc/machine/spu/setvbuf.c | 3 +- newlib/libc/machine/spu/stdio.c | 9 +-- newlib/libc/machine/spu/tmpnam.c | 3 +- newlib/libc/machine/spu/vfprintf.c | 3 +- newlib/libc/machine/spu/vfscanf.c | 3 +- newlib/libc/machine/spu/vprintf.c | 3 +- newlib/libc/machine/spu/vscanf.c | 3 +- newlib/libc/machine/spu/vsnprintf.c | 3 +- newlib/libc/machine/spu/vsprintf.c | 3 +- newlib/libc/machine/spu/vsscanf.c | 3 +- newlib/libc/misc/__dprintf.c | 12 ++-- newlib/libc/posix/_isatty.c | 2 +- newlib/libc/posix/closedir.c | 3 +- newlib/libc/posix/creat.c | 3 +- newlib/libc/posix/execl.c | 6 +- newlib/libc/posix/execle.c | 6 +- newlib/libc/posix/execlp.c | 6 +- newlib/libc/posix/execv.c | 3 +- newlib/libc/posix/execve.c | 3 +- newlib/libc/posix/execvp.c | 6 +- newlib/libc/posix/isatty.c | 2 +- newlib/libc/posix/opendir.c | 3 +- newlib/libc/posix/popen.c | 6 +- newlib/libc/posix/posix_spawn.c | 63 +++++++------------- newlib/libc/posix/readdir.c | 3 +- newlib/libc/posix/readdir_r.c | 3 +- newlib/libc/posix/rewinddir.c | 3 +- newlib/libc/posix/scandir.c | 6 +- newlib/libc/posix/seekdir.c | 3 +- newlib/libc/posix/telldir.c | 9 +-- newlib/libc/reent/execr.c | 9 +-- newlib/libc/reent/fcntlr.c | 3 +- newlib/libc/reent/fstat64r.c | 3 +- newlib/libc/reent/gettimeofdayr.c | 3 +- newlib/libc/reent/linkr.c | 3 +- newlib/libc/reent/lseek64r.c | 3 +- newlib/libc/reent/lseekr.c | 3 +- newlib/libc/reent/mkdirr.c | 3 +- newlib/libc/reent/openr.c | 3 +- newlib/libc/reent/readr.c | 3 +- newlib/libc/reent/reent.c | 6 +- newlib/libc/reent/renamer.c | 3 +- newlib/libc/reent/sbrkr.c | 3 +- newlib/libc/reent/signalr.c | 6 +- newlib/libc/reent/stat64r.c | 3 +- newlib/libc/reent/statr.c | 3 +- newlib/libc/reent/timesr.c | 3 +- newlib/libc/reent/unlinkr.c | 3 +- newlib/libc/reent/writer.c | 3 +- newlib/libc/search/bsearch.c | 3 +- newlib/libc/search/hash.c | 3 +- newlib/libc/search/hcreate.c | 5 +- newlib/libc/search/qsort.c | 15 ++--- newlib/libc/search/tdelete.c | 3 +- newlib/libc/search/tdestroy.c | 3 +- newlib/libc/search/tfind.c | 3 +- newlib/libc/search/tsearch.c | 3 +- newlib/libc/search/twalk.c | 3 +- newlib/libc/signal/psignal.c | 3 +- newlib/libc/signal/raise.c | 6 +- newlib/libc/signal/signal.c | 20 +++---- newlib/libc/stdio/asiprintf.c | 6 +- newlib/libc/stdio/asniprintf.c | 6 +- newlib/libc/stdio/asnprintf.c | 6 +- newlib/libc/stdio/asprintf.c | 6 +- newlib/libc/stdio/clearerr.c | 3 +- newlib/libc/stdio/clearerr_u.c | 3 +- newlib/libc/stdio/diprintf.c | 6 +- newlib/libc/stdio/dprintf.c | 6 +- newlib/libc/stdio/fclose.c | 6 +- newlib/libc/stdio/fcloseall.c | 3 +- newlib/libc/stdio/fdopen.c | 6 +- newlib/libc/stdio/feof.c | 3 +- newlib/libc/stdio/feof_u.c | 3 +- newlib/libc/stdio/ferror.c | 3 +- newlib/libc/stdio/ferror_u.c | 3 +- newlib/libc/stdio/fflush.c | 12 ++-- newlib/libc/stdio/fgetc.c | 6 +- newlib/libc/stdio/fgetc_u.c | 6 +- newlib/libc/stdio/fgetpos.c | 6 +- newlib/libc/stdio/fgets.c | 6 +- newlib/libc/stdio/fgetwc.c | 9 +-- newlib/libc/stdio/fgetwc_u.c | 6 +- newlib/libc/stdio/fgetws.c | 6 +- newlib/libc/stdio/fileno.c | 3 +- newlib/libc/stdio/fileno_u.c | 3 +- newlib/libc/stdio/findfp.c | 21 +++---- newlib/libc/stdio/fiprintf.c | 6 +- newlib/libc/stdio/flags.c | 3 +- newlib/libc/stdio/fmemopen.c | 21 +++---- newlib/libc/stdio/fopen.c | 6 +- newlib/libc/stdio/fopencookie.c | 21 +++---- newlib/libc/stdio/fprintf.c | 6 +- newlib/libc/stdio/fpurge.c | 9 +-- newlib/libc/stdio/fputc.c | 6 +- newlib/libc/stdio/fputc_u.c | 6 +- newlib/libc/stdio/fputs.c | 6 +- newlib/libc/stdio/fputwc.c | 9 +-- newlib/libc/stdio/fputwc_u.c | 6 +- newlib/libc/stdio/fputws.c | 6 +- newlib/libc/stdio/fread.c | 9 +-- newlib/libc/stdio/freopen.c | 6 +- newlib/libc/stdio/fseek.c | 6 +- newlib/libc/stdio/fseeko.c | 6 +- newlib/libc/stdio/fsetlocking.c | 3 +- newlib/libc/stdio/fsetpos.c | 6 +- newlib/libc/stdio/ftell.c | 6 +- newlib/libc/stdio/ftello.c | 6 +- newlib/libc/stdio/funopen.c | 21 +++---- newlib/libc/stdio/fvwrite.c | 3 +- newlib/libc/stdio/fwalk.c | 6 +- newlib/libc/stdio/fwide.c | 6 +- newlib/libc/stdio/fwprintf.c | 6 +- newlib/libc/stdio/fwrite.c | 6 +- newlib/libc/stdio/getc.c | 6 +- newlib/libc/stdio/getc_u.c | 6 +- newlib/libc/stdio/getchar.c | 3 +- newlib/libc/stdio/getchar_u.c | 3 +- newlib/libc/stdio/getdelim.c | 3 +- newlib/libc/stdio/getline.c | 3 +- newlib/libc/stdio/gets.c | 6 +- newlib/libc/stdio/getw.c | 3 +- newlib/libc/stdio/getwc.c | 6 +- newlib/libc/stdio/getwc_u.c | 6 +- newlib/libc/stdio/getwchar.c | 3 +- newlib/libc/stdio/getwchar_u.c | 3 +- newlib/libc/stdio/iprintf.c | 6 +- newlib/libc/stdio/makebuf.c | 6 +- newlib/libc/stdio/mktemp.c | 39 ++++-------- newlib/libc/stdio/nano-vfprintf.c | 21 +++---- newlib/libc/stdio/nano-vfscanf.c | 18 ++---- newlib/libc/stdio/open_memstream.c | 27 +++------ newlib/libc/stdio/perror.c | 6 +- newlib/libc/stdio/printf.c | 6 +- newlib/libc/stdio/putc.c | 6 +- newlib/libc/stdio/putc_u.c | 6 +- newlib/libc/stdio/putchar.c | 6 +- newlib/libc/stdio/putchar_u.c | 6 +- newlib/libc/stdio/puts.c | 6 +- newlib/libc/stdio/putw.c | 3 +- newlib/libc/stdio/putwc.c | 6 +- newlib/libc/stdio/putwc_u.c | 6 +- newlib/libc/stdio/putwchar.c | 6 +- newlib/libc/stdio/putwchar_u.c | 6 +- newlib/libc/stdio/refill.c | 6 +- newlib/libc/stdio/remove.c | 6 +- newlib/libc/stdio/rename.c | 3 +- newlib/libc/stdio/rewind.c | 6 +- newlib/libc/stdio/rget.c | 6 +- newlib/libc/stdio/sccl.c | 3 +- newlib/libc/stdio/setbuf.c | 3 +- newlib/libc/stdio/setbuffer.c | 3 +- newlib/libc/stdio/setlinebuf.c | 3 +- newlib/libc/stdio/setvbuf.c | 3 +- newlib/libc/stdio/siprintf.c | 6 +- newlib/libc/stdio/siscanf.c | 6 +- newlib/libc/stdio/sniprintf.c | 6 +- newlib/libc/stdio/snprintf.c | 6 +- newlib/libc/stdio/sprintf.c | 6 +- newlib/libc/stdio/sscanf.c | 6 +- newlib/libc/stdio/stdio.c | 18 ++---- newlib/libc/stdio/stdio_ext.c | 21 +++---- newlib/libc/stdio/swprintf.c | 6 +- newlib/libc/stdio/tmpfile.c | 3 +- newlib/libc/stdio/tmpnam.c | 15 ++--- newlib/libc/stdio/ungetc.c | 9 +-- newlib/libc/stdio/ungetwc.c | 6 +- newlib/libc/stdio/vasiprintf.c | 6 +- newlib/libc/stdio/vasniprintf.c | 6 +- newlib/libc/stdio/vasnprintf.c | 6 +- newlib/libc/stdio/vasprintf.c | 6 +- newlib/libc/stdio/vdiprintf.c | 6 +- newlib/libc/stdio/vdprintf.c | 6 +- newlib/libc/stdio/vfprintf.c | 24 +++----- newlib/libc/stdio/vfscanf.c | 21 +++---- newlib/libc/stdio/vfwprintf.c | 12 ++-- newlib/libc/stdio/vfwscanf.c | 18 ++---- newlib/libc/stdio/viprintf.c | 6 +- newlib/libc/stdio/viscanf.c | 6 +- newlib/libc/stdio/vprintf.c | 6 +- newlib/libc/stdio/vscanf.c | 6 +- newlib/libc/stdio/vsiprintf.c | 6 +- newlib/libc/stdio/vsiscanf.c | 6 +- newlib/libc/stdio/vsniprintf.c | 6 +- newlib/libc/stdio/vsnprintf.c | 6 +- newlib/libc/stdio/vsprintf.c | 6 +- newlib/libc/stdio/vsscanf.c | 6 +- newlib/libc/stdio/vswprintf.c | 6 +- newlib/libc/stdio/vwprintf.c | 6 +- newlib/libc/stdio/wbuf.c | 6 +- newlib/libc/stdio/wprintf.c | 6 +- newlib/libc/stdio/wsetup.c | 3 +- newlib/libc/stdio64/fdopen64.c | 6 +- newlib/libc/stdio64/fgetpos64.c | 6 +- newlib/libc/stdio64/fopen64.c | 6 +- newlib/libc/stdio64/freopen64.c | 6 +- newlib/libc/stdio64/fseeko64.c | 6 +- newlib/libc/stdio64/fsetpos64.c | 6 +- newlib/libc/stdio64/ftello64.c | 6 +- newlib/libc/stdio64/stdio64.c | 6 +- newlib/libc/stdio64/tmpfile64.c | 3 +- newlib/libc/stdlib/_Exit.c | 3 +- newlib/libc/stdlib/__adjust.c | 3 +- newlib/libc/stdlib/__atexit.c | 4 +- newlib/libc/stdlib/__call_atexit.c | 3 +- newlib/libc/stdlib/__exp10.c | 3 +- newlib/libc/stdlib/__ten_mu.c | 3 +- newlib/libc/stdlib/a64l.c | 3 +- newlib/libc/stdlib/abs.c | 2 +- newlib/libc/stdlib/assert.c | 6 +- newlib/libc/stdlib/atexit.c | 4 +- newlib/libc/stdlib/atof.c | 3 +- newlib/libc/stdlib/atoff.c | 3 +- newlib/libc/stdlib/atoi.c | 6 +- newlib/libc/stdlib/atol.c | 4 +- newlib/libc/stdlib/atoll.c | 6 +- newlib/libc/stdlib/calloc.c | 3 +- newlib/libc/stdlib/cxa_atexit.c | 4 +- newlib/libc/stdlib/cxa_finalize.c | 3 +- newlib/libc/stdlib/div.c | 3 +- newlib/libc/stdlib/drand48.c | 3 +- newlib/libc/stdlib/dtoa.c | 8 +-- newlib/libc/stdlib/dtoastub.c | 4 +- newlib/libc/stdlib/ecvtbuf.c | 18 ++---- newlib/libc/stdlib/efgcvt.c | 18 ++---- newlib/libc/stdlib/erand48.c | 6 +- newlib/libc/stdlib/exit.c | 3 +- newlib/libc/stdlib/gdtoa-gethex.c | 9 +-- newlib/libc/stdlib/gdtoa-hexnan.c | 9 +-- newlib/libc/stdlib/getenv.c | 6 +- newlib/libc/stdlib/getenv_r.c | 6 +- newlib/libc/stdlib/itoa.c | 6 +- newlib/libc/stdlib/jrand48.c | 6 +- newlib/libc/stdlib/l64a.c | 6 +- newlib/libc/stdlib/labs.c | 3 +- newlib/libc/stdlib/lcong48.c | 6 +- newlib/libc/stdlib/ldiv.c | 3 +- newlib/libc/stdlib/llabs.c | 3 +- newlib/libc/stdlib/lldiv.c | 3 +- newlib/libc/stdlib/lrand48.c | 3 +- newlib/libc/stdlib/malign.c | 3 +- newlib/libc/stdlib/malloc.c | 6 +- newlib/libc/stdlib/mblen.c | 3 +- newlib/libc/stdlib/mblen_r.c | 3 +- newlib/libc/stdlib/mbrtowc.c | 6 +- newlib/libc/stdlib/mbsnrtowcs.c | 6 +- newlib/libc/stdlib/mbsrtowcs.c | 6 +- newlib/libc/stdlib/mbstowcs.c | 3 +- newlib/libc/stdlib/mbstowcs_r.c | 3 +- newlib/libc/stdlib/mbtowc.c | 3 +- newlib/libc/stdlib/mbtowc_r.c | 18 ++---- newlib/libc/stdlib/mprec.c | 48 ++++++--------- newlib/libc/stdlib/mrand48.c | 3 +- newlib/libc/stdlib/msize.c | 3 +- newlib/libc/stdlib/mstats.c | 9 +-- newlib/libc/stdlib/mtrim.c | 3 +- newlib/libc/stdlib/nrand48.c | 6 +- newlib/libc/stdlib/on_exit.c | 4 +- newlib/libc/stdlib/putenv.c | 3 +- newlib/libc/stdlib/putenv_r.c | 3 +- newlib/libc/stdlib/rand.c | 2 +- newlib/libc/stdlib/rand48.c | 3 +- newlib/libc/stdlib/rand_r.c | 2 +- newlib/libc/stdlib/random.c | 2 +- newlib/libc/stdlib/realloc.c | 3 +- newlib/libc/stdlib/reallocf.c | 6 +- newlib/libc/stdlib/rpmatch.c | 3 +- newlib/libc/stdlib/seed48.c | 6 +- newlib/libc/stdlib/setenv.c | 6 +- newlib/libc/stdlib/setenv_r.c | 6 +- newlib/libc/stdlib/srand48.c | 6 +- newlib/libc/stdlib/strtod.c | 15 ++--- newlib/libc/stdlib/strtol.c | 6 +- newlib/libc/stdlib/strtoll.c | 6 +- newlib/libc/stdlib/strtoul.c | 6 +- newlib/libc/stdlib/strtoull.c | 6 +- newlib/libc/stdlib/system.c | 12 ++-- newlib/libc/stdlib/utoa.c | 6 +- newlib/libc/stdlib/valloc.c | 6 +- newlib/libc/stdlib/wcrtomb.c | 6 +- newlib/libc/stdlib/wcsnrtombs.c | 6 +- newlib/libc/stdlib/wcsrtombs.c | 6 +- newlib/libc/stdlib/wcstod.c | 12 ++-- newlib/libc/stdlib/wcstol.c | 6 +- newlib/libc/stdlib/wcstoll.c | 6 +- newlib/libc/stdlib/wcstombs.c | 3 +- newlib/libc/stdlib/wcstombs_r.c | 3 +- newlib/libc/stdlib/wcstoul.c | 6 +- newlib/libc/stdlib/wcstoull.c | 6 +- newlib/libc/stdlib/wctomb.c | 3 +- newlib/libc/stdlib/wctomb_r.c | 18 ++---- newlib/libc/string/bcmp.c | 3 +- newlib/libc/string/bcopy.c | 3 +- newlib/libc/string/gnu_basename.c | 3 +- newlib/libc/string/index.c | 3 +- newlib/libc/string/memccpy.c | 3 +- newlib/libc/string/memchr.c | 3 +- newlib/libc/string/memcmp.c | 3 +- newlib/libc/string/memcpy.c | 3 +- newlib/libc/string/memmem.c | 3 +- newlib/libc/string/memmove.c | 3 +- newlib/libc/string/mempcpy.c | 3 +- newlib/libc/string/memrchr.c | 3 +- newlib/libc/string/memset.c | 3 +- newlib/libc/string/rawmemchr.c | 3 +- newlib/libc/string/rindex.c | 3 +- newlib/libc/string/stpcpy.c | 3 +- newlib/libc/string/stpncpy.c | 3 +- newlib/libc/string/strcasecmp.c | 3 +- newlib/libc/string/strcasestr.c | 3 +- newlib/libc/string/strcat.c | 3 +- newlib/libc/string/strchr.c | 3 +- newlib/libc/string/strchrnul.c | 3 +- newlib/libc/string/strcmp.c | 3 +- newlib/libc/string/strcoll.c | 3 +- newlib/libc/string/strcpy.c | 3 +- newlib/libc/string/strcspn.c | 3 +- newlib/libc/string/strdup.c | 2 +- newlib/libc/string/strdup_r.c | 3 +- newlib/libc/string/strerror.c | 6 +- newlib/libc/string/strerror_r.c | 3 +- newlib/libc/string/strlcat.c | 3 +- newlib/libc/string/strlcpy.c | 3 +- newlib/libc/string/strlen.c | 3 +- newlib/libc/string/strlwr.c | 3 +- newlib/libc/string/strncasecmp.c | 3 +- newlib/libc/string/strncat.c | 3 +- newlib/libc/string/strncmp.c | 3 +- newlib/libc/string/strncpy.c | 3 +- newlib/libc/string/strndup.c | 3 +- newlib/libc/string/strndup_r.c | 3 +- newlib/libc/string/strnlen.c | 3 +- newlib/libc/string/strpbrk.c | 3 +- newlib/libc/string/strrchr.c | 3 +- newlib/libc/string/strsep.c | 3 +- newlib/libc/string/strsignal.c | 3 +- newlib/libc/string/strspn.c | 3 +- newlib/libc/string/strstr.c | 3 +- newlib/libc/string/strtok.c | 3 +- newlib/libc/string/strtok_r.c | 6 +- newlib/libc/string/strupr.c | 3 +- newlib/libc/string/strxfrm.c | 3 +- newlib/libc/string/swab.c | 3 +- newlib/libc/string/u_strerr.c | 3 +- newlib/libc/string/wcpcpy.c | 3 +- newlib/libc/string/wcpncpy.c | 3 +- newlib/libc/string/wcscasecmp.c | 3 +- newlib/libc/string/wcscat.c | 3 +- newlib/libc/string/wcschr.c | 3 +- newlib/libc/string/wcscmp.c | 3 +- newlib/libc/string/wcscoll.c | 3 +- newlib/libc/string/wcscpy.c | 3 +- newlib/libc/string/wcscspn.c | 3 +- newlib/libc/string/wcslcat.c | 3 +- newlib/libc/string/wcslcpy.c | 3 +- newlib/libc/string/wcslen.c | 3 +- newlib/libc/string/wcsncasecmp.c | 3 +- newlib/libc/string/wcsncat.c | 3 +- newlib/libc/string/wcsncmp.c | 3 +- newlib/libc/string/wcsncpy.c | 3 +- newlib/libc/string/wcsnlen.c | 3 +- newlib/libc/string/wcspbrk.c | 3 +- newlib/libc/string/wcsrchr.c | 3 +- newlib/libc/string/wcsspn.c | 3 +- newlib/libc/string/wcsstr.c | 3 +- newlib/libc/string/wcstok.c | 3 +- newlib/libc/string/wcswidth.c | 3 +- newlib/libc/string/wcsxfrm.c | 3 +- newlib/libc/string/wcwidth.c | 6 +- newlib/libc/string/wmemchr.c | 3 +- newlib/libc/string/wmemcmp.c | 3 +- newlib/libc/string/wmemcpy.c | 3 +- newlib/libc/string/wmemmove.c | 3 +- newlib/libc/string/wmempcpy.c | 3 +- newlib/libc/string/wmemset.c | 3 +- newlib/libc/string/xpg_strerror_r.c | 3 +- newlib/libc/sys/a29khif/kill.c | 3 +- newlib/libc/sys/h8300hms/misc.c | 8 +-- newlib/libc/sys/h8500hms/misc.c | 8 +-- newlib/libc/sys/linux/ctermid.c | 3 +- newlib/libc/sys/linux/getpwent.c | 9 +-- newlib/libc/sys/linux/pread.c | 6 +- newlib/libc/sys/linux/pread64.c | 3 +- newlib/libc/sys/linux/pwrite.c | 6 +- newlib/libc/sys/linux/pwrite64.c | 3 +- newlib/libc/sys/sparc64/ieee.c | 12 ++-- newlib/libc/sys/sun4/ieee.c | 12 ++-- newlib/libc/sys/sysnec810/misc.c | 3 +- newlib/libc/sys/sysvi386/fpx.c | 9 +-- newlib/libc/sys/sysvnecv70/fpx.c | 9 +-- newlib/libc/syscalls/sysclose.c | 3 +- newlib/libc/syscalls/sysexecve.c | 3 +- newlib/libc/syscalls/sysfcntl.c | 3 +- newlib/libc/syscalls/sysfstat.c | 3 +- newlib/libc/syscalls/sysgettod.c | 3 +- newlib/libc/syscalls/sysisatty.c | 3 +- newlib/libc/syscalls/syskill.c | 3 +- newlib/libc/syscalls/syslink.c | 3 +- newlib/libc/syscalls/syslseek.c | 3 +- newlib/libc/syscalls/sysopen.c | 3 +- newlib/libc/syscalls/sysread.c | 3 +- newlib/libc/syscalls/syssbrk.c | 3 +- newlib/libc/syscalls/sysstat.c | 3 +- newlib/libc/syscalls/systimes.c | 3 +- newlib/libc/syscalls/sysunlink.c | 3 +- newlib/libc/syscalls/syswait.c | 3 +- newlib/libc/syscalls/syswrite.c | 3 +- newlib/libc/time/asctime.c | 3 +- newlib/libc/time/asctime_r.c | 3 +- newlib/libc/time/ctime.c | 3 +- newlib/libc/time/ctime_r.c | 3 +- newlib/libc/time/difftime.c | 3 +- newlib/libc/time/gmtime.c | 3 +- newlib/libc/time/gmtime_r.c | 3 +- newlib/libc/time/lcltime.c | 3 +- newlib/libc/time/lcltime_r.c | 3 +- newlib/libc/time/mktime.c | 6 +- newlib/libc/time/strftime.c | 6 +- newlib/libc/time/time.c | 3 +- newlib/libc/time/tzcalc_limits.c | 3 +- newlib/libc/time/tzset_r.c | 6 +- newlib/libc/unix/basename.c | 3 +- newlib/libc/unix/dirname.c | 3 +- newlib/libc/unix/pread.c | 6 +- newlib/libc/unix/pwrite.c | 6 +- newlib/libc/unix/ttyname.c | 3 +- newlib/libc/unix/ttyname_r.c | 3 +- newlib/libc/xdr/xdr.c | 99 +++++++++++-------------------- newlib/libc/xdr/xdr_array.c | 6 +- newlib/libc/xdr/xdr_float.c | 6 +- newlib/libc/xdr/xdr_float_vax.c | 6 +- newlib/libc/xdr/xdr_mem.c | 48 +++++---------- newlib/libc/xdr/xdr_private.c | 9 +-- newlib/libc/xdr/xdr_rec.c | 69 +++++++-------------- newlib/libc/xdr/xdr_reference.c | 6 +- newlib/libc/xdr/xdr_sizeof.c | 24 +++----- newlib/libc/xdr/xdr_stdio.c | 33 ++++------- newlib/libm/common/s_isinf.c | 3 +- newlib/libm/common/s_isinfd.c | 3 +- newlib/libm/common/s_isnand.c | 3 +- newlib/libm/common/sf_isinf.c | 6 +- newlib/libm/common/sf_isinff.c | 6 +- newlib/libm/common/sf_isnan.c | 6 +- newlib/libm/common/sf_isnanf.c | 6 +- newlib/libm/machine/i386/f_math.h | 6 +- newlib/libm/mathfp/s_acos.c | 3 +- newlib/libm/mathfp/s_asin.c | 3 +- newlib/libm/mathfp/s_asine.c | 3 +- newlib/libm/mathfp/s_atan.c | 3 +- newlib/libm/mathfp/s_atan2.c | 3 +- newlib/libm/mathfp/s_atangent.c | 3 +- newlib/libm/mathfp/s_ceil.c | 3 +- newlib/libm/mathfp/s_cos.c | 3 +- newlib/libm/mathfp/s_cosh.c | 3 +- newlib/libm/mathfp/s_exp.c | 3 +- newlib/libm/mathfp/s_exp2.c | 3 +- newlib/libm/mathfp/s_fabs.c | 3 +- newlib/libm/mathfp/s_floor.c | 3 +- newlib/libm/mathfp/s_ldexp.c | 3 +- newlib/libm/mathfp/s_log.c | 3 +- newlib/libm/mathfp/s_log10.c | 3 +- newlib/libm/mathfp/s_logarithm.c | 3 +- newlib/libm/mathfp/s_numtest.c | 3 +- newlib/libm/mathfp/s_sin.c | 3 +- newlib/libm/mathfp/s_sincos.c | 3 +- newlib/libm/mathfp/s_sine.c | 3 +- newlib/libm/mathfp/s_sineh.c | 3 +- newlib/libm/mathfp/s_sinf.c | 3 +- newlib/libm/mathfp/s_sinh.c | 3 +- newlib/libm/mathfp/s_sqrt.c | 3 +- newlib/libm/mathfp/s_tan.c | 3 +- newlib/libm/mathfp/s_tanh.c | 3 +- newlib/libm/mathfp/sf_acos.c | 3 +- newlib/libm/mathfp/sf_asin.c | 3 +- newlib/libm/mathfp/sf_asine.c | 3 +- newlib/libm/mathfp/sf_atan.c | 3 +- newlib/libm/mathfp/sf_atan2.c | 3 +- newlib/libm/mathfp/sf_atangent.c | 3 +- newlib/libm/mathfp/sf_ceil.c | 3 +- newlib/libm/mathfp/sf_cos.c | 3 +- newlib/libm/mathfp/sf_cosh.c | 3 +- newlib/libm/mathfp/sf_exp.c | 3 +- newlib/libm/mathfp/sf_exp2.c | 3 +- newlib/libm/mathfp/sf_fabs.c | 3 +- newlib/libm/mathfp/sf_floor.c | 3 +- newlib/libm/mathfp/sf_fmod.c | 3 +- newlib/libm/mathfp/sf_ldexp.c | 3 +- newlib/libm/mathfp/sf_log.c | 3 +- newlib/libm/mathfp/sf_log10.c | 3 +- newlib/libm/mathfp/sf_logarithm.c | 3 +- newlib/libm/mathfp/sf_numtest.c | 3 +- newlib/libm/mathfp/sf_sin.c | 3 +- newlib/libm/mathfp/sf_sincos.c | 3 +- newlib/libm/mathfp/sf_sine.c | 3 +- newlib/libm/mathfp/sf_sineh.c | 3 +- newlib/libm/mathfp/sf_sinh.c | 3 +- newlib/libm/mathfp/sf_sqrt.c | 3 +- newlib/libm/mathfp/sf_tan.c | 3 +- newlib/libm/mathfp/sf_tanh.c | 3 +- newlib/libm/test/convert.c | 12 ++-- newlib/libm/test/dcvt.c | 33 ++++------- newlib/libm/test/math.c | 33 ++++------- newlib/libm/test/string.c | 6 +- newlib/libm/test/test.c | 27 +++------ newlib/libm/test/test_ieee.c | 3 +- newlib/libm/test/test_is.c | 43 +++++++------- 729 files changed, 1338 insertions(+), 2605 deletions(-) -- 2.15.1