Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
|
|
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.
|
|
|
|
one has been weeding it, and it makes life harder.
Toasts of Brennivin for its passing from many; diff ok henning@
|
|
|
|
|
|
|
|
|
|
in libkvm with the stable-ABI versions that are currently named
KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols
will continue to be supported for a few releases.
Committing now that they ports people have had a couple releases
to update pkgs that usd the old functions
|
|
|
|
|
|
|
|
Okay miod@.
|
|
semconfig() declaration. Move the COMPAT_35 SysV IPC structures into
the only source files that uses them
ok millert@, kettenis@, deraadt@
|
|
heap gap from max data size. nothing else changes yet. ok deraadt
|
|
so that the process-level stuff is to/from struct process and not
struct proc. This fixes a bunch of problem cases in rthreads.
Based on earlier work by blambert and myself, but mostly written
at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
|
|
|
|
|
|
fhstat syscall, however, isn't needed and can go away. ok deraadt
|
|
|
|
|
|
not a pointer." So just use the native implementation.
ok deraadt@
|
|
|
|
blocking other cleanups
ok miod@
|
|
|
|
so stop including it in kernel .c files.
"sure" deraadt@
|
|
it defines. In some cases, this means pulling in uvm.h or pcb.h
instead, but most of the inclusions were just noise. Tested on
alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax,
mostly by krw and naddy.
ok krw@
|
|
add a missing ')'.
i386 can now build kernels.
|
|
correct number of bytes into f_fstr. OK kettenis@ deraadt@ nicm@
|
|
|
|
|
|
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include
<sys/dkio.h> to the places that actually want and use the disk
ioctls.
this became an issue when krw@'s X build failed when he was testing
a change to dkio.h.
tested by krw@
help from and ok miod@
|
|
|
|
sysctl.h was reliant on this particular include, and many drivers included
sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed.
ok deraadt
|
|
|
|
with the same error conditions. So reimplement it as the real thing.
ok guenther@
|
|
of a direct ancestor, closing a localhost DoS. As an exception,
do permit ptrace() of pid 1 and have inferiors() stop climbing if
it hits that.
ok tedu@ hpux_compat suggestion from miod@
|
|
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@
|
|
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@
|
|
and hacking on it. Since then, some of the details of finishing a
wait have changed (p_exitsig handling), so factor out the common
bit into into proc_finish_wait() and have both sys_wait4() and
svr4_sys_waitsys() call that to kill the divergence.
"looks good" deraadt@
|
|
just use nitems(). (this leaves NENTS() alone for now)
ok deraadt@ krw@
|
|
Prompted by parfait noticing overflows in ibcs2/svr4 which
are now changed to being NSIG sized like the others as
suggested by tedu.
ok tedu@ miod@ guenther@
|
|
ok deraadt@
|
|
correctly, usually yielding the right value on 32 bit machines because
sizeof int == sizeof pointer.
|
|
which is exactly what the macro does.
Macro's that are nothing more then:
#define FUNCTION(arg) function(arg)
are almost always pointless and should go away.
OK blambert@
Agreed by many.
|
|
Ok guenther@
|
|
NetBSD.
ok kurt@, drahn@, miod@
|
|
|