summaryrefslogtreecommitdiff
path: root/sys/compat/sunos
AgeCommit message (Collapse)Author
2003-01-30regen now that setreuid/setregid have moved out of compat and into kernTodd C. Miller
2003-01-30Bring back setreuid(2) and setregid(2) as first class syscallsTodd C. Miller
(but still implemented via setres[ug]id(2)). Basically this just moves them from COMPAT_43 into kern_prot.c. Also fixes a typo in my old implementation. The userland portion will follow in a few days. deraadt@ OK
2003-01-04spellingTheo de Raadt
2002-08-23Just like getvnode, make getsock FREF the file so that we can't get awayArtur Grabowski
with not refing it. Eyeballed by lurene@daemonkitty.net, fries@, nordin@ and fries@ Some additional cleanups by nordin@
2002-08-23Cleanup change. Since almost all callers (except one) of getvnode did a FREFArtur Grabowski
on the returned file, do the FREF inside getvnode so that people can't get away with avoiding FREF and FRELE. Eyeballed by various people.
2002-08-23FREF/FRELE cleanup/simplification, no functional changes; ok artPeter Valchev
2002-07-25Avoid time wrap at securelevel 2. ok millert@ fgsch@Thomas Nordin
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-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-02-14More FREF/FRELE fixesPeter Valchev
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-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-02Be more consistent about using fd_getfile where it matters.Artur Grabowski
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-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-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-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-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat
2001-08-26syncTheo de Raadt
2001-08-26there is no need for .bak filesTheo de Raadt
2001-08-11redundant includes.Artur Grabowski
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-05-16regen after removing compatoptsTodd C. Miller
2001-05-16remove unneeded compatoptsTodd C. Miller
2001-05-05Remove the (vaddr_t) casts inside the round_page and trunc_page macros.Artur Grabowski
We might want to use them on types that are bigger than vaddr_t. Fix all callers that pass pointers without casts.
2001-01-26fix compile error by including compat_dir.hMarco S Hyman
2001-01-23SunOS, IBCS2, Linux, and SVR4 all require translations of directory entriesConstantine Sapuntzakis
from OpenBSD format to their respective native formats. A lot of common code here for interfacing with OpenBSD VOP_READDIR. Most of this code and logic has been moved to common/compat_dir.c When reading a portion of the directory, the compatibility layer registers a callback which is passed an OpenBSD-style dirent and the cookie/offset.
2000-08-15keep file naming consistent, rename exec.h -> sunos_exec.hBrad Smith
2000-04-21O_FYNC -> O_SYNCTodd C. Miller
2000-01-22minor getdents cleanup:Todd C. Miller
o return ENOTDIR, not EINVAL for v_type != VDIR (SunOS behavior) o return EINVAL for values of nbytes too small to hold a single dir entry o remove a redundant check for error != 0
1999-11-26Use round_page(X) instead of roundup(X, NBPG), use PAGE_SIZE instead of NBPG.Artur Grabowski
1999-11-10include syscallnames only if compiling w/ SYSCALL_DEBUG.Michael Shalayeff
was already so for native and sunos, the rest was just wasting space on it. niels@ millert@ ok
1999-07-02sparc -> __sparc__Brad Smith
1999-06-07syncTheo de Raadt
1999-06-07replacement pipe() system call; copies data into place inside kernel, soTheo de Raadt
that EFAULT return value is possible
1999-06-03use __sparc__ just in caseTheo de Raadt
1999-05-21remove duplicate contents from MakefileBrad Smith
1999-02-10Correct directory entry reads, big directories lost entries as it were.Niklas Hallqvist
Also, fix the NCR SVR4 rdebug syscall emulation.
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1998-04-26NetBSD mergeNiklas Hallqvist
1998-04-26New audio adaption; netbsdNiklas Hallqvist
1998-03-23regenTodd C. Miller
1998-03-23Emulated version of SunOS ostime(2) wass totally wrong. For nowTodd C. Miller
we will just return EPERM. Correct code is #if 0'd out as it needs to call settime() which is static to kern_time.c (and it's not clear that we really want to be setting the clock from an emulated program anyway).
1998-03-23Emulate otimes(2)Todd C. Miller
1997-12-18support GETLK,SETLK,UNLK etc like svr4 code does; pkTheo de Raadt
1997-12-04vfs lite2 changes things...Theo de Raadt
1997-11-30fix TIOCGPGRP in sunos emulationTheo de Raadt