aboutsummaryrefslogtreecommitdiff
path: root/libgloss/libnosys
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-03 21:43:30 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-17 11:47:26 -0600
commit9087163804df8af6dc2ec1f675a2341c25f7795f (patch)
tree86fcb38236347d0e97a16c957e41dca597b8e8a8 /libgloss/libnosys
parent44276afe2a0365d655425702205604640829668d (diff)
downloadnewlib-9087163804df8af6dc2ec1f675a2341c25f7795f.zip
newlib-9087163804df8af6dc2ec1f675a2341c25f7795f.tar.gz
newlib-9087163804df8af6dc2ec1f675a2341c25f7795f.tar.bz2
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'libgloss/libnosys')
-rw-r--r--libgloss/libnosys/_exit.c3
-rw-r--r--libgloss/libnosys/chown.c3
-rw-r--r--libgloss/libnosys/close.c3
-rw-r--r--libgloss/libnosys/execve.c3
-rw-r--r--libgloss/libnosys/fork.c3
-rw-r--r--libgloss/libnosys/fstat.c3
-rw-r--r--libgloss/libnosys/getpid.c3
-rw-r--r--libgloss/libnosys/gettod.c3
-rw-r--r--libgloss/libnosys/isatty.c3
-rw-r--r--libgloss/libnosys/kill.c3
-rw-r--r--libgloss/libnosys/link.c3
-rw-r--r--libgloss/libnosys/lseek.c3
-rw-r--r--libgloss/libnosys/open.c3
-rw-r--r--libgloss/libnosys/read.c3
-rw-r--r--libgloss/libnosys/readlink.c3
-rw-r--r--libgloss/libnosys/stat.c3
-rw-r--r--libgloss/libnosys/symlink.c3
-rw-r--r--libgloss/libnosys/times.c3
-rw-r--r--libgloss/libnosys/unlink.c3
-rw-r--r--libgloss/libnosys/wait.c3
-rw-r--r--libgloss/libnosys/write.c3
21 files changed, 21 insertions, 42 deletions
diff --git a/libgloss/libnosys/_exit.c b/libgloss/libnosys/_exit.c
index 44d845b..731dea7 100644
--- a/libgloss/libnosys/_exit.c
+++ b/libgloss/libnosys/_exit.c
@@ -6,8 +6,7 @@
#include <_syslist.h>
void
-_DEFUN (_exit, (rc),
- int rc)
+_exit (int rc)
{
/* Default stub just causes a divide by 0 exception. */
int x = rc / INT_MAX;
diff --git a/libgloss/libnosys/chown.c b/libgloss/libnosys/chown.c
index 0ddb85d..faea82b 100644
--- a/libgloss/libnosys/chown.c
+++ b/libgloss/libnosys/chown.c
@@ -12,8 +12,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_chown, (path, owner, group),
- const char *path,
+_chown (const char *path,
uid_t owner,
gid_t group)
{
diff --git a/libgloss/libnosys/close.c b/libgloss/libnosys/close.c
index b759b86..8dc3e8b 100644
--- a/libgloss/libnosys/close.c
+++ b/libgloss/libnosys/close.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_close, (fildes),
- int fildes)
+_close (int fildes)
{
errno = ENOSYS;
return -1;
diff --git a/libgloss/libnosys/execve.c b/libgloss/libnosys/execve.c
index a93641a..950a43c 100644
--- a/libgloss/libnosys/execve.c
+++ b/libgloss/libnosys/execve.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_execve, (name, argv, env),
- char *name,
+_execve (char *name,
char **argv,
char **env)
{
diff --git a/libgloss/libnosys/fork.c b/libgloss/libnosys/fork.c
index 5fbf68b..c4724a3 100644
--- a/libgloss/libnosys/fork.c
+++ b/libgloss/libnosys/fork.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_fork, (),
- void)
+_fork (void)
{
errno = ENOSYS;
return -1;
diff --git a/libgloss/libnosys/fstat.c b/libgloss/libnosys/fstat.c
index d04b407..c85b9f2 100644
--- a/libgloss/libnosys/fstat.c
+++ b/libgloss/libnosys/fstat.c
@@ -13,8 +13,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_fstat, (fildes, st),
- int fildes,
+_fstat (int fildes,
struct stat *st)
{
errno = ENOSYS;
diff --git a/libgloss/libnosys/getpid.c b/libgloss/libnosys/getpid.c
index 9ed416c..f8d451e 100644
--- a/libgloss/libnosys/getpid.c
+++ b/libgloss/libnosys/getpid.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_getpid, (),
- void)
+_getpid (void)
{
errno = ENOSYS;
return -1;
diff --git a/libgloss/libnosys/gettod.c b/libgloss/libnosys/gettod.c
index 5e0b2db..2b5354e 100644
--- a/libgloss/libnosys/gettod.c
+++ b/libgloss/libnosys/gettod.c
@@ -15,8 +15,7 @@ extern int errno;
struct timeval;
int
-_DEFUN (_gettimeofday, (ptimeval, ptimezone),
- struct timeval *ptimeval,
+_gettimeofday (struct timeval *ptimeval,
void *ptimezone)
{
errno = ENOSYS;
diff --git a/libgloss/libnosys/isatty.c b/libgloss/libnosys/isatty.c
index d93e177..a175bf9 100644
--- a/libgloss/libnosys/isatty.c
+++ b/libgloss/libnosys/isatty.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_isatty, (file),
- int file)
+_isatty (int file)
{
errno = ENOSYS;
return 0;
diff --git a/libgloss/libnosys/kill.c b/libgloss/libnosys/kill.c
index c583287..27c4f8c 100644
--- a/libgloss/libnosys/kill.c
+++ b/libgloss/libnosys/kill.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_kill, (pid, sig),
- int pid,
+_kill (int pid,
int sig)
{
errno = ENOSYS;
diff --git a/libgloss/libnosys/link.c b/libgloss/libnosys/link.c
index b27b5bc..0bae1ef 100644
--- a/libgloss/libnosys/link.c
+++ b/libgloss/libnosys/link.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_link, (existing, new),
- char *existing,
+_link (char *existing,
char *new)
{
errno = ENOSYS;
diff --git a/libgloss/libnosys/lseek.c b/libgloss/libnosys/lseek.c
index f583a14..fcc7be4 100644
--- a/libgloss/libnosys/lseek.c
+++ b/libgloss/libnosys/lseek.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_lseek, (file, ptr, dir),
- int file,
+_lseek (int file,
int ptr,
int dir)
{
diff --git a/libgloss/libnosys/open.c b/libgloss/libnosys/open.c
index ee8bece..0c864a5 100644
--- a/libgloss/libnosys/open.c
+++ b/libgloss/libnosys/open.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_open, (file, flags, mode),
- char *file,
+_open (char *file,
int flags,
int mode)
{
diff --git a/libgloss/libnosys/read.c b/libgloss/libnosys/read.c
index 0ff3a9a..cfc2812 100644
--- a/libgloss/libnosys/read.c
+++ b/libgloss/libnosys/read.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_read, (file, ptr, len),
- int file,
+_read (int file,
char *ptr,
int len)
{
diff --git a/libgloss/libnosys/readlink.c b/libgloss/libnosys/readlink.c
index 00f3f89..014c956 100644
--- a/libgloss/libnosys/readlink.c
+++ b/libgloss/libnosys/readlink.c
@@ -12,8 +12,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_readlink, (path, buf, bufsize),
- const char *path,
+_readlink (const char *path,
char *buf,
size_t bufsize)
{
diff --git a/libgloss/libnosys/stat.c b/libgloss/libnosys/stat.c
index 9fa7003..734f672 100644
--- a/libgloss/libnosys/stat.c
+++ b/libgloss/libnosys/stat.c
@@ -13,8 +13,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_stat, (file, st),
- const char *file,
+_stat (const char *file,
struct stat *st)
{
errno = ENOSYS;
diff --git a/libgloss/libnosys/symlink.c b/libgloss/libnosys/symlink.c
index cf7a158..bebfbba 100644
--- a/libgloss/libnosys/symlink.c
+++ b/libgloss/libnosys/symlink.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_symlink, (path1, path2),
- const char *path1,
+_symlink (const char *path1,
const char *path2)
{
errno = ENOSYS;
diff --git a/libgloss/libnosys/times.c b/libgloss/libnosys/times.c
index f205e50..908cd8d 100644
--- a/libgloss/libnosys/times.c
+++ b/libgloss/libnosys/times.c
@@ -12,8 +12,7 @@ extern int errno;
#include "warning.h"
clock_t
-_DEFUN (_times, (buf),
- struct tms *buf)
+_times (struct tms *buf)
{
errno = ENOSYS;
return -1;
diff --git a/libgloss/libnosys/unlink.c b/libgloss/libnosys/unlink.c
index c543709..3414bf8 100644
--- a/libgloss/libnosys/unlink.c
+++ b/libgloss/libnosys/unlink.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_unlink, (name),
- char *name)
+_unlink (char *name)
{
errno = ENOSYS;
return -1;
diff --git a/libgloss/libnosys/wait.c b/libgloss/libnosys/wait.c
index 2a785be..029dcbc 100644
--- a/libgloss/libnosys/wait.c
+++ b/libgloss/libnosys/wait.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_wait, (status),
- int *status)
+_wait (int *status)
{
errno = ENOSYS;
return -1;
diff --git a/libgloss/libnosys/write.c b/libgloss/libnosys/write.c
index 0ada770..33d727b 100644
--- a/libgloss/libnosys/write.c
+++ b/libgloss/libnosys/write.c
@@ -11,8 +11,7 @@ extern int errno;
#include "warning.h"
int
-_DEFUN (_write, (file, ptr, len),
- int file,
+_write (int file,
char *ptr,
int len)
{