Date: Sat, 8 Sep 2001 12:07:04 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/linux linux.h linux_dummy.c linux_genassym.c linux_machdep.c linux_proto.h linux_syscall.h linux_sysent.c src/sys/compat/linux linux_sysctl.c linux_file.c linux_ioctl.c linux_ipc.c linux_ipc.h linux_mib.c linux_misc.c ... Message-ID: <200109081907.f88J74P38588@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2001/09/08 12:07:04 PDT Modified files: sys/alpha/linux linux.h linux_dummy.c linux_genassym.c linux_machdep.c linux_proto.h linux_syscall.h linux_sysent.c sys/compat/linux linux_file.c linux_ioctl.c linux_ipc.c linux_ipc.h linux_mib.c linux_misc.c linux_signal.c linux_signal.h linux_socket.c linux_stats.c sys/i386/linux linux.h linux_dummy.c linux_genassym.c linux_machdep.c linux_proto.h linux_syscall.h linux_sysent.c linux_sysvec.c sys/modules/linux Makefile Added files: sys/compat/linux linux_sysctl.c Log: Round of cleanups and enhancements. These include (in random order): o Introduce private types for use in linux syscalls for two reasons: 1. establish type independence for ease in porting and, 2. provide a visual queue as to which syscalls have proper prototypes to further cleanup the i386/alpha split. Linuxulator types are prefixed by 'l_'. void and char have not been "virtualized". o Provide dummy functions for all syscalls and remove dummy functions or implementations of truely obsolete syscalls. o Sanitize the shm*, sem* and msg* syscalls. o Make a first attempt to implement the linux_sysctl syscall. At this time it only returns one MIB (KERN_VERSION), but most importantly, it tells us when we need to add additional sysctls :-) o Bump the kenel version up to 2.4.2 (this is not the same as the KERN_VERSION MIB, BTW). o Implement new syscalls, of which most are specific to i386. Our syscall table is now up to date with Linux 2.4.2. Some highlights: - Implement the 32-bit uid_t and gid_t bases syscalls. - Implement a couple of 64-bit file size/offset bases syscalls. o Fix or improve numerous syscalls and prototypes. o Reduce style(9) violations while I'm here. Especially indentation inconsistencies within the same file are addressed. Re-indenting did not obfuscate actual changes to the extend that it could not be combined. NOTE: I spend some time testing these changes and found that if there were regressions, they were not caused by these changes AFAICT. It was observed that installing a RH 7.1 runtime environment did make matters worse. Hangs and/or reboots have been observed with and without these changes, so when it failed to make life better in cases it doesn't look like it made it worse. Revision Changes Path 1.53 +169 -91 src/sys/alpha/linux/linux.h 1.32 +23 -7 src/sys/alpha/linux/linux_dummy.c 1.16 +3 -5 src/sys/alpha/linux/linux_genassym.c 1.14 +6 -8 src/sys/alpha/linux/linux_machdep.c 1.6 +459 -376 src/sys/alpha/linux/linux_proto.h 1.6 +32 -15 src/sys/alpha/linux/linux_syscall.h 1.6 +58 -51 src/sys/alpha/linux/linux_sysent.c 1.55 +562 -391 src/sys/compat/linux/linux_file.c 1.65 +4 -4 src/sys/compat/linux/linux_ioctl.c 1.23 +100 -127 src/sys/compat/linux/linux_ipc.c 1.6 +82 -16 src/sys/compat/linux/linux_ipc.h 1.13 +2 -2 src/sys/compat/linux/linux_mib.c 1.105 +658 -653 src/sys/compat/linux/linux_misc.c 1.31 +32 -32 src/sys/compat/linux/linux_signal.c 1.4 +5 -5 src/sys/compat/linux/linux_signal.h 1.28 +21 -20 src/sys/compat/linux/linux_socket.c 1.36 +204 -134 src/sys/compat/linux/linux_stats.c 1.55 +252 -137 src/sys/i386/linux/linux.h 1.30 +11 -40 src/sys/i386/linux/linux_dummy.c 1.16 +7 -9 src/sys/i386/linux/linux_genassym.c 1.18 +191 -102 src/sys/i386/linux/linux_machdep.c 1.44 +496 -398 src/sys/i386/linux/linux_proto.h 1.39 +54 -44 src/sys/i386/linux/linux_syscall.h 1.45 +81 -57 src/sys/i386/linux/linux_sysent.c 1.86 +23 -24 src/sys/i386/linux/linux_sysvec.c 1.53 +6 -6 src/sys/modules/linux/Makefile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109081907.f88J74P38588>