summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2004-03-17Add missing open paren in comment noticed by jmc@Todd C. Miller
2004-03-17Adjust the number of processes waiting on a semaphore properly if we'reTodd C. Miller
woken up in the middle of sleeping; cperciva@freebsd.org. OK deraadt@
2004-03-14nicer printf for copyright. from Pedro MartellettoTed Unangst
2004-03-13sync comments with reality, semconfig is long gone.Ted Unangst
2004-03-12don't leak memory on error, from Patrick LatifiTed Unangst
ok deraadt@ millert@
2004-03-03better way of finding and identifying lkms.Ted Unangst
adapted from pr2910 by peter werner, minus lkmfree removals since i couldn't tell what issue they were fixing.
2004-02-29Check for negative numbers.Tobias Weingartner
ok grange@
2004-02-28RegenMiod Vallat
2004-02-28Rather than adding amd64 to the 64-bit platform which do not require theMiod Vallat
old COMPAT_10 SysV syscalls, check for __LP64__ instead. ok deraadt@
2004-02-27Move setperf_prio to the machdep code, requested by deraadt@Alexander Yurchenko
ok deraadt@
2004-02-27Introduce simple priorities mechanism so that concurrentAlexander Yurchenko
hw.setperf handlers don't override each other. Problem reported and tested by danh@. ok tedu@ deraadt@
2004-02-24sysctl knob for bpf tunables. some tips from canacar@Ted Unangst
ok canacar@ deraadt@ mcbride@
2004-02-23Make sure we allow for the time when check_pty has not yet been calledBob Beck
before we get invoked, by making sure getfree thinks an unused and unallocated pt_softc entry is actually free rather than following NULL. ok cedric@
2004-02-15add sysctl_int_arr() API similar to BSD/OS; ok itojun, deraadt, miod, henningMarkus Friedl
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-02-15pretty code that's easier to read, same effect.Ted Unangst
from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-02-14Simplify hw.{cpuspeed,setperf} api moving all the sysctl stuffAlexander Yurchenko
from the underlying callbacks. Testing hppa mickey@, ppc drahn@ Ok markus@ tedu@
2004-02-10Fix off-by-one wrt TTY_LETTERS and minor being out of bounds. MissedTodd C. Miller
when I fixed the other TTY_LETTERS/TTY_SUFFIX off-by-ones.
2004-02-10Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGETTodd C. Miller
ioctl(2), an unprivileged process may allocate a pty and have its owner and mode set appropriately. This means that programs such as xterm and screen no longer need to be setuid. Programs using the openpty() function require zero changes and will "just work". Designed by beck@ and deraadt@; changes by beck@ with cleanup (and a rewrite of the vnode bits) by art@ and tweaks/bugfixes by me. Tested by many.
2004-02-10Dynamically allocate space for ptys; adapted from NetBSD by beck@Todd C. Miller
2004-02-08restored & repaired wcookie support; kettenis@chello.nlTheo de Raadt
2004-02-05Decrement reference count in error case if uvm_map(9) fails and weTodd C. Miller
had previously increased the reference count. Should not happen, but... From dhartmei@; ok deraadt@
2004-02-05Correct a reference counting bug in shmat(2); adapted from FreeBSD.Todd C. Miller
OK deraadt@ tedu@ dhartmei@
2004-02-01Grok union like struct in genassym.cf. Will be needed shortly.Miod Vallat
2004-01-29The Sxxx proc state defines start at 1, not 0. Also make the constTodd C. Miller
usage more correct and fix a signed/unsigned format mismatch. Based on a patch from Patrick Latifi. OK deraadt@
2004-01-28oh, i'll happily steal the commit. ok henning@, markus@, otto@ (iirc)Daniel Hartmeier
from KOZUKA Masahiro, fixes PR 3651
2004-01-26having the monotonic thing as DEBUG is not going to get it fixed faster, it ↵Theo de Raadt
is just going to annoy people
2004-01-21dynamic bufq support. basically a nullop. ok grange@Ted Unangst
2004-01-21call timeout_startup early, so timeouts are available. report from sam smithTed Unangst
ok art deraadt
2004-01-14Get rid of M_LOCKF and use pool for allocating lockf structures.Alexander Yurchenko
From NetBSD. Tested by many people, ok art@.
2004-01-14syncTed Unangst
2004-01-14change sigaltstack.ss_size type to size_t. handle syscall fallout.Ted Unangst
add stack_t and ucontext_t typedefs. ok deraadt@
2004-01-12syncTed Unangst
2004-01-12new syscall closefrom(int fd) closes all fds equal and greater than fd.Ted Unangst
ok deraadt@ millert@
2004-01-12klist_invalidate to help clean up when the backend disappears, tested by mpf@Ted Unangst
2004-01-12these need to be synced when vnode_if.src changesTed Unangst
2004-01-09back out vnode parents. weird breakge found in ports treeTed Unangst
2004-01-07Add p_rlim_rss_cur for ps "lim" field. OK deraadt@Todd C. Miller
2004-01-07no kern_watchdog for SMALL_KERNEL; ok deraadt@Markus Friedl
2004-01-07Unbreak KERN_PROC_KTHREAD. Explicitly list KERN_PROC_KTHREAD inTodd C. Miller
the sysctl_doproc() switch so it does not match the default case (EINVAL). deraadt@ OK.
2004-01-07Add p_emul to kinfo_proc2 for psTodd C. Miller
2004-01-07Implement KERN_PROC2 sysctl from NetBSD. This will allow us toTodd C. Miller
have ps and friends be independent of changes in struct proc et al in the kernel. OK deraadt@
2004-01-06keep track of a vnode's parent dir. ufs only, and unused atm, butTed Unangst
the fun stuff is coming. testing by brad.
2004-01-06lock filedesc before manipulating. avoids some rare races.Ted Unangst
testing for quite some time by brad + otto
2004-01-03put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macrosMarc Espie
to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@.
2004-01-012004Theo de Raadt
2003-12-31regenTodd C. Miller
2003-12-31wait4(2) takes and returns pid_t, not int. OK deraadt@ and miod@Todd C. Miller
2003-12-28make check for too large allocations earlier, instead of fiddling with it.Ted Unangst
less error prone (no wraparound). no real functional change though. ok markus tdeval
2003-12-23enough is enough, driving people insane is not niceTheo de Raadt