summaryrefslogtreecommitdiff
path: root/sys/compat
AgeCommit message (Collapse)Author
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
2003-07-23add sys_sysinfo. from marius aamodt eriksen.Ted Unangst
linux_misc.c: fvdl gave his copyright to tnf, adjust.
2003-07-03syncTed Unangst
2003-07-03add mmap2 (mmap64, take your pick) and clean up some. use MAP_TRYFIXEDTed Unangst
since that's the way linux works. no regressions by various ports testers, eyeballed by a few others.
2003-06-24a.out emulation for dynamic binaries: intercept the right system callsMarc Espie
so that they look in /emul/a.out first. This allows a.out's ld.so to find its own libraries without interfering with ELF at all. Many comments from various people. okay deraadt@
2003-06-23and we have a copyright (TNF)Ted Unangst
2003-06-21add exec/fork/exit hooks per process for compat emulations.Ted Unangst
use them to correctly emulate linux brk. update to TNF copyright in linux_exec.c. from netbsd, mostly from a diff by Kurt Miller in pr3318. this should fix java. no regressions in testing by kurt and sturm@. be prepared for "proc size mismatch" -- recompile ps and friends. ok deraadt@
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-03fix various 3/4 licenses according to "terms" fileTheo de Raadt
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02some license cleanupTheo de Raadt
2003-05-16Do the new-style EI_OSABI check first because it is cheaper.Todd C. Miller
2003-05-13De-hackify. Use proper defines now that we have EI_OSABI and ELFOSABI_FREEBSDTodd C. Miller