Page MenuHomeFreeBSD

D1027.diff
No OneTemporary

D1027.diff

Index: head/sys/amd64/linux32/syscalls.master
===================================================================
--- head/sys/amd64/linux32/syscalls.master
+++ head/sys/amd64/linux32/syscalls.master
@@ -38,8 +38,7 @@
; #ifdef's, etc. may be included, and are copied to the output files.
0 AUE_NULL UNIMPL setup
-1 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \
- sys_exit_args void
+1 AUE_EXIT STD { void linux_exit(int rval); }
2 AUE_FORK STD { int linux_fork(void); }
3 AUE_NULL NOPROTO { int read(int fd, char *buf, \
u_int nbyte); }
Index: head/sys/compat/linux/linux_fork.c
===================================================================
--- head/sys/compat/linux/linux_fork.c
+++ head/sys/compat/linux/linux_fork.c
@@ -41,6 +41,7 @@
#include <sys/sdt.h>
#include <sys/sx.h>
#include <sys/unistd.h>
+#include <sys/wait.h>
#ifdef COMPAT_LINUX32
#include <machine/../linux32/linux.h>
@@ -297,3 +298,16 @@
return (0);
}
+
+int
+linux_exit(struct thread *td, struct linux_exit_args *args)
+{
+
+#ifdef DEBUG
+ if (ldebug(exit))
+ printf(ARGS(exit, "%d"), args->rval);
+#endif
+
+ exit1(td, W_EXITCODE(args->rval, 0));
+ /* NOTREACHED */
+}
Index: head/sys/i386/linux/syscalls.master
===================================================================
--- head/sys/i386/linux/syscalls.master
+++ head/sys/i386/linux/syscalls.master
@@ -37,8 +37,7 @@
; #ifdef's, etc. may be included, and are copied to the output files.
0 AUE_NULL UNIMPL setup
-1 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \
- sys_exit_args void
+1 AUE_EXIT STD { void linux_exit(int rval); }
2 AUE_FORK STD { int linux_fork(void); }
3 AUE_NULL NOPROTO { int read(int fd, char *buf, \
u_int nbyte); }

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 12, 4:05 AM (11 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23607491
Default Alt Text
D1027.diff (1 KB)

Event Timeline