summaryrefslogtreecommitdiff
path: root/sys/compat
AgeCommit message (Collapse)Author
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-14Final __P removal plus some cosmetic fixupsTodd C. Miller
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-03-11Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.Artur Grabowski
They still stay in MD code for backwards compatibility, but a check in ptrace.h checks if they are defined. Note - the same thing will be done with PT_{GET,SET}FPREGS once vax implements them and with PT_STEP when it's implemented by sparc, sparc64 and alpha.
2002-02-22Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@Dale Rahn
2002-02-16Make this compile.Miod Vallat
2002-02-14More FREF/FRELE fixesPeter Valchev
2002-02-13Ooops. unbreak after last.Artur Grabowski
noted by pvalchev@
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-12test before commitTheo de Raadt
2002-02-12More FREF/FRELE protection. This time all users of getvnode.Artur Grabowski
2002-02-12Fix all users of getsock to use FREF/FRELE properly.Artur Grabowski
2002-02-08Opps. unbreak.Artur Grabowski
2002-02-08- Rename FILE_{,UN}USE to FREF and FRELE. USE is a bad verb and we don't haveArtur Grabowski
the same semantics as NetBSD anyway, so it's good to avoid name collissions. - Always fdremove before freeing the file, not the other way around. - falloc FREFs the file. - have FILE_SET_MATURE FRELE the file (It feels like a good ortogonality to falloc FREFing the file). - Use closef as much as possible instead of ffree in error paths of falloc:ing functions. closef is much more careful with the fd and can deal with the fd being forcibly closed by dup2. Also try to avoid manually calling *fo_close when closef can do that for us (this makes some error paths mroe complicated (sys_socketpair and sys_pipe), but others become simpler (sys_open)).
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
2002-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ okThomas Nordin
2002-01-22call osf1_exec_ecoff_hook for osf1 bin'sEric Jackson
2002-01-16Don't include <sys/map.h> when you don't need what's in it.Miod Vallat
2001-11-30Only m68k-based architectures need to include <machine/psl.h> here.Miod Vallat
2001-11-28Sync in more uvm changes from NetBSD.Artur Grabowski
This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead.
2001-11-27sync. -mojMats O Jansson
2001-11-27Add clock_gettime. -moj ok art@Mats O Jansson
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-14Compat layer for 1k Vax aout, from NetBSD.Hugh Graham
2001-11-07Add an alignment argument to uvm_map that specifies an alignment hintArtur Grabowski
for the virtual address.
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-11-05More fallout from the fd_getfile changes.Artur Grabowski
2001-11-05blink-matching-paren should be default in mgArtur Grabowski
2001-11-02Fix typo when assigning bds->sem_base.Todd C. Miller
The SVR4 compat stuff needs a serious sync but so far no one has been able to goat Niklas into doing it.
2001-10-31There is no need to fake handling of /dev/zero here. The vm system ↵Artur Grabowski
ultrix/ultrix_misc.c sunos/sunos_misc.c does this automagically (and has done it for ages).
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-10-10regenArtur Grabowski
2001-10-10Don't roll our own dup, we cen use the standard one.Artur Grabowski
2001-10-02Values coming from userland should be bounds checked, even if we put themConstantine Sapuntzakis
there just a couple calls ago. Thanks to Ken Ashcraft of Stanford for finding this bug.
2001-09-21Unnecessary wrapper.Artur Grabowski
2001-09-21Save some space on the stack for AuxInfo. Dynamic binaries now have the ↵Artur Grabowski
correct argv.
2001-09-21regenArtur Grabowski
2001-09-21no need for own implemenation of p{read,write}{,v}Artur Grabowski
2001-09-20occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok
2001-09-19Unify elf32 and elf64 code with macros. This forced a renamingArtur Grabowski
of a few functions from elf32.
2001-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat