summaryrefslogtreecommitdiff
path: root/sys/compat/svr4
AgeCommit message (Collapse)Author
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.
2000-11-10Change the ktrace interface functions from taking the trace vnode to taking theArtur Grabowski
traced proc. The vnode is in the proc and all functions need the proc.
2000-09-07common/compat_util.cEric Jackson
2000-08-30additional range checking; From: NetBSDBrad Smith
2000-08-29remove duplicate inclusion of sys/ioctl.hBrad Smith
2000-08-23regen.Federico G. Schwindt
2000-08-23- Simplify pread and pwrite now that we have a native implementation.Federico G. Schwindt
- Implement pread/pwrite 64. - Add DUP2FD fcntl command, which is nothing else than dup2 (according to solaris manpage). This solves the dup error and the freezing problem on netscape-solaris (DNS still not working, tho). code from NetBSD.
2000-08-23NetBSD RCS idBrad Smith
2000-08-23svr4_error -> native_to_svr4_errnoBrad Smith
2000-08-23svr4_error -> native_to_svr4_errnoBrad Smith
2000-08-23rename to svr4_error.c to svr4_errno.cBrad Smith
2000-06-28syncFederico G. Schwindt
2000-06-28add creat64 and mmap64.Federico G. Schwindt
2000-06-24syncFederico G. Schwindt
2000-06-24Implement getdents64, lstat64 and stat64, basically the same functions ofFederico G. Schwindt
the existing ones using 64bit vars. This makes netscape-solaris works on sparc. Particular note to those who want to try netscape: - netscape 4.73 was used for testing on a ss5 with -current. - apparently solaris uses pipes for communicating with the X server. I've checked the libraries I've installed from a solaris 2.6 box, and although there are references to X11-unix, it fails when it tries to open X11-pipe/X0, so in order to test it you need to specify -display <box ip>:0 or it won't start. - i got some errors when starting, but besides that, it works fine. - it's not slow, but you better have all the requiered files in the correct paths, or it'll take some time to start.