5002a60f9b
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.
79 lines
2.3 KiB
C
79 lines
2.3 KiB
C
/*-
|
|
* Copyright (c) 1994-1995 Søren Schmidt
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer
|
|
* in this position and unchanged.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
* 3. The name of the author may not be used to endorse or promote products
|
|
* derived from this software withough specific prior written permission
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*
|
|
* $FreeBSD$
|
|
*/
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/systm.h>
|
|
#include <sys/proc.h>
|
|
|
|
#include <i386/linux/linux.h>
|
|
#include <i386/linux/linux_proto.h>
|
|
#include <compat/linux/linux_util.h>
|
|
|
|
DUMMY(stat);
|
|
DUMMY(stime);
|
|
DUMMY(ptrace);
|
|
DUMMY(fstat);
|
|
DUMMY(olduname);
|
|
DUMMY(syslog);
|
|
DUMMY(uname);
|
|
DUMMY(vhangup);
|
|
DUMMY(vm86old);
|
|
DUMMY(swapoff);
|
|
DUMMY(adjtimex);
|
|
DUMMY(create_module);
|
|
DUMMY(init_module);
|
|
DUMMY(delete_module);
|
|
DUMMY(get_kernel_syms);
|
|
DUMMY(quotactl);
|
|
DUMMY(bdflush);
|
|
DUMMY(sysfs);
|
|
DUMMY(getsid);
|
|
DUMMY(vm86);
|
|
DUMMY(query_module);
|
|
DUMMY(nfsservctl);
|
|
DUMMY(prctl);
|
|
DUMMY(rt_sigpending);
|
|
DUMMY(rt_sigtimedwait);
|
|
DUMMY(rt_sigqueueinfo);
|
|
DUMMY(capget);
|
|
DUMMY(capset);
|
|
DUMMY(sendfile);
|
|
DUMMY(mmap2);
|
|
DUMMY(truncate64);
|
|
DUMMY(ftruncate64);
|
|
DUMMY(lchown);
|
|
DUMMY(fchown);
|
|
DUMMY(chown);
|
|
DUMMY(setfsuid);
|
|
DUMMY(setfsgid);
|
|
DUMMY(pivot_root);
|
|
DUMMY(mincore);
|
|
DUMMY(madvise);
|