ansification: remove _DEFUN

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz
2017-12-03 21:43:30 -06:00
parent 44276afe2a
commit 9087163804
729 changed files with 1338 additions and 2605 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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