summaryrefslogtreecommitdiff
path: root/sys/compat
AgeCommit message (Collapse)Author
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
2011-04-04Fix function argument list -- 1989 is long gone!Paul Irofti
2011-04-04Regenerate -- linux_sys_[g|s]et_thread_area().Paul Irofti
2011-04-04Add linux_sys_[g|s]et_set_thread_area() support. Okay guenther@.Paul Irofti
2011-03-12Replace the old, broken KERN_PROC ABI and its matching functionsPhilip Guenthe
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
2011-02-11Regenerate.Paul Irofti
2011-02-11Add linux_mprotect() syscall. Okay otto@.Paul Irofti
2011-02-10Regenerate.Paul Irofti
2011-02-10Add time related syscalls clock_gettime() and clock_getres().Paul Irofti
Okay miod@.
2011-01-03Remove the old COMPAT_23 SysV IPC structures and the never implementedPhilip Guenthe
semconfig() declaration. Move the COMPAT_35 SysV IPC structures into the only source files that uses them ok millert@, kettenis@, deraadt@
2010-12-15add a BRKSIZ define and use it for the heap gap constant, decouplingTed Unangst
heap gap from max data size. nothing else changes yet. ok deraadt
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe
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
2010-07-05remove compat_bsdos supportTed Unangst
2010-07-02remove sunos compat filesTed Unangst
2010-07-013.5 compat is old, but relied upon by other compats still in tree. theTed Unangst
fhstat syscall, however, isn't needed and can go away. ok deraadt
2010-07-01another day, another compat gets removed. today is ibcs2's turnTed Unangst
2010-07-01compat_o43 and compat_23 can dieTheo de Raadt
2010-06-30Merge from NetBSD: "Linux's getsid(2) does in fact return a pid,Philip Guenthe
not a pointer." So just use the native implementation. ok deraadt@
2010-06-30delete osf1 compat filesTed Unangst
2010-06-29Remove COMPAT_HPUX. No one wanted to support it and its fewmets werePhilip Guenthe
blocking other cleanups ok miod@
2010-06-29and the ultrix files go into the attic. ok deraadt miodTed Unangst
2010-06-28<sys/time.b> is for ftime(), which is just in libcompat and not the kernel,Philip Guenthe
so stop including it in kernel .c files. "sure" deraadt@
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffPhilip Guenthe
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@
2010-05-25Fix previous. s/sfs->f_typename/bfs->fs_typename andThordur I. Bjornsson
add a missing ')'. i386 can now build kernels.
2010-05-25Zero out svr4_statvfs and svr4_statvfs64 before using and copy theTodd C. Miller
correct number of bytes into f_fstr. OK kettenis@ deraadt@ nicm@
2010-05-23syncTheo de Raadt
2010-05-23use __alpha__ not alpha for the ifdefTheo de Raadt
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
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@
2010-04-28s/i386/__i386__/, no binary change.Mark Kettenis
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
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
2010-01-28regenMiod Vallat
2010-01-28HP-UX getpgrp2() is documented as returning the same value than getpgid(),Miod Vallat
with the same error conditions. So reimplement it as the real thing. ok guenther@
2010-01-28Make sure the process tree is is loop-free by forbidding ptrace()Philip Guenthe
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@
2010-01-04Previous commit was too restrictive: just ignore the CLONE_FS flagPhilip Guenthe
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@
2009-12-28Sanity check flags in fork1(), banning some combos we don't supportPhilip Guenthe
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@
2009-12-20svr4_sys_waitsys() was seemingly implemented by copying sys_wait4()Philip Guenthe
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@
2009-12-15- instead of rolling a macro that is functional equivalent to nitems(),Jasper Lievisse Adriaanse
just use nitems(). (this leaves NENTS() alone for now) ok deraadt@ krw@
2009-12-09Add entries in compat signal mapping arrays for SIGTHR.Jonathan Gray
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@
2009-10-28Add compat errno mappings for the ENOTSUP errno addition.Jonathan Gray
ok deraadt@
2009-09-05Fix various cases of stackgap_alloc() size arguments not being computedMiod Vallat
correctly, usually yielding the right value on 32 bit machines because sizeof int == sizeof pointer.
2009-07-09Remove the VREF() macro and replaces all instances with a call to verf(),Thordur I. Bjornsson
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.
2009-06-01Move ibcs2_sendsig into compat. Quit poluting machdep.Tobias Weingartner
Ok guenther@
2009-03-05Make ELF platforms generate ELF core dumps. Somewhat based on code fromMark Kettenis
NetBSD. ok kurt@, drahn@, miod@
2009-02-19sys/types.h or sys/param.h MUST BE FIRSTTheo de Raadt