summaryrefslogtreecommitdiff
path: root/sys/compat
AgeCommit message (Collapse)Author
2004-05-28regenTed Unangst
2004-05-28ACCOUNTING is optional. found by mpech. ok deraadtTed Unangst
2004-05-05make compile peace frienship bubblegumMichael Shalayeff
2004-05-03POSIX says the length parameter for semop(2) and shmget(2) should be size_t.Todd C. Miller
Create new syscalls with the correct parameters and add compat versions for the old ones under COMPAT_35.
2004-04-25fix typos/spelling in comments, from pedro martellettoJolan Luff
2004-04-15rework access to emulations slightly in an effort to both merge andTed Unangst
separate exec format from emulation. consistent naming of freebsd emuls. not much in the way of functional changes yet. testing and ok deraadt@ and others along the way.
2004-04-05syncTed Unangst
2004-04-05madvise works fine without translation, from Sam Smith.Ted Unangst
2004-02-27change amd64's MACHINE_ARCH from x86_64 to amd64. There are many manyTheo de Raadt
reasons for this, quite a few of them technical, and not all of them in response to Intel's broken ia32e crud. The gcc toolchain stays at x86_64 for now.
2004-02-17syncTed Unangst
2004-02-17kqueue works using native callsTed Unangst
once from art@ a while back, again from Jason Ackley <jason@ackley.net>
2004-02-01Trivial touches to compile with gcc 3.Miod Vallat
2004-01-28an amd64 arch support.Michael Shalayeff
hacked by art@ from netbsd sources and then later debugged by me into the shape where it can host itself. no bootloader yet as needs redoing from the recent advanced i386 sources (anyone? ;)
2004-01-14syncTed Unangst
2004-01-14change sigaltstack.ss_size type to size_t. handle syscall fallout.Ted Unangst
add stack_t and ucontext_t typedefs. ok deraadt@
2003-12-19Make sure hpux fcntl() operates on the proper file.Miod Vallat
2003-12-02Count from now, not from the epoch, to arm alarm.Thomas Nordin
2003-11-25Make SIOCGIFHWADDR work. ok mickey@Thomas Nordin
2003-11-23check for too-small length in stream debug codeAnil Madhavapeddy
discussed with grange@ tedu@
2003-11-18path_index isn't used for anything, so comment it out. idea millert@Ted Unangst
2003-11-17add a missing bounds check that allowed a stack overrun. reported byTed Unangst
Georgi Guninski. also prevent an int overflow. ok millert@
2003-11-03verify exec headers before attempting malloc. reported by Georgi Guninski.Ted Unangst
2003-10-12Linux shmat allows lookup of segments that are marked as removed soTodd C. Miller
our Linux compat should too. From marius aamodt eriksen
2003-10-01out-of-bound memory access. deraadt okJun-ichiro itojun Hagino
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-09-04syncTed Unangst
2003-09-04dummy xattr syscalls. ok deraadt@Ted Unangst
2003-09-01regen.Federico G. Schwindt
2003-09-01set fadvise64 as dummy. some binaries compiled with a recent glibcFederico G. Schwindt
seems to require it; henning ok.
2003-08-24regenTed Unangst
2003-08-24freebsd pread and pwrite are the same as ours. jason + ackley.net says thisTed Unangst
lets him run perforce. ok deraadt@
2003-08-23rename native to aout so we can tell it apart.Ted Unangst
2003-08-21emulation is now controlled by sysctl. changes:Ted Unangst
add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@
2003-08-16missed suser. thanks naddy@Ted Unangst
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-08-15regen.Federico G. Schwindt
2003-08-15simplify.Federico G. Schwindt
2003-08-14regen.. again. sorry.Federico G. Schwindt
2003-08-14unbust my previous commit.Federico G. Schwindt
2003-08-14regen.Federico G. Schwindt
2003-08-14add more syscalls. implement exit_group (which is actually an alias forFederico G. Schwindt
sys_exit), needed for newer glibc's binaries. from marius aamodt eriksen <marius at monkey dot org>
2003-08-14in some fs (ie. procfs), readdir won't return a cookie, so calculateFederico G. Schwindt
it based on the offset and reclen. with this, a emulated ls binary (ie. linux) correctly list the files in such filesystems. also plug some memory leak and remove a unneeded panic. adapted from FreeBSD. henning@ tedu@ ok. some other people ok'ed this in the past as well.
2003-08-13remove some copy and waste. from marius@monkey.orgTed Unangst
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-08-03another gapped system call handled incorrectly: truncate64; marius@monkey.orgTheo de Raadt
2003-08-02syncTheo de Raadt
2003-08-02wrong args for linux ftruncate64; marius@monkey.orgTheo de Raadt
2003-07-24after sys_sendmsg, change control message level back in case somebody looksTed Unangst
at it. we don't use stackgap because control messages can be larger than the gap, and it's just easier this way. ok deraadt@
2003-07-23'r' ioctls, (VFAT) aren't supported, don't pass down.Ted Unangst
see netbsd pr21936. ok deraadt@
2003-07-23syncTed Unangst