summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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
2003-06-01uvm_km_suballoc passes the 'min' argument untouched to uvm_map. uvm_mapArtur Grabowski
uses it as a hint for where to steal space from the parent map. We've been passing random stack garbage as that hint for ages. It's a wonder it didn't break things until we started working on Hammer. noone objected for at least a week.
2003-05-29Add kern.splassert=3. deraadt@ ok.Hakan Olsson
2003-05-27typos in comments; From: Bengt Wessling <bengt@lemuria.org>, 10xHenning Brauer
2003-05-22remove sprintf() and vsprintf(). nothing in the kernel needs it. ifTheo de Raadt
some module does -- tough -- they can rewrite it using the safer versions.
2003-05-21Match vprintf prototype to userland and standards.Artur Grabowski
deraadt@ ok
2003-05-20ansi and de-register; ok millertJason Wright
2003-05-20support for NTFS. from NetBSD via Julien BordetTed Unangst
2003-05-19no need for nfs headers since nqnfs had been removed way long time agoMichael Shalayeff
2003-05-17Typos; from Julien Bordet <zejames@greyhats.org>Alexander Yurchenko
Close PR 3262
2003-05-14add {b,c}devsw_lookup convenience functions.Ted Unangst
move chrtoblk and blktochr into MI code. tested on several archs and ok deraadt@
2003-05-13Add option NO_PROPOLICE, which explicitely disables the use of the propoliceMiod Vallat
stack protection when building kernels. Intended to be used on installation media, with tight space constraints - currently, only added where SMALL_KERNEL was already defined. Not thoroughly tested, but requested by deraadt.