summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2003-09-01match syscallargs comments with realityHenning Brauer
from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
2003-08-26fix sys_clock_settime. hint from nordin@ ok deraadt@Ted Unangst
2003-08-23remember to reset exec_maxhdrsz after lkm load/unload. ok fgsch@Ted Unangst
2003-08-23remove native emulations from emulsw. you can't change them and probablyTed Unangst
aren't interested, so keep them out of the sysctl. ok deraadt
2003-08-23knfTheo de Raadt
2003-08-23allow disabling a emul after enabling it; tedu@ ok.Federico G. Schwindt
2003-08-21emulation is now controlled by sysctl. changes:Ted Unangst
add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@
2003-08-21sys/types.h is not really needed with sys/param.h; ok mickey@Kevin Lo
2003-08-20Move the nsem sanity checks where they belong (before the malloc call).Todd C. Miller
This was missed when that code got restructured/re-ordered. Problem reported by blexim AT hush d0t com. OK deraadt@, tedu@, henning@ and miod@
2003-08-18spelling in comment, jonathon grayTed Unangst
2003-08-17unused varTed Unangst
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-08-14constify vfsops; tedu@ okMichael Shalayeff
2003-08-12src argument to m_copyback() can be a const; itojun@ okMichael Shalayeff
2003-08-11constify constant constsMichael Shalayeff
2003-08-11implement CLOCK_MONOTONIC from NetBSD; ok marc@Kevin Lo
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-08-06Remove unreachable return statement after break; Patrick LatifiTodd C. Miller
2003-08-04Use strlcpy(), not strncpy() when copying p->p_comm to core.c_nameTodd C. Miller
to guarantee NUL termination; from Patrick Latifi.
2003-08-03Implement the WCONTINUED flag to the wait(2) family of syscalls and theTodd C. Miller
associated WIFCONTINUED macro as per 1003.1-2001. Adapted from FreeBSD. A minor amount of trickiness is involved here. The value for WCONTINUED is chosen in such a way that _WSTATUS(_WCONTINUED) == _WSTOPPED and the WIFSTOPPED macro has been modified such that WIFSTOPPED(_WCONTINUED) != _WSTOPPED. This means we don't need to add an extra check to the WIFSIGNALED and WIFSTOPPED macros. deraadt@ OK.
2003-07-24kill some externs that are not there anymore and had left other places for a ↵Michael Shalayeff
better void ages ago
2003-07-22make it compile again damnit; from slash@peereboom.usMichael Shalayeff
2003-07-21syncTed Unangst
2003-07-21remove caddr_t casts. it's just silly to cast something when the functionTed Unangst
takes a void *. convert uiomove to take a void * as well. ok deraadt@
2003-07-18check v_mount for NULL before using. ok art@Ted Unangst
2003-07-02bump mktemp randomness from 6->10 X'sAnil Madhavapeddy
2003-07-02comitted->committed in a commentAnil Madhavapeddy
2003-07-01syncTed Unangst
2003-07-01remove sys_omquery. it was only used for two weeks, and you can'tTed Unangst
source upgrade from a system that used it anyway. ok art deraadt drahn
2003-06-28option to log ddb output to kernel message buffer, via sysctl ddb.logTed Unangst
ok deraadt@ henric@ djm@
2003-06-27filter event that simulates seltrue(). From NetBSDNathan Binkert
2003-06-26addrmask canbe constMichael Shalayeff
2003-06-25implement new means of manipulating buf queues, bufq.Ted Unangst
accessed with BUFQ macros, bufq structs support extensible, potentially changable algorithms and queue formats. the current default scheme should support nice priority based queuing, but is missing some vfs_bio.c support. only on wd.c for now, other drivers are easy converts. as a side bonus, this makes the driver code look cleaner. idea for the name comes from netbsd, but this scheme is incompatible. thanks to various people for testing. ok grange@
2003-06-24a.out emulation for dynamic binaries: intercept the right system callsMarc Espie
so that they look in /emul/a.out first. This allows a.out's ld.so to find its own libraries without interfering with ELF at all. Many comments from various people. okay deraadt@
2003-06-23syncTheo de Raadt
2003-06-23fix nfds type; tedu marc okTheo de Raadt
2003-06-22syncTheo de Raadt
2003-06-22extra headersTheo de Raadt
2003-06-21add exec/fork/exit hooks per process for compat emulations.Ted Unangst
use them to correctly emulate linux brk. update to TNF copyright in linux_exec.c. from netbsd, mostly from a diff by Kurt Miller in pr3318. this should fix java. no regressions in testing by kurt and sturm@. be prepared for "proc size mismatch" -- recompile ps and friends. ok deraadt@
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-14doing kqueue on the master side of the pty returns eventsMichael Shalayeff
for the slave size as described in the pr3209. the regress has been created to verify for the conditions. from wayne@epipe.com.au
2003-06-10debug0 and debug1 are defined elsewhere -- make 'em extern hereMichael Shalayeff
2003-06-04mop up some more 3/4 license issuesTheo de Raadt
2003-06-03Two term license with approval from nordin@Artur Grabowski
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-03license cleaning.Artur Grabowski
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02remove clause 3 and 4. -mojMats O Jansson
2003-06-02remove terms 3 and 4 of some of my licencesTheo de Raadt
2003-06-02stackgap_random becomes 64KTheo de Raadt