diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-04 05:41:16 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 20:47:13 +0300 |
commit | eea249da3bc81776246ad5163f5eb887afdd3659 (patch) | |
tree | 610f12206d520381c1ef4370720522f304bed2c8 /newlib/libc/sys | |
parent | e13e191b6052a62701d8fb22c3660df23d3b6ec1 (diff) |
ansification: remove _PARAMS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/arm/syscalls.c | 62 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/errno.h | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/fcntl.h | 10 | ||||
-rw-r--r-- | newlib/libc/sys/phoenix/sys/errno.h | 2 | ||||
-rw-r--r-- | newlib/libc/sys/sparc64/sys/fcntl.h | 6 |
5 files changed, 41 insertions, 41 deletions
diff --git a/newlib/libc/sys/arm/syscalls.c b/newlib/libc/sys/arm/syscalls.c index 04dde4558..474618dd7 100644 --- a/newlib/libc/sys/arm/syscalls.c +++ b/newlib/libc/sys/arm/syscalls.c @@ -18,37 +18,37 @@ #include "swi.h" /* Forward prototypes. */ -int _system _PARAMS ((const char *)); -int _rename _PARAMS ((const char *, const char *)); -int _isatty _PARAMS ((int)); -clock_t _times _PARAMS ((struct tms *)); -int _gettimeofday _PARAMS ((struct timeval *, void *)); -void _raise _PARAMS ((void)); -int _unlink _PARAMS ((const char *)); -int _link _PARAMS ((void)); -int _stat _PARAMS ((const char *, struct stat *)); -int _fstat _PARAMS ((int, struct stat *)); -caddr_t _sbrk _PARAMS ((int)); -int _getpid _PARAMS ((int)); -int _kill _PARAMS ((int, int)); -void _exit _PARAMS ((int)); -int _close _PARAMS ((int)); -int _swiclose _PARAMS ((int)); -int _open _PARAMS ((const char *, int, ...)); -int _swiopen _PARAMS ((const char *, int)); -int _write _PARAMS ((int, char *, int)); -int _swiwrite _PARAMS ((int, char *, int)); -int _lseek _PARAMS ((int, int, int)); -int _swilseek _PARAMS ((int, int, int)); -int _read _PARAMS ((int, char *, int)); -int _swiread _PARAMS ((int, char *, int)); -void initialise_monitor_handles _PARAMS ((void)); - -static int wrap _PARAMS ((int)); -static int error _PARAMS ((int)); -static int get_errno _PARAMS ((void)); -static int remap_handle _PARAMS ((int)); -static int findslot _PARAMS ((int)); +int _system (const char *); +int _rename (const char *, const char *); +int _isatty (int); +clock_t _times (struct tms *); +int _gettimeofday (struct timeval *, void *); +void _raise (void); +int _unlink (const char *); +int _link (void); +int _stat (const char *, struct stat *); +int _fstat (int, struct stat *); +caddr_t _sbrk (int); +int _getpid (int); +int _kill (int, int); +void _exit (int); +int _close (int); +int _swiclose (int); +int _open (const char *, int, ...); +int _swiopen (const char *, int); +int _write (int, char *, int); +int _swiwrite (int, char *, int); +int _lseek (int, int, int); +int _swilseek (int, int, int); +int _read (int, char *, int); +int _swiread (int, char *, int); +void initialise_monitor_handles (void); + +static int wrap (int); +static int error (int); +static int get_errno (void); +static int remap_handle (int); +static int findslot (int); /* Register name faking - works in collusion with the linker. */ register char * stack_ptr asm ("sp"); diff --git a/newlib/libc/sys/linux/sys/errno.h b/newlib/libc/sys/linux/sys/errno.h index 86a6968fe..049afc18a 100644 --- a/newlib/libc/sys/linux/sys/errno.h +++ b/newlib/libc/sys/linux/sys/errno.h @@ -12,7 +12,7 @@ #ifndef _REENT_ONLY #define errno (*__errno()) -extern int *__errno _PARAMS ((void)); +extern int *__errno (void); #endif extern __IMPORT const char * const _sys_errlist[]; diff --git a/newlib/libc/sys/linux/sys/fcntl.h b/newlib/libc/sys/linux/sys/fcntl.h index 78914fd8f..0fb8ae970 100644 --- a/newlib/libc/sys/linux/sys/fcntl.h +++ b/newlib/libc/sys/linux/sys/fcntl.h @@ -13,17 +13,17 @@ #include <_ansi.h> -extern int creat _PARAMS ((const char *, mode_t)); -extern int _open _PARAMS ((const char *, int, ...)); +extern int creat (const char *, mode_t); +extern int _open (const char *, int, ...); #ifdef __KERNEL_PROTOTYPES extern int open(const char *pathname, int flags, mode_t mode); extern int fcntl(int fd, int cmd, long arg); #else -extern int open _PARAMS ((const char *, int, ...)); -extern int fcntl _PARAMS ((int, int, ...)); +extern int open (const char *, int, ...); +extern int fcntl (int, int, ...); #endif -extern int _fcntl _PARAMS ((int, int, ...)); +extern int _fcntl (int, int, ...); #endif diff --git a/newlib/libc/sys/phoenix/sys/errno.h b/newlib/libc/sys/phoenix/sys/errno.h index 82aab6d0c..6d5b001c3 100644 --- a/newlib/libc/sys/phoenix/sys/errno.h +++ b/newlib/libc/sys/phoenix/sys/errno.h @@ -30,7 +30,7 @@ #ifndef _REENT_ONLY #define errno (*__errno()) -extern int *__errno _PARAMS ((void)); +extern int *__errno (void); #endif /* Don't use these variables directly. Use strerror instead. */ diff --git a/newlib/libc/sys/sparc64/sys/fcntl.h b/newlib/libc/sys/sparc64/sys/fcntl.h index b52932b3f..67d2b4072 100644 --- a/newlib/libc/sys/sparc64/sys/fcntl.h +++ b/newlib/libc/sys/sparc64/sys/fcntl.h @@ -167,9 +167,9 @@ struct eflock { #include <sys/types.h> #include <sys/stat.h> /* sigh. for the mode bits for open/creat */ -extern int open _PARAMS ((const char *, int, ...)); -extern int creat _PARAMS ((const char *, mode_t)); -extern int fcntl _PARAMS ((int, int, ...)); +extern int open (const char *, int, ...); +extern int creat (const char *, mode_t); +extern int fcntl (int, int, ...); #ifdef __cplusplus } |