summaryrefslogtreecommitdiff
path: root/sys/compat/ibcs2
AgeCommit message (Collapse)Author
2008-05-01spl0() is not your friend, use splx() instead.Miod Vallat
2007-11-27regenArtur Grabowski
2007-10-27Make sure the compat errno mapping arrays go up to ELAST, and correctlyMiod Vallat
translate the errnos added over the last few releases.
2007-09-01replace the machine dependant bytes-to-clicks macro by the MI ptoa()Martin Reindl
version for i386 more architectures and ctob() replacement is being worked on prodded by and ok miod
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
2006-12-29Avoid void * arithmetic, okay deraadt@, suggestions from millert@Pedro Martelletto
2004-09-19constify speedtabs and make ttspeedtab() take a const struct speedtab *Michael Shalayeff
2004-07-09regenTodd C. Miller
2004-07-09Rename ostat -> stat43 to disambiguate from upcoming struct stat changes.Todd C. Miller
Idea from NetBSD, OK deraadt@
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-18path_index isn't used for anything, so comment it out. idea millert@Ted Unangst
2003-11-17add a missing bounds check that allowed a stack overrun. reported byTed Unangst
Georgi Guninski. also prevent an int overflow. ok millert@
2003-11-03verify exec headers before attempting malloc. reported by Georgi Guninski.Ted Unangst
2003-10-01out-of-bound memory access. deraadt okJun-ichiro itojun Hagino
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-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
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
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-22Change the vnode locking in exec to not keep the vnode locked almost allArtur Grabowski
the time. This could lead to problems when a process wants to do an exec on the same vnode it's being run from and needs to copy in arguments from an uncached page in the data segment. When that happens uvm detects a vnode deadlock and returns an error causing execve() return EFAULT. This fixes the regress test in regress/sys/kern/exec_self Also, initialize scriptvp early in exec_script because it could be used uninitialized in a failure case.
2002-08-02More possible int overflows found by Silvio Cesare.Todd C. Miller
ibcs2_stat.c one OK by provos@
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-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-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-08-26syncTheo de Raadt
2001-08-26there is no need for .bak filesTheo de Raadt
2001-07-10ANSI C does not like labels: without a statement after that.Marc Espie
Restore missing breaks.
2001-05-16regen after removing compatoptsTodd C. Miller
2001-05-16remove unneeded compatoptsTodd C. Miller
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-12-06s/packed/__packed__/Michael Shalayeff
2000-09-07common/compat_util.cEric Jackson
2000-08-30remove duplicate inclusion of sys/ioctl.hBrad Smith
2000-04-21O_FYNC -> O_SYNCTodd C. Miller
2000-03-05fix size check case for getgroups; pbucich@sion.comTheo de Raadt
1999-11-20ioctl arguments are u_long.Marc Espie
Replaces `undefined' code with `defined' behavior... gcc 2.96 performs switch cases range analysis, warns about unreachable cases, and weeds them out. In switch(i) { case VALUE: } VALUE is first coerced into the type of i. If i is signed, VALUE is unsigned and exceeds i range, you lose... the result of the conversion is undefined.
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-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-02-10Correct directory entry reads, big directories lost entries as it were.Niklas Hallqvist
Also, fix the NCR SVR4 rdebug syscall emulation.
1999-01-23Kill svr4 #pragma pack.Marc Espie
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller