diff options
author | Peter Wemm <peter@FreeBSD.org> | 2000-07-29 00:16:28 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2000-07-29 00:16:28 +0000 |
commit | ac2b067b9a9efbcf0946f1c6d3c0413b0ddd51b1 (patch) | |
tree | bcbe2ff5f84c9232675e542ae20b4882bdb74b2d /sys/i386 | |
parent | d244b0e95b7b9b9a4e9e9b05825a75305e4f7e58 (diff) | |
download | src-ac2b067b9a9efbcf0946f1c6d3c0413b0ddd51b1.tar.gz src-ac2b067b9a9efbcf0946f1c6d3c0413b0ddd51b1.zip |
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.
Notes
Notes:
svn path=/head/; revision=63986
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/ibcs2/syscalls.master | 2 | ||||
-rw-r--r-- | sys/i386/linux/syscalls.master | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/ibcs2/syscalls.master b/sys/i386/ibcs2/syscalls.master index 3455d5b0f770..c4aed2f65425 100644 --- a/sys/i386/ibcs2/syscalls.master +++ b/sys/i386/ibcs2/syscalls.master @@ -32,7 +32,7 @@ ; #ifdef's, etc. may be included, and are copied to the output files. 0 NOPROTO NOHIDE { int nosys(void); } syscall nosys_args int -1 NOPROTO NOHIDE { void exit(int rval); } exit rexit_args void +1 NOPROTO NOHIDE { void sys_exit(int rval); } sys_exit sys_exit_args void 2 NOPROTO POSIX { int fork(void); } 3 STD POSIX { int ibcs2_read(int fd, char *buf, u_int nbytes); } 4 NOPROTO POSIX { int write(int fd, char *buf, u_int nbytes); } diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master index 3de9c931aab6..f99b9a6962e2 100644 --- a/sys/i386/linux/syscalls.master +++ b/sys/i386/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); } |