summaryrefslogtreecommitdiff
path: root/sys/compat/svr4
AgeCommit message (Collapse)Author
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for aTodd C. Miller
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-08-07malloc svr4_utsname struct as needed instead of on stack; ok millertTheo de Raadt
2004-06-22Replace a whole bunch of scary uses of strncpy() with strlcpy() andJean-Francois Brousseau
use compat-specific MAXNAMLEN values where appropriate ok millert@, pedro@
2003-11-23check for too-small length in stream debug codeAnil Madhavapeddy
discussed with grange@ tedu@
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-05-07string cleaning; ok art teduTheo de Raadt
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-09Remove fetch(9) and store(9) functions from the kernel, and replace the fewMiod Vallat
remaining instances of them with appropriate copy(9) usage. ok art@, tested on all arches unless my memory is non-ECC
2002-11-06maintain refcnt correctly, ok art@Niklas Hallqvist
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-07-06syncThomas Nordin
2002-07-06Remove kernel support for NTP. ok deraadt@ and tholo@Thomas Nordin
2002-04-25unfudge size_t vs. unsigned int parameters.Marc Espie
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-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-12test before commitTheo de Raadt
2002-02-12More FREF/FRELE protection. This time all users of getvnode.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-02Be more consistent about using fd_getfile where it matters.Artur Grabowski
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-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-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-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-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-19Unify elf32 and elf64 code with macros. This forced a renamingArtur Grabowski
of a few functions from elf32.
2001-08-28don't reference seminfo if SYSVSEM isn't definedJason Wright
2001-08-26remove duplicate syscallargs() macrosTheo de Raadt
2001-08-26syncTheo de Raadt
2001-08-26there is no need for .bak filesTheo de Raadt
2001-08-22Consolidate svr4_waitsys with our wait4. Fixes gdt_get_slot panic, due to a ↵Niklas Hallqvist
double cpu_wait invocation.
2001-08-11Unnecessary and redundant includes.Artur Grabowski
2001-06-27Remove old vm.Artur Grabowski
2001-06-21Do not FREE() stuff allocated in a poolNiklas Hallqvist
2001-05-16regen after removing compatoptsTodd C. Miller
2001-05-16remove unneeded compatoptsTodd C. Miller
2001-05-14Add a fo_stat member to struct fileops. Used soon.Artur Grabowski
Also add a stat function for kqueue from FreeBSD.
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-04-18Declare undeclared variable in #ifdef DEBUG_SVR4Niklas Hallqvist
2001-03-25Don't access user space pointer directly. Thanks to dawson and teamConstantine Sapuntzakis
2001-03-16More copyin bugs.Constantine Sapuntzakis
2001-03-16Fix copyin argument order bug. Thanks to Dawson Engler and team.Constantine Sapuntzakis
2001-03-01port kqueue changes from freebsd, plus all required openbsd glue.Niels Provos
okay deraadt@, millert@ from jlemon@freebsd.org: extend kqueue down to the device layer, backwards compatible approach suggested by peter@freebsd.org
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.