summaryrefslogtreecommitdiff
path: root/sys/compat
AgeCommit message (Collapse)Author
2012-04-12rfork cleanupPhilip Guenthe
2012-04-10Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimitPhilip Guenthe
count processes instead of threads. New sysctl()s KERN_NTHREADS and KERN_MAXTHREAD count and limit threads. The nprocs and maxproc kernel variables are replaced by nprocess, maxprocess, nthreads, and maxthread. ok tedu@ mikeb@
2012-03-23Make rusage totals, itimers, and profile settings per-process insteadPhilip Guenthe
of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@
2011-12-14regenRobert Nagy
2011-12-14implement prctl() for COMPAT_LINUXRobert Nagy
ok pirofti@
2011-12-03add support for MSG_NOSIGNAL.Federico G. Schwindt
linux bits compiled on i386 by sebastia@, mikeb@ ok
2011-11-25implement chown(2) in compat_linux which is needed by some antivirus softwareRobert Nagy
ok pirofti@
2011-10-27Allow segments to be used even after they were marked for deletion withRobert Nagy
the IPC_RMID flag. This is permitted as an extension beyond the standards and this is similar to what other operating systems like linux do. Because compat_linux(8) was emulating this already, remove that code since now this is the default. input from oga@, guenther@, jmc@, deraadt@ ok deraadt@
2011-09-19Gah, no cookie for me.Paul Irofti
2011-09-19Fix comments, they really made sense before splitting them.Paul Irofti
Noticed by fgs@, thanks!
2011-09-19Regenerate after pipe2.Paul Irofti
2011-09-19Add pipe2. Okay miod@Paul Irofti
2011-09-19Fix Unix socket handling when the length is too large by trimming.Paul Irofti
Okay claudio@
2011-09-19Regenerate after syscall expansion.Paul Irofti
2011-09-19Expand syscall awareness in preparation for pipe2 implementation.Paul Irofti
2011-09-18Regenerate after the futex commit.Paul Irofti
2011-09-18Add futex support for compat/linux.Paul Irofti
Based on Emmanuel Dreyfus work with additions, tricks and adaptations by me. Lots of help and reviewing by guenther@ and oga@. Okay guenther@.
2011-08-03Fix linux compat breakage: can't copyin() from kernel-space, soPhilip Guenthe
move that out of i386_set_threadbase(), and have clone() pass NULL to fork1() for the child func argument so that it gets the child proc pointer. Report and verification by pirofti@, heavy lifting by matthew@
2011-07-14syncMatthew Dempsky
2011-07-14Fix entry 84 to use the same prototype for linux_sys_lstat() as entryMatthew Dempsky
107 does (i.e., using a pointer to "struct linux_stat" rather than a pointer to "struct stat43"). No binary change: entry 84 is "NOARGS" so the prototype only goes into a comment in linux_syscall.h.
2011-07-09begone, fucking rotten appletalk shit. ok roomHenning Brauer
2011-07-09syncTheo de Raadt
2011-07-09Remove COMPAT_25. The one piece moved by COMPAT_LINUX moves there.Theo de Raadt
ok guenther
2011-07-08regen syscallsTed Unangst
2011-07-08remove all traces of COMPAT_09 and COMPAT_10. ok deraadtTed Unangst
2011-07-08vm_43.c somehow escaped when its coconspirators were rounded up.Ted Unangst
2011-07-08syncMatthew Dempsky
2011-07-08Remove the sys_opipe() kernel entry point. sys_pipe() is the future.Matthew Dempsky
While here, switch compat_linux to just use sys_pipe() rather than incorrectly wrapping sys_opipe(). ok tedu@, miod@
2011-07-07Regenerate.Paul Irofti
2011-07-07Add more syscalls to the list.Paul Irofti
This is in preparation of the robust syscalls, number 311 and 312, which create a gap (between the syscall numbers we currently have) that the script genearating the files doesn't allow. Okay guenther@.
2011-07-07remove old filesTed Unangst
2011-07-07regen syscallsTed Unangst
2011-07-07remove all the old COMPAT_43 syscalls. The option itself remains forTed Unangst
the other things it enables. Move a few old wrappers into linux compat where they are still being used. ok deraadt guenther
2011-07-05Add linux_to_native_timespec() for future futex use. Okay tedu@.Paul Irofti
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
2011-07-04remove all the compat svr4 filesTed Unangst
2011-07-04move the specfs code to a place people can see it; ok guenther thib krwTheo de Raadt
2011-06-30remove compat_35 filesTed Unangst
2011-06-27compat_vax1k goes to the atticTed Unangst
2011-06-05Move the bufcachepercent setting code to MI locations -- set it to 42%Theo de Raadt
for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib
2011-04-20Fix possible NULL dereference for emul data. Okay miod@.Paul Irofti
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
2011-04-05Unify header sentinel names.Paul Irofti
2011-04-05Move timespec utility functions to a header file.Paul Irofti
Iinitially I wanted to just lose the static for ddb, but then I realised they will be needed for the futex implementation as well so its better to have them in a separate header file.
2011-04-05Regenerate -- linux_sys_set_tid_address().Paul Irofti
2011-04-05Add set_tid_address() syscall. Lots of help from and okay guenther@.Paul Irofti
This is more than a simple syscall.This expands TLS support quite a bit. Also linux_sys_clone() handles CLONE_CHILD_CLEARTID, CLONE_CHILD_SETTID, CLONE_PARENT_SETTID flags as well as the CLONE_SETTLS by doing what set_thread_area() is doing. Next on the list is futex support which should allow compat to cope with newer Linux kernels.
2011-04-05Fix PID fetching -- noticed last night by guenther@.Paul Irofti
2011-04-05Push COMPAT_FREEBSD in front of a whale. Buggy, out of date, noPhilip Guenthe
one has been weeding it, and it makes life harder. Toasts of Brennivin for its passing from many; diff ok henning@
2011-04-05Fix function argument list.Paul Irofti