From 27f17df7414d2512081ffa7e32960442f052320f Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 9 May 2000 18:23:16 +0000 Subject: Fixed the return type for exit() and the args struct tag several NOPROTO syscalls including exit(). These entries were unused, so the bugs had no effect, but the the args struct tag will be used to calculate sy_nargs correctly. exit() was wrong in all emulators. --- sys/i386/linux/syscalls.master | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/i386') diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master index e276c93..473baf1 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 { int exit(int rval); } +1 NOPROTO LINUX { void exit(int rval); } exit rexit_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); } @@ -113,7 +113,8 @@ linux_osigset_t oldmask, \ linux_osigset_t mask); } 73 STD LINUX { int linux_sigpending(linux_osigset_t *mask); } -74 NOPROTO LINUX { int osethostname(char *hostname, u_int len); } +74 NOPROTO LINUX { int osethostname(char *hostname, u_int len); } \ + osethostname sethostname_args int 75 STD LINUX { int linux_setrlimit(u_int resource, \ struct ogetrlimit *rlim); } 76 STD LINUX { int linux_getrlimit(u_int resource, \ -- cgit v1.1