diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-09-17 12:53:45 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-09-17 12:53:45 +0000 |
commit | 22c8a1e4bbf7d6cdab4954f884809837923c84b7 (patch) | |
tree | a6b38b0b6a6d3905bccf13c0dc9291ea48209a98 /lib/csu | |
parent | 5cef64cba2704066aeb0e7e430762fb563e958c3 (diff) |
use a different name for __syscall(); millert@ miod@ niklas@ ok
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/common.h | 20 | ||||
-rw-r--r-- | lib/csu/i386/crt0.c | 6 | ||||
-rw-r--r-- | lib/csu/m68k/crt0.c | 6 | ||||
-rw-r--r-- | lib/csu/vax/crt0.c | 6 |
4 files changed, 19 insertions, 19 deletions
diff --git a/lib/csu/common.h b/lib/csu/common.h index 435a16ef936..fbde48343c8 100644 --- a/lib/csu/common.h +++ b/lib/csu/common.h @@ -1,4 +1,4 @@ -/* $OpenBSD: common.h,v 1.4 2002/07/22 19:15:39 art Exp $ */ +/* $OpenBSD: common.h,v 1.5 2002/09/17 12:53:44 mickey Exp $ */ /* $NetBSD: common.h,v 1.3 1995/06/15 21:41:48 pk Exp $ */ /* @@ -52,7 +52,7 @@ extern struct _dynamic _DYNAMIC; static void __load_rtld(struct _dynamic *); -extern int __syscall(int, ...); +extern int __syscall2(int, ...); int _callmain(void); static char *_strrchr(char *, char); #ifdef DEBUG @@ -65,15 +65,15 @@ static int _strncmp(char *, char *, int); /* * We need these system calls, but can't use library stubs */ -#define _exit(v) __syscall(SYS_exit, (v)) -#define open(name, f, m) __syscall(SYS_open, (name), (f), (m)) -#define close(fd) __syscall(SYS_close, (fd)) -#define read(fd, s, n) __syscall(SYS_read, (fd), (s), (n)) -#define write(fd, s, n) __syscall(SYS_write, (fd), (s), (n)) -#define dup(fd) __syscall(SYS_dup, (fd)) -#define dup2(fd, fdnew) __syscall(SYS_dup2, (fd), (fdnew)) +#define _exit(v) __syscall2(SYS_exit, (v)) +#define open(name, f, m) __syscall2(SYS_open, (name), (f), (m)) +#define close(fd) __syscall2(SYS_close, (fd)) +#define read(fd, s, n) __syscall2(SYS_read, (fd), (s), (n)) +#define write(fd, s, n) __syscall2(SYS_write, (fd), (s), (n)) +#define dup(fd) __syscall2(SYS_dup, (fd)) +#define dup2(fd, fdnew) __syscall2(SYS_dup2, (fd), (fdnew)) #define mmap(addr, len, prot, flags, fd, off) \ - __syscall(SYS___syscall, (quad_t)SYS_mmap, (addr), (len), (prot), (flags), \ + __syscall2(SYS___syscall, (quad_t)SYS_mmap, (addr), (len), (prot), (flags), \ (fd), 0, (off_t)(off)) #define _FATAL(str) \ diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c index bfbef1874a1..d3408768d6d 100644 --- a/lib/csu/i386/crt0.c +++ b/lib/csu/i386/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.6 2002/02/16 21:27:20 millert Exp $ */ +/* $OpenBSD: crt0.c,v 1.7 2002/09/17 12:53:44 mickey 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.6 2002/02/16 21:27:20 millert Exp $"; +static char rcsid[] = "$OpenBSD: crt0.c,v 1.7 2002/09/17 12:53:44 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -98,7 +98,7 @@ asm ("__callmain:"); /* Defined for the benefit of debuggers */ } #ifdef DYNAMIC - asm(" ___syscall:"); + asm(" ___syscall2:"); asm(" popl %ecx"); asm(" popl %eax"); asm(" pushl %ecx"); diff --git a/lib/csu/m68k/crt0.c b/lib/csu/m68k/crt0.c index 06ab3cdcb54..8cb885e162e 100644 --- a/lib/csu/m68k/crt0.c +++ b/lib/csu/m68k/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.5 2002/02/16 21:27:20 millert Exp $ */ +/* $OpenBSD: crt0.c,v 1.6 2002/09/17 12:53:44 mickey 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.5 2002/02/16 21:27:20 millert Exp $"; +static char rcsid[] = "$OpenBSD: crt0.c,v 1.6 2002/09/17 12:53:44 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -95,7 +95,7 @@ asm ("__callmain:"); /* Defined for the benefit of debuggers */ } #ifdef DYNAMIC - asm(" ___syscall:"); + asm(" ___syscall2:"); asm(" movel a7@+,a0"); /* return address */ asm(" movel a7@,d0"); /* syscall number */ asm(" movel a0,a7@"); diff --git a/lib/csu/vax/crt0.c b/lib/csu/vax/crt0.c index b42b65417ac..b9bbbc05f43 100644 --- a/lib/csu/vax/crt0.c +++ b/lib/csu/vax/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.5 2002/02/16 21:27:20 millert Exp $ */ +/* $OpenBSD: crt0.c,v 1.6 2002/09/17 12:53:44 mickey 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.5 2002/02/16 21:27:20 millert Exp $"; +static char rcsid[] = "$OpenBSD: crt0.c,v 1.6 2002/09/17 12:53:44 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -96,7 +96,7 @@ asm ("__callmain:"); /* Defined for the benefit of debuggers */ } #ifdef DYNAMIC - asm(" ___syscall:"); + asm(" ___syscall2:"); asm(" .word 0"); /* no registers to save */ asm(" movl 4(ap), r0"); /* get syscall number */ asm(" subl3 $1,(ap)+,(ap)"); /* n-1 args to syscall */ |