diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-03 20:41:16 -0600 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 11:47:13 -0600 |
commit | eea249da3bc81776246ad5163f5eb887afdd3659 (patch) | |
tree | 610f12206d520381c1ef4370720522f304bed2c8 /libgloss | |
parent | e13e191b6052a62701d8fb22c3660df23d3b6ec1 (diff) | |
download | newlib-eea249da3bc81776246ad5163f5eb887afdd3659.zip newlib-eea249da3bc81776246ad5163f5eb887afdd3659.tar.gz newlib-eea249da3bc81776246ad5163f5eb887afdd3659.tar.bz2 |
ansification: remove _PARAMS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/aarch64/_exit.c | 2 | ||||
-rw-r--r-- | libgloss/aarch64/_kill.c | 2 | ||||
-rw-r--r-- | libgloss/aarch64/svc.h | 6 | ||||
-rw-r--r-- | libgloss/aarch64/syscalls.c | 62 | ||||
-rw-r--r-- | libgloss/arm/_exit.c | 4 | ||||
-rw-r--r-- | libgloss/arm/_kill.c | 2 | ||||
-rw-r--r-- | libgloss/arm/swi.h | 6 | ||||
-rw-r--r-- | libgloss/arm/syscalls.c | 62 |
8 files changed, 73 insertions, 73 deletions
diff --git a/libgloss/aarch64/_exit.c b/libgloss/aarch64/_exit.c index 1a6b015..16564bb 100644 --- a/libgloss/aarch64/_exit.c +++ b/libgloss/aarch64/_exit.c @@ -26,7 +26,7 @@ #include <_ansi.h> #include "svc.h" -void _exit _PARAMS ((int)); +void _exit (int); __attribute__ ((noreturn)) void _exit (int status) diff --git a/libgloss/aarch64/_kill.c b/libgloss/aarch64/_kill.c index 1d42371..8109ace 100644 --- a/libgloss/aarch64/_kill.c +++ b/libgloss/aarch64/_kill.c @@ -28,7 +28,7 @@ #include <errno.h> #include "svc.h" -int _kill _PARAMS ((int, int)); +int _kill (int, int); int _kill (int pid, int sig) diff --git a/libgloss/aarch64/svc.h b/libgloss/aarch64/svc.h index 60bd00f..2c3da13 100644 --- a/libgloss/aarch64/svc.h +++ b/libgloss/aarch64/svc.h @@ -72,9 +72,9 @@ #define SH_EXT_STDOUT_STDERR_BITNUM 0x1 #if !defined (__ASSEMBLER__) -extern int _get_semihosting_exts _PARAMS ((char*, int, int)); -extern int _has_ext_exit_extended _PARAMS ((void)); -extern int _has_ext_stdout_stderr _PARAMS ((void)); +extern int _get_semihosting_exts (char*, int, int); +extern int _has_ext_exit_extended (void); +extern int _has_ext_stdout_stderr (void); #endif #if defined(ARM_RDI_MONITOR) && !defined(__ASSEMBLER__) diff --git a/libgloss/aarch64/syscalls.c b/libgloss/aarch64/syscalls.c index 4de4e0d..5aeb3d0 100644 --- a/libgloss/aarch64/syscalls.c +++ b/libgloss/aarch64/syscalls.c @@ -47,37 +47,37 @@ (param_block_t)(unsigned long) (PTR) /* 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 *)); -int _unlink _PARAMS ((const char *)); -int _link _PARAMS ((void)); -int _stat _PARAMS ((const char *, struct stat *)); -int _fstat _PARAMS ((int, struct stat *)); -int _swistat _PARAMS ((int fd, struct stat * st)); -caddr_t _sbrk _PARAMS ((int)); -int _getpid _PARAMS ((int)); -int _close _PARAMS ((int)); -clock_t _clock _PARAMS ((void)); -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 checkerror _PARAMS ((int)); -static int error _PARAMS ((int)); -static int get_errno _PARAMS ((void)); +int _system (const char *); +int _rename (const char *, const char *); +int _isatty (int); +clock_t _times (struct tms *); +int _gettimeofday (struct timeval *, void *); +int _unlink (const char *); +int _link (void); +int _stat (const char *, struct stat *); +int _fstat (int, struct stat *); +int _swistat (int fd, struct stat * st); +caddr_t _sbrk (int); +int _getpid (int); +int _close (int); +clock_t _clock (void); +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 checkerror (int); +static int error (int); +static int get_errno (void); /* Semihosting utilities. */ -static void initialise_semihosting_exts _PARAMS ((void)); +static void initialise_semihosting_exts (void); /* Struct used to keep track of the file position, just so we can implement fseek(fh,x,SEEK_CUR). */ @@ -108,8 +108,8 @@ struct fdent static struct fdent openfiles[MAX_OPEN_FILES]; -static struct fdent *findslot _PARAMS ((int)); -static int newslot _PARAMS ((void)); +static struct fdent *findslot (int); +static int newslot (void); /* Register name faking - works in collusion with the linker. */ #ifdef __ILP32__ diff --git a/libgloss/arm/_exit.c b/libgloss/arm/_exit.c index ed00876..ca2d21c 100644 --- a/libgloss/arm/_exit.c +++ b/libgloss/arm/_exit.c @@ -1,7 +1,7 @@ #include <_ansi.h> -int _kill _PARAMS ((int, int)); -void _exit _PARAMS ((int)); +int _kill (int, int); +void _exit (int); void _exit (int status) diff --git a/libgloss/arm/_kill.c b/libgloss/arm/_kill.c index 8871d3c..fc77e80 100644 --- a/libgloss/arm/_kill.c +++ b/libgloss/arm/_kill.c @@ -2,7 +2,7 @@ #include <signal.h> #include "swi.h" -int _kill _PARAMS ((int, int)); +int _kill (int, int); int _kill (int pid, int sig) diff --git a/libgloss/arm/swi.h b/libgloss/arm/swi.h index 72cb838..67eb36b 100644 --- a/libgloss/arm/swi.h +++ b/libgloss/arm/swi.h @@ -96,9 +96,9 @@ #define SH_EXT_STDOUT_STDERR_BITNUM 0x1 #if !defined (__ASSEMBLER__) -extern int _get_semihosting_exts _PARAMS ((char*, int, int)); -extern int _has_ext_exit_extended _PARAMS ((void)); -extern int _has_ext_stdout_stderr _PARAMS ((void)); +extern int _get_semihosting_exts (char*, int, int); +extern int _has_ext_exit_extended (void); +extern int _has_ext_stdout_stderr (void); #endif #if defined(ARM_RDI_MONITOR) && !defined(__ASSEMBLER__) diff --git a/libgloss/arm/syscalls.c b/libgloss/arm/syscalls.c index 8071368..b76858f 100644 --- a/libgloss/arm/syscalls.c +++ b/libgloss/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 *)); -int _unlink _PARAMS ((const char *)); -int _link _PARAMS ((void)); -int _stat _PARAMS ((const char *, struct stat *)); -int _fstat _PARAMS ((int, struct stat *)); -int _swistat _PARAMS ((int fd, struct stat * st)); -caddr_t _sbrk _PARAMS ((int)); -int _getpid _PARAMS ((int)); -int _close _PARAMS ((int)); -clock_t _clock _PARAMS ((void)); -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 checkerror _PARAMS ((int)); -static int error _PARAMS ((int)); -static int get_errno _PARAMS ((void)); +int _system (const char *); +int _rename (const char *, const char *); +int _isatty (int); +clock_t _times (struct tms *); +int _gettimeofday (struct timeval *, void *); +int _unlink (const char *); +int _link (void); +int _stat (const char *, struct stat *); +int _fstat (int, struct stat *); +int _swistat (int fd, struct stat * st); +caddr_t _sbrk (int); +int _getpid (int); +int _close (int); +clock_t _clock (void); +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 checkerror (int); +static int error (int); +static int get_errno (void); /* Semihosting utilities. */ -static void initialise_semihosting_exts _PARAMS ((void)); +static void initialise_semihosting_exts (void); /* Struct used to keep track of the file position, just so we can implement fseek(fh,x,SEEK_CUR). */ @@ -77,8 +77,8 @@ struct fdent static struct fdent openfiles [MAX_OPEN_FILES]; -static struct fdent* findslot _PARAMS ((int)); -static int newslot _PARAMS ((void)); +static struct fdent* findslot (int); +static int newslot (void); /* Register name faking - works in collusion with the linker. */ register char * stack_ptr asm ("sp"); |