summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-07-29 00:16:28 +0000
committerpeter <peter@FreeBSD.org>2000-07-29 00:16:28 +0000
commitb273253c9ea4c29dd8abc4b4c036b8b8d0f9518a (patch)
treefed6e72512004d244a00631188a97781089a65c7 /sys/alpha
parent36f0fd9c3e1f27c08076b520b33417546efe5f60 (diff)
downloadFreeBSD-src-b273253c9ea4c29dd8abc4b4c036b8b8d0f9518a.zip
FreeBSD-src-b273253c9ea4c29dd8abc4b4c036b8b8d0f9518a.tar.gz
Change the 'exit()' system call to 'sys_exit()'. This avoids overlapping
gcc's internal exit() prototypes and the (futile) hackery that we did to try and avoid warnings. main() was renamed for similar reasons. Remove an exit related hack from makesyscalls.sh.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/linux/syscalls.master2
-rw-r--r--sys/alpha/osf1/syscalls.master2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/alpha/linux/syscalls.master b/sys/alpha/linux/syscalls.master
index 3de9c93..f99b9a6 100644
--- a/sys/alpha/linux/syscalls.master
+++ b/sys/alpha/linux/syscalls.master
@@ -32,7 +32,7 @@
; #ifdef's, etc. may be included, and are copied to the output files.
0 STD LINUX { int linux_setup(void); }
-1 NOPROTO LINUX { void exit(int rval); } exit rexit_args void
+1 NOPROTO LINUX { void sys_exit(int rval); } sys_exit sys_exit_args void
2 STD LINUX { int linux_fork(void); }
3 NOPROTO LINUX { int read(int fd, char *buf, u_int nbyte); }
4 NOPROTO LINUX { int write(int fd, char *buf, u_int nbyte); }
diff --git a/sys/alpha/osf1/syscalls.master b/sys/alpha/osf1/syscalls.master
index 38b23ed..35dec7f 100644
--- a/sys/alpha/osf1/syscalls.master
+++ b/sys/alpha/osf1/syscalls.master
@@ -32,7 +32,7 @@
0 NOPROTO OSF1 { int nosys(void); }
-1 NOPROTO OSF1 { void exit(int rval); } exit rexit_args void
+1 NOPROTO OSF1 { void sys_exit(int rval); } sys_exit sys_exit_args void
2 NOPROTO OSF1 { int fork(void); }
3 NOPROTO OSF1 { ssize_t read(int fd, char *buf, ssize_t nbyte); }
4 NOPROTO OSF1 { ssize_t write(int fd, char *buf, ssize_t nbyte); }
OpenPOWER on IntegriCloud