summaryrefslogtreecommitdiff
path: root/sys/compat
AgeCommit message (Collapse)Author
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
2003-05-12strlcpy; tedu okTheo de Raadt
2003-05-11syncTheo de Raadt
2003-05-11finish compat swapon cleanupTheo de Raadt
2003-05-10RegenMiod Vallat
2003-05-10Deprecate the swapon system call and move it to COMPAT_25 land, since swapctlMiod Vallat
has been introduced for this release. ok deraadt@ weingart@
2003-05-07string cleaning; ok art teduTheo de Raadt
2003-04-30RegenMiod Vallat
2003-04-30Oops, repair omsync deprecation lossage.Miod Vallat
2003-04-29Deprecate omsync syscall, and only enable it if COMPAT_25 is required.Miod Vallat
ok deraadt@
2003-04-05Add missing 230400 to linux_speeds array to match linux_spmasks.Todd C. Miller
Also make linux_spmasks const, since it is. deraadt@ OK