diff options
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/alpha/crt0.c | 12 | ||||
-rw-r--r-- | lib/csu/c++/c++rt0.c | 20 | ||||
-rw-r--r-- | lib/csu/common.c | 4 | ||||
-rw-r--r-- | lib/csu/common.h | 20 | ||||
-rw-r--r-- | lib/csu/common_elf/crtbegin.c | 10 | ||||
-rw-r--r-- | lib/csu/common_elf/crtbeginS.c | 10 | ||||
-rw-r--r-- | lib/csu/common_elf/crtend.c | 6 | ||||
-rw-r--r-- | lib/csu/common_elf/crtendS.c | 6 | ||||
-rw-r--r-- | lib/csu/hppa/crt0.c | 14 | ||||
-rw-r--r-- | lib/csu/i386/crt0.c | 6 | ||||
-rw-r--r-- | lib/csu/m68k/crt0.c | 6 | ||||
-rw-r--r-- | lib/csu/sparc/crt0.c | 10 | ||||
-rw-r--r-- | lib/csu/sparc64/crt0.c | 10 | ||||
-rw-r--r-- | lib/csu/vax/crt0.c | 6 |
14 files changed, 70 insertions, 70 deletions
diff --git a/lib/csu/alpha/crt0.c b/lib/csu/alpha/crt0.c index 41e18ad4acc..b3ae7d48bb1 100644 --- a/lib/csu/alpha/crt0.c +++ b/lib/csu/alpha/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.6 2001/02/03 23:16:16 art Exp $ */ +/* $OpenBSD: crt0.c,v 1.7 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crt0.c,v 1.1 1996/09/12 16:59:02 cgd Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -32,26 +32,26 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: crt0.c,v 1.6 2001/02/03 23:16:16 art Exp $"; +static char rcsid[] = "$OpenBSD: crt0.c,v 1.7 2002/02/16 21:27:20 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdlib.h> -static char *_strrchr __P((char *, char)); +static char *_strrchr(char *, char); char **environ; char *__progname = ""; #ifdef MCRT0 -extern void monstartup __P((u_long, u_long)); -extern void _mcleanup __P((void)); +extern void monstartup(u_long, u_long); +extern void _mcleanup(void); extern unsigned char _etext, _eprol; #endif /* MCRT0 */ void __start(sp, cleanup, obj) char **sp; - void (*cleanup) __P((void)); /* from shared loader */ + void (*cleanup)(void); /* from shared loader */ const void *obj; /* from shared loader */ { long argc; diff --git a/lib/csu/c++/c++rt0.c b/lib/csu/c++/c++rt0.c index 4e22ced6537..7219c32ca58 100644 --- a/lib/csu/c++/c++rt0.c +++ b/lib/csu/c++/c++rt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: c++rt0.c,v 1.6 1999/02/01 17:02:47 pefo Exp $ */ +/* $OpenBSD: c++rt0.c,v 1.7 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: c++rt0.c,v 1.6 1997/12/29 15:36:50 pk Exp $ */ /* @@ -48,18 +48,18 @@ * include a dummy local function in the set. This keeps references * to these symbols local to the shared object this module is linked to. */ -static void dummy __P((void)) { return; } +static void dummy(void) { return; } /* Note: this is "a.out" dependent. */ __asm(".stabs \"___CTOR_LIST__\",22,0,0,_dummy"); __asm(".stabs \"___DTOR_LIST__\",22,0,0,_dummy"); #endif -extern void (*__CTOR_LIST__[]) __P((void)); -extern void (*__DTOR_LIST__[]) __P((void)); +extern void (*__CTOR_LIST__[])(void); +extern void (*__DTOR_LIST__[])(void); -static void __dtors __P((void)); -static void __ctors __P((void)); +static void __dtors(void); +static void __ctors(void); static void __dtors() @@ -81,11 +81,11 @@ __ctors() } #if !defined(NATIVE_EXEC_ELF) -extern void __init __P((void)) asm(".init"); -extern void __fini __P((void)) asm(".fini"); +extern void __init(void) asm(".init"); +extern void __fini(void) asm(".fini"); #else -extern void __init __P((void)) __attribute__ ((section (".init"))); -extern void __fini __P((void)) __attribute__ ((section (".fini"))); +extern void __init(void) __attribute__ ((section (".init"))); +extern void __fini(void) __attribute__ ((section (".fini"))); #endif void diff --git a/lib/csu/common.c b/lib/csu/common.c index 5fd41c70edd..7862270eab5 100644 --- a/lib/csu/common.c +++ b/lib/csu/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.7 2001/06/01 18:17:56 deraadt Exp $ */ +/* $OpenBSD: common.c,v 1.8 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: common.c,v 1.4 1995/09/23 22:34:20 pk Exp $ */ /* * Copyright (c) 1993,1995 Paul Kranenburg @@ -33,7 +33,7 @@ #ifdef DYNAMIC -typedef int (*rtld_entry_fn) __P((int, struct crt_ldso *)); +typedef int (*rtld_entry_fn)(int, struct crt_ldso *); static struct ld_entry *ld_entry; static void diff --git a/lib/csu/common.h b/lib/csu/common.h index 11eafb43c2d..11badd67c30 100644 --- a/lib/csu/common.h +++ b/lib/csu/common.h @@ -1,4 +1,4 @@ -/* $OpenBSD: common.h,v 1.2 1998/05/14 17:36:26 niklas Exp $ */ +/* $OpenBSD: common.h,v 1.3 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: common.h,v 1.3 1995/06/15 21:41:48 pk Exp $ */ /* @@ -55,13 +55,13 @@ #include <dlfcn.h> extern struct _dynamic _DYNAMIC; -static void __load_rtld __P((struct _dynamic *)); -extern int __syscall __P((int, ...)); -int _callmain __P((void)); -static char *_strrchr __P((char *, char)); +static void __load_rtld(struct _dynamic *); +extern int __syscall(int, ...); +int _callmain(void); +static char *_strrchr(char *, char); #ifdef DEBUG -static char *_getenv __P((char *)); -static int _strncmp __P((char *, char *, int)); +static char *_getenv(char *); +static int _strncmp(char *, char *, int); #endif #ifdef sun @@ -96,10 +96,10 @@ static int _strncmp __P((char *, char *, int)); #endif /* DYNAMIC */ -extern int main __P((int, char **, char **)); +extern int main(int, char **, char **); #ifdef MCRT0 -extern void monstartup __P((u_long, u_long)); -extern void _mcleanup __P((void)); +extern void monstartup(u_long, u_long); +extern void _mcleanup(void); #endif char **environ; diff --git a/lib/csu/common_elf/crtbegin.c b/lib/csu/common_elf/crtbegin.c index b5be9e6f014..cb7da3b2a14 100644 --- a/lib/csu/common_elf/crtbegin.c +++ b/lib/csu/common_elf/crtbegin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crtbegin.c,v 1.5 2001/02/03 23:11:23 art Exp $ */ +/* $OpenBSD: crtbegin.c,v 1.6 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */ /* @@ -43,13 +43,13 @@ #include "os-note-elf.h" -static void (*__CTOR_LIST__[1]) __P((void)) +static void (*__CTOR_LIST__[1])(void) __attribute__((section(".ctors"))) = { (void *)-1 }; /* XXX */ -static void (*__DTOR_LIST__[1]) __P((void)) +static void (*__DTOR_LIST__[1])(void) __attribute__((section(".dtors"))) = { (void *)-1 }; /* XXX */ -static void __dtors __P((void)); -static void __ctors __P((void)); +static void __dtors(void); +static void __ctors(void); static void __dtors() diff --git a/lib/csu/common_elf/crtbeginS.c b/lib/csu/common_elf/crtbeginS.c index 6945484f55c..74c21a888c9 100644 --- a/lib/csu/common_elf/crtbeginS.c +++ b/lib/csu/common_elf/crtbeginS.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crtbeginS.c,v 1.1 2001/05/28 21:38:13 drahn Exp $ */ +/* $OpenBSD: crtbeginS.c,v 1.2 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */ /* @@ -42,13 +42,13 @@ */ #include <stdlib.h> -static void (*__CTOR_LIST__[0]) __P((void)) +static void (*__CTOR_LIST__[0])(void) __attribute__((section(".ctors"))) = { (void *)-1 }; /* XXX */ -static void (*__DTOR_LIST__[0]) __P((void)) +static void (*__DTOR_LIST__[0])(void) __attribute__((section(".dtors"))) = { (void *)-1 }; /* XXX */ -static void __dtors __P((void)); -static void __ctors __P((void)); +static void __dtors(void); +static void __ctors(void); void __dtors() diff --git a/lib/csu/common_elf/crtend.c b/lib/csu/common_elf/crtend.c index a44627276a2..e81d17481f2 100644 --- a/lib/csu/common_elf/crtend.c +++ b/lib/csu/common_elf/crtend.c @@ -1,13 +1,13 @@ -/* $OpenBSD: crtend.c,v 1.1 2001/02/03 22:47:01 art Exp $ */ +/* $OpenBSD: crtend.c,v 1.2 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crtend.c,v 1.1 1996/09/12 16:59:04 cgd Exp $ */ #ifndef ECOFF_COMPAT #include <sys/cdefs.h> -static void (*__CTOR_LIST__[1]) __P((void)) +static void (*__CTOR_LIST__[1])(void) __attribute__((section(".ctors"))) = { (void *)0 }; /* XXX */ -static void (*__DTOR_LIST__[1]) __P((void)) +static void (*__DTOR_LIST__[1])(void) __attribute__((section(".dtors"))) = { (void *)0 }; /* XXX */ #endif /* !ECOFF_COMPAT */ diff --git a/lib/csu/common_elf/crtendS.c b/lib/csu/common_elf/crtendS.c index 2b3dbb174a1..264189126e8 100644 --- a/lib/csu/common_elf/crtendS.c +++ b/lib/csu/common_elf/crtendS.c @@ -1,9 +1,9 @@ -/* $OpenBSD: crtendS.c,v 1.1 2001/05/28 21:38:13 drahn Exp $ */ +/* $OpenBSD: crtendS.c,v 1.2 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crtend.c,v 1.1 1997/04/16 19:38:24 thorpej Exp $ */ #include <sys/cdefs.h> -static void (*__CTOR_LIST__[1]) __P((void)) +static void (*__CTOR_LIST__[1])(void) __attribute__((section(".ctors"))) = { (void *)0 }; /* XXX */ -static void (*__DTOR_LIST__[1]) __P((void)) +static void (*__DTOR_LIST__[1])(void) __attribute__((section(".dtors"))) = { (void *)0 }; /* XXX */ diff --git a/lib/csu/hppa/crt0.c b/lib/csu/hppa/crt0.c index 6df1e08e659..e578e3bdd0c 100644 --- a/lib/csu/hppa/crt0.c +++ b/lib/csu/hppa/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.2 2002/02/02 20:45:58 mickey Exp $ */ +/* $OpenBSD: crt0.c,v 1.3 2002/02/16 21:27:20 millert Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -35,7 +35,7 @@ int global __asm ("$global$") = 0; int sh_func_adrs __asm ("$$sh_func_adrs") = 0; #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$OpenBSD: crt0.c,v 1.2 2002/02/02 20:45:58 mickey Exp $"; +static const char rcsid[] = "$OpenBSD: crt0.c,v 1.3 2002/02/16 21:27:20 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdlib.h> @@ -55,12 +55,12 @@ typedef char Obj_Entry; char **environ; -extern void __init __P((void)); -extern void __fini __P((void)); +extern void __init(void); +extern void __fini(void); #ifdef MCRT0 -extern void monstartup __P((u_long, u_long)); -extern void _mcleanup __P((void)); +extern void monstartup(u_long, u_long); +extern void _mcleanup(void); extern u_int etext, eprol; #endif /* MCRT0 */ @@ -69,7 +69,7 @@ void __start(char **, void (*)(void), const Obj_Entry *); void __start(sp, cleanup, obj) char **sp; - void (*cleanup) __P((void)); /* from shared loader */ + void (*cleanup)(void); /* from shared loader */ const Obj_Entry *obj; /* from shared loader */ { struct ps_strings *arginfo = (struct ps_strings *)sp; diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c index 3d17d1c3c03..bfbef1874a1 100644 --- a/lib/csu/i386/crt0.c +++ b/lib/csu/i386/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.5 2001/08/12 12:03:01 heko Exp $ */ +/* $OpenBSD: crt0.c,v 1.6 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crt0.c,v 1.20 1995/06/03 13:16:08 pk Exp $ */ /* @@ -34,7 +34,7 @@ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: crt0.c,v 1.5 2001/08/12 12:03:01 heko Exp $"; +static char rcsid[] = "$OpenBSD: crt0.c,v 1.6 2002/02/16 21:27:20 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -42,7 +42,7 @@ static char rcsid[] = "$OpenBSD: crt0.c,v 1.5 2001/08/12 12:03:01 heko Exp $"; #include "common.h" -extern void start __P((void)) asm("start"); +extern void start(void) asm("start"); void start() diff --git a/lib/csu/m68k/crt0.c b/lib/csu/m68k/crt0.c index dc590f76057..06ab3cdcb54 100644 --- a/lib/csu/m68k/crt0.c +++ b/lib/csu/m68k/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.4 2001/08/12 12:03:01 heko Exp $ */ +/* $OpenBSD: crt0.c,v 1.5 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crt0.c,v 1.14 1995/06/03 13:16:11 pk Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: crt0.c,v 1.4 2001/08/12 12:03:01 heko Exp $"; +static char rcsid[] = "$OpenBSD: crt0.c,v 1.5 2002/02/16 21:27:20 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -41,7 +41,7 @@ static char rcsid[] = "$OpenBSD: crt0.c,v 1.4 2001/08/12 12:03:01 heko Exp $"; #include "common.h" -extern void start __P((void)) asm("start"); +extern void start(void) asm("start"); void start() diff --git a/lib/csu/sparc/crt0.c b/lib/csu/sparc/crt0.c index 7e5d5e030ca..4a4717f64f5 100644 --- a/lib/csu/sparc/crt0.c +++ b/lib/csu/sparc/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.3 1999/08/20 14:11:36 niklas Exp $ */ +/* $OpenBSD: crt0.c,v 1.4 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crt0.c,v 1.15 1995/06/15 21:41:55 pk Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: crt0.c,v 1.3 1999/08/20 14:11:36 niklas Exp $"; +static char rcsid[] = "$OpenBSD: crt0.c,v 1.4 2002/02/16 21:27:20 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -43,10 +43,10 @@ static char rcsid[] = "$OpenBSD: crt0.c,v 1.3 1999/08/20 14:11:36 niklas Exp $"; extern unsigned char etext; extern unsigned char eprol asm ("eprol"); -extern void start __P((void)) asm("start"); +extern void start(void) asm("start"); #if defined(sun) && defined(sparc) -static void __call __P((void)); +static void __call(void); #endif #ifdef BSD @@ -54,7 +54,7 @@ static void __call __P((void)); #define mmap(addr, len, prot, flags, fd, off) \ __syscall2((quad_t)SYS_mmap, (addr), (len), (prot), (flags), \ (fd), 0, (off_t)(off)) -extern int __syscall2 __P((quad_t, ...)); +extern int __syscall2(quad_t, ...); #endif asm (" .global start"); diff --git a/lib/csu/sparc64/crt0.c b/lib/csu/sparc64/crt0.c index db48fc43630..bc0b88d99fa 100644 --- a/lib/csu/sparc64/crt0.c +++ b/lib/csu/sparc64/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.2 2001/09/02 14:00:39 art Exp $ */ +/* $OpenBSD: crt0.c,v 1.3 2002/02/16 21:27:20 millert Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -33,14 +33,14 @@ #include <stdlib.h> -static char *_strrchr __P((char *, char)); +static char *_strrchr(char *, char); char **environ; char *__progname = ""; #ifdef MCRT0 -extern void monstartup __P((u_long, u_long)); -extern void _mcleanup __P((void)); +extern void monstartup(u_long, u_long); +extern void _mcleanup(void); extern unsigned char _etext, _eprol; #endif /* MCRT0 */ @@ -59,7 +59,7 @@ __start: "); -void ___start __P((char **, void (*) __P((void)), const void *)); +void ___start __P((char **, void (*)(void), const void *)); void ___start(char **sp, void (*cleanup)(void), const void *obj) diff --git a/lib/csu/vax/crt0.c b/lib/csu/vax/crt0.c index e2ea4200ba1..b42b65417ac 100644 --- a/lib/csu/vax/crt0.c +++ b/lib/csu/vax/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.4 2001/08/12 12:03:01 heko Exp $ */ +/* $OpenBSD: crt0.c,v 1.5 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: crt0.c,v 1.1.2.1 1995/10/15 19:40:04 ragge Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: crt0.c,v 1.4 2001/08/12 12:03:01 heko Exp $"; +static char rcsid[] = "$OpenBSD: crt0.c,v 1.5 2002/02/16 21:27:20 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -41,7 +41,7 @@ static char rcsid[] = "$OpenBSD: crt0.c,v 1.4 2001/08/12 12:03:01 heko Exp $"; #include "common.h" -extern void start __P((void)) asm("start"); +extern void start(void) asm("start"); void start() |