ansification: remove _PARAMS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
@ -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));
|
||||
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 _PARAMS ((int));
|
||||
static int error _PARAMS ((int));
|
||||
static int get_errno _PARAMS ((void));
|
||||
static int remap_handle _PARAMS ((int));
|
||||
static int findslot _PARAMS ((int));
|
||||
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");
|
||||
|
@ -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[];
|
||||
|
@ -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
|
||||
|
@ -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. */
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user