summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_sched.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove the Linux emulation code, no longer referenced by anythingnaddy2016-03-021-414/+0
|
* Delete an obsolete commentguenther2014-07-091-7/+1
|
* Eliminates struct pcred by moving the real and saved ugids intoguenther2014-03-301-25/+25
| | | | | | | | | struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
* Eliminate the exit sig handling, which was only invokable via theguenther2014-02-121-9/+7
| | | | | | | | Linux-compat clone() syscall when *not* using CLONE_THREAD. pirofti@ confirms Opera runs in compat without this, so out it goes; one less hair to choke on in kern_exit.c ok tedu@ pirofti@
* Threads can't be zombies, only processes, so change zombproc to zombprocess,guenther2014-01-201-8/+2
| | | | | | | | make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread flags to process flags. Add allprocess list for the code that just wants to see processes. ok tedu@
* Change the KERN_FILE_BYPID and KERN_FILE_BYUID modes of the KERN_FILE2guenther2012-05-251-2/+8
| | | | | | | | | sysctl() to be per-process instead of per-thread. This means the filedesc table has to really be per-process instead of per-thread, so make it an error for the linux clone() emulation to try to do otherwise. This removes pointless duplication in fstat's output. requested by jsing@ and deraadt@, ok matthew@ deraadt@
* If LINUX_CLONE_SETTLS isn't set, then the clone()d child should inheritguenther2012-05-241-3/+5
| | | | | | the TCB value from the parent instead of having it zeroed. ok pirofti@
* rfork cleanupguenther2012-04-121-2/+2
|
* Fix linux compat breakage: can't copyin() from kernel-space, soguenther2011-08-031-4/+3
| | | | | | | | 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@
* Add set_tid_address() syscall. Lots of help from and okay guenther@.pirofti2011-04-051-10/+83
| | | | | | | | | | 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.
* Fix function argument list -- 1989 is long gone!pirofti2011-04-041-33/+9
|
* Previous commit was too restrictive: just ignore the CLONE_FS flagguenther2010-01-041-14/+30
| | | | | | | | | | | when not doing CLONE_THREAD, like we did before, instead of treating it as an error. This unbreaks Opera running in linux compat. Also, Linux completely ignores CLONE_DETACHED, so do that too, and consistently refer to the flags in comment via their Linux names without trying to abbreviate them further. Problem found and fix confirmed by sturm@
* Sanity check flags in fork1(), banning some combos we don't supportguenther2009-12-281-9/+50
| | | | | | | | | | | and catching FORK_THREAD when RTHREADS wasn't compiled in. Simplify sys_rfork() based on that. Flesh out the Linux clone support with more flags, but stricter checks for missing support or bad combos. Still not enough for NPTL to work, mind you. ok kettenis@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Create the init process earlier, before the root filesystem is mounted,miod2004-11-231-2/+3
| | | | | | | | | | | and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
* debranch SMP, have funniklas2004-06-131-2/+2
|
* Let fork1, uvm_fork, and cpu_fork take a function/argument pair as argument,art2001-11-061-2/+2
| | | | | | | | | | | 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.
* typosjasoni2001-05-151-5/+5
|
* On popular demand, the Linux-compatibility clone(2) implementation basedniklas2001-04-021-0/+321
on NetBSD's code, as well as some faked Posix RT extensions by me. This makes at least simple linuxthreads tests work.