cvs commit: src/sys/compat/linux linux_file.c linux_getcwd.c linux_ipc.c linux_ipc.h linux_misc.c linux_signal.c linux_signal.h linux_socket.c linux_uid16.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Jul 26 11:13:29 PDT 2003
dillon 2003/07/26 11:12:41 PDT
Modified files:
sys/compat/linux linux_file.c linux_getcwd.c linux_ipc.c
linux_ipc.h linux_misc.c linux_signal.c
linux_signal.h linux_socket.c
linux_uid16.c
Log:
syscall messaging 2: Change the standard return value storage for system
calls from proc->p_retval[] to the message structure embedded in the syscall.
System calls used to set their non-error return value in p_retval[] but
must now set it in the message structure. This is a necessary precursor to
any sort of asynchronizatino, for obvious reasons.
This work was particularly annoying because all the emualtion code declares
and manually fills in syscall argument structures.
This commit could potentially destabilize some of the emulation code but I
went through the most important Linux emulation code three times and tested it
with linux-mozilla, so I am fairly confident that I got it right.
Note: proper linux emulation requires setting the fallback elf brand to 3 or
it will default to SVR4. It really ought to default to linux (3), not SVR4.
sysctl -w kern.fallback_elf_brand=3
Revision Changes Path
1.6 +158 -74 src/sys/compat/linux/linux_file.c
1.7 +4 -2 src/sys/compat/linux/linux_getcwd.c
1.4 +68 -76 src/sys/compat/linux/linux_ipc.c
1.4 +12 -1 src/sys/compat/linux/linux_ipc.h
1.7 +118 -67 src/sys/compat/linux/linux_misc.c
1.4 +27 -20 src/sys/compat/linux/linux_signal.c
1.4 +2 -2 src/sys/compat/linux/linux_signal.h
1.5 +111 -69 src/sys/compat/linux/linux_socket.c
1.5 +65 -15 src/sys/compat/linux/linux_uid16.c
More information about the Commits
mailing list