summaryrefslogtreecommitdiff
path: root/sys/compat/common
AgeCommit message (Collapse)Author
2003-05-12strlcpy; tedu okTheo de Raadt
2003-05-10Deprecate the swapon system call and move it to COMPAT_25 land, since swapctlMiod Vallat
has been introduced for this release. ok deraadt@ weingart@
2003-04-29Deprecate omsync syscall, and only enable it if COMPAT_25 is required.Miod Vallat
ok deraadt@
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-12-17Make SysV-style shared memory and semaphore limits sysctl'able.Todd C. Miller
Instead of allocating a static amount of memory for the data structures via valloc() in allocsys(), allocate things dynamically using pool(9) when possible and malloc(9) when not. The various members of struct seminfo and struct shminfo are in kern.seminfo and kern.shminfo respectively (not all members of kern.seminfo are changable). The data structures used still leave something to be desired but things are not made worse in that respect by this commit.
2002-10-30Implement osetre[ug]id() in terms of setres[ug]id().Todd C. Miller
2002-10-03Check for negative values here too. "makes sense" mickey@, ok deraadt@Thomas 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-07-20Instead of copying out the signal trampoline on top of the stack, createArtur Grabowski
an uvm aobj, copy out the signal trampoline into it and share that page among all processes for the same emulation. This also requires us to actually be able to tell signal code where the trampoline is located, so introduce a new field in struct proc - p_sigcode that is a pointer to sigcode. This allows us to remove all the ugly calculations of the signal trampoline address done in every sendsig function in the tree (that's why so many files are changed). Tested by various people. ok deraadt@
2002-07-14More glue needed for cross-compilationMarcus Watts
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-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-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ okThomas Nordin
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-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-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat
2001-08-19correct the logic.Artur Grabowski
2001-08-19$%&@#!Artur Grabowski
2001-08-12absolutely no need to include vm_parm.h after vm.hMichael Shalayeff
2001-08-11Why is it so popular to include <vm/*.h> everywhere?Artur Grabowski
2001-08-11Unnecessary includes.Artur Grabowski
2001-06-27Remove old vm.Artur Grabowski
2001-05-16Create COMPAT_25 and move ogetfsstat, ostatfs and ostatfs into it.Todd C. Miller
Create COMPAT_23 and move __osemctl, omsgctl, oshmctl there.
2001-05-16kill COMPAT_{09,10,11} kernel options. We still need kern_info_09.c and ↵Todd C. Miller
kern_ipc_10.c for other compat modules.
2001-05-14use fo_stat in fileops instead of huge switch statements.Artur Grabowski
2001-05-14Implement a wrapper round vn_stat that takes the same argumentsArtur Grabowski
as soo_stat and pipe_stat.
2001-05-14More generic arguments to soo_stat.Artur Grabowski
2001-05-14More generic arguments to pipe_stat.Artur Grabowski
2001-05-11MAP_COPY -> MAP_PRIVATEArtur Grabowski
2001-04-10Don't seg-fault on file systems that don't support cookies. Thanks toConstantine Sapuntzakis
Jason Ish for finding this one.
2001-02-19spl sanityArtur Grabowski
2001-01-23Clamp malloc in compat_43_sys_getdirentries to 64kConstantine Sapuntzakis
We should really get rid of all mallocs in the compat and VOP_READDIRs.
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-10-16- Fix for some linux apps that broke with recent changes; from NetBSDjasoni
2000-09-07Add bounds checking to stackgap_alloc and return NULL if space cant beEric Jackson
given. Make emul_find() check for this situation as well. Changes based partly on FreeBSD and NetBSD changes. aaron@ ok
2000-07-27some cleanup and add the emul_flags_translate from netbsd to translateEric Jackson
flags. deraadt@ OK
2000-05-01sys_semconfig goes foomTheo de Raadt
1999-11-26Use round_page(X) instead of roundup(X, NBPG), use PAGE_SIZE instead of NBPG.Artur Grabowski
1999-09-17bad style to include machine/vmparam.h carelesslyTheo de Raadt
1999-05-22Add new vm_swap code for dynamic swap. From netbsd, munged some by me, andTobias Weingartner
others. syscall commit pending.
1999-02-26vm_sysctl -> uvm_sysctl for uvmArtur Grabowski
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1998-12-20Use IOV_MAX, not the deprecated UIO_MAXIOVTodd C. Miller
1998-08-05add missing check for msg.msg_iovlen <= 0Todd C. Miller