From 8bc34454720bc568fabf8b6bc72ae8b287c3fd05 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 9 May 2000 18:08:51 +0000 Subject: [PATCH] Fixed the return type and args struct tag for exit(). They were wrong in all emulators. These entries were unused, so the bug had no effect, but the the args struct tag will be used to calculate sy_nargs correctly. --- sys/compat/svr4/syscalls.master | 2 +- sys/svr4/syscalls.master | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/svr4/syscalls.master b/sys/compat/svr4/syscalls.master index af542181be8..2c1de7e65ea 100644 --- a/sys/compat/svr4/syscalls.master +++ b/sys/compat/svr4/syscalls.master @@ -35,7 +35,7 @@ ; #ifdef's, etc. may be included, and are copied to the output files. 0 UNIMPL SVR4 unused -1 NOPROTO POSIX { int exit(int rval); } +1 NOPROTO POSIX { void exit(int rval); } exit rexit_args void 2 NOPROTO POSIX { int fork(void); } 3 NOPROTO POSIX { int read(int fd, char *buf, u_int nbyte); } 4 NOPROTO SVR4 { int write(int fd, char *buf, u_int nbyte); } diff --git a/sys/svr4/syscalls.master b/sys/svr4/syscalls.master index af542181be8..2c1de7e65ea 100644 --- a/sys/svr4/syscalls.master +++ b/sys/svr4/syscalls.master @@ -35,7 +35,7 @@ ; #ifdef's, etc. may be included, and are copied to the output files. 0 UNIMPL SVR4 unused -1 NOPROTO POSIX { int exit(int rval); } +1 NOPROTO POSIX { void exit(int rval); } exit rexit_args void 2 NOPROTO POSIX { int fork(void); } 3 NOPROTO POSIX { int read(int fd, char *buf, u_int nbyte); } 4 NOPROTO SVR4 { int write(int fd, char *buf, u_int nbyte); }