summaryrefslogtreecommitdiff
path: root/sys/compat/linux
AgeCommit message (Collapse)Author
2003-12-02Count from now, not from the epoch, to arm alarm.Thomas Nordin
2003-11-25Make SIOCGIFHWADDR work. ok mickey@Thomas Nordin
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-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-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-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-13remove some copy and waste. from marius@monkey.orgTed Unangst
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-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-03fix various 3/4 licenses according to "terms" fileTheo 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-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
2003-02-25fix off by one signal checks. thanks yichen's checkerTed Unangst
ok niklas@
2003-01-30Bring back setreuid(2) and setregid(2) as first class syscallsTodd C. Miller
(but still implemented via setres[ug]id(2)). Basically this just moves them from COMPAT_43 into kern_prot.c. Also fixes a typo in my old implementation. The userland portion will follow in a few days. deraadt@ OK
2003-01-21Do not do multiple stackgap_init calls in the same syscall execution,Niklas Hallqvist
chances are big that entities allocated early should live longer than later stackgap_init invocations. This fixes UDP problems in Linux emulation, most notably YP, and some DNS issues. ok fgsch@, jasoni@ & pvalchev@
2002-12-16unbust *stat64. From NetBSD.Federico G. Schwindt
deraadt@ ok.
2002-12-10pass p->p_emul to stackgap_init(), not 0 to be consistent.Federico G. Schwindt
2002-12-10fix setsockopt SO_REUSEADDR under linux emul; from NetBSD.Federico G. Schwindt
thanks to jpmp@fibertel.com.ar for the testbed. ish@ ok
2002-11-27do address translation for for socket syscalls that pass addresses inJason Ish
or out - this allows linux programs that use IPv6 to work (not ipv4 mapped addresses though) - from NetBSD
2002-10-30regenTodd C. Miller
2002-10-30Now that we have [gs]etres[ug]id() as a native system call, use itTodd C. Miller
for HP-UX, FreeBSD, and Linux emulations. Note that Linux has two versions of these system calls. One for 16bit uids and another for 32bit uids.
2002-10-28getdents64 support, based on FreeBSD.Federico G. Schwindt
thanks to jpmk@fibertel.com.ar for providing a testbed; jasoni ok.
2002-10-28add getdents64.Federico G. Schwindt
2002-08-23Cleanup change. Since almost all callers (except one) of getvnode did a FREFArtur Grabowski
on the returned file, do the FREF inside getvnode so that people can't get away with avoiding FREF and FRELE. Eyeballed by various people.
2002-08-09Correct the size arg to copyout.Aaron Campbell
2002-08-09socket flags are not inherited via accept() on linux; found and testedFederico G. Schwindt
by gustavo, several ppl ok@
2002-07-25Avoid time wrap at securelevel 2. ok millert@ fgsch@Thomas Nordin
2002-06-05regenjasoni
2002-06-05provide local versions of getpid, getuid and getgid that do notjasoni
stuff a value in retval[1] as newer linux libs puke on it.
2002-06-02withough -> withoutTheo de Raadt
2002-05-07minor style.jasoni