ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user