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