summaryrefslogtreecommitdiff
path: root/sys/compat/linux
AgeCommit message (Collapse)Author
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
2002-05-07support TIOCLINUX ioctljasoni
- from NetBSD
2002-03-14remove ambiguity in version,ostype,osversion,osrelease and their constanity, ↵Michael Shalayeff
they are and declarre 'em accordingly also removing private externies of those
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-14Regen after syscall changes (option PTRACE)Miod Vallat
2002-03-14Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inMiod Vallat
your kernel configuration file. By default, GENERIC will enable this. When PTRACE is not enabled, several ptrace-like features of the procfs filesystem will be disabled as well (namely, the ability to read and write any process' registers, as well as attching, single stepping and detaching to/from processes). This should help paranoid people build better sandboxens, and us to build smaller ramdisks.
2002-02-13FREF/FRELE where required due to fd_getfile.jasoni
- ok art@
2002-02-13More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl ↵Artur Grabowski
functions in sys/compat are left.
2002-02-12More FREF/FRELE protection. This time all users of getvnode.Artur Grabowski
2002-02-08Remove some commented out FILE_UNUSE (incorrect)Artur Grabowski
2002-02-06emulate linux behaviour by passing ioctl's down to the underlying devicejasoni
> From NetBSD; ok art@
2002-02-04syncNiels Provos
2002-02-04fcntl64 support; okay deraadt@Niels Provos
2002-02-02Be more consistent about using fd_getfile where it matters.Artur Grabowski
2001-11-15New function vn_marktext - mark a vnode as executing a text image.Artur Grabowski
Use where VTEXT was set in vnode flags before. Doesn't do anything else (yet).
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-11-06Let fork1, uvm_fork, and cpu_fork take a function/argument pair as argument,Artur Grabowski
instead of doing fork1, cpu_set_kpc. This lets us retire cpu_set_kpc and avoid a multiprocessor race. This commit breaks vax because it doesn't look like any other arch, someone working on vax might want to look at this and try to adapt the code to be more like the rest of the world. Idea and uvm parts from NetBSD.
2001-10-26Unbreak.Artur Grabowski
2001-10-26 - every new fd created by falloc() is marked as larval and should not be usedArtur Grabowski
any anyone. Every caller of falloc matures the fd when it's usable. - Since every lookup in the fd table must now check this flag and all of them do the same thing, move all the necessary checks into a function - fd_getfile.
2001-09-19Unify elf32 and elf64 code with macros. This forced a renamingArtur Grabowski
of a few functions from elf32.
2001-08-26syncTheo de Raadt
2001-08-26there is no need for .bak filesTheo de Raadt
2001-08-12absolutely no need to include vm_parm.h after vm.hMichael Shalayeff