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 /libgloss/arm | |
parent | e13e191b6052a62701d8fb22c3660df23d3b6ec1 (diff) |
ansification: remove _PARAMS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'libgloss/arm')
-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 |
4 files changed, 37 insertions, 37 deletions
diff --git a/libgloss/arm/_exit.c b/libgloss/arm/_exit.c index ed0087637..ca2d21c43 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 8871d3c36..fc77e8097 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 72cb838dc..67eb36b3f 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 80713680b..b76858fc9 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"); |