#
91a535ff |
| 13-Aug-2013 |
guenther <guenther@openbsd.org> |
Switch time_t, ino_t, clock_t, and struct kevent's ident and data members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything
Switch time_t, ino_t, clock_t, and struct kevent's ident and data members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME.
Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures.
DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead.
Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
show more ...
|
#
08be1c18 |
| 03-Jun-2013 |
guenther <guenther@openbsd.org> |
Convert some internal APIs to use timespecs instead of timevals
ok matthew@ deraadt@
|
#
aea7ebe1 |
| 01-Apr-2013 |
guenther <guenther@openbsd.org> |
Make setrlimit() return EINVAL if rlim_cur > rlim_max, per POSIX. Use limfree() instead of decrementing the reference counter directly.
ok kettenis@
|
#
e6fd2ff8 |
| 10-Apr-2012 |
guenther <guenther@openbsd.org> |
Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimit count processes instead of threads. New sysctl()s KERN_NTHREADS and KERN_MAXTHREAD count and limit threads. The nprocs an
Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimit count processes instead of threads. New sysctl()s KERN_NTHREADS and KERN_MAXTHREAD count and limit threads. The nprocs and maxproc kernel variables are replaced by nprocess, maxprocess, nthreads, and maxthread.
ok tedu@ mikeb@
show more ...
|
#
8f15e6a4 |
| 23-Mar-2012 |
guenther <guenther@openbsd.org> |
Make rusage totals, itimers, and profile settings per-process instead of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it.
ok kettenis@
|
#
9ece112b |
| 19-Mar-2012 |
guenther <guenther@openbsd.org> |
Add tracing and dumping of "pointer to struct" syscall arguments for structs timespec, timeval, sigaction, and rlimit.
ok otto@ jsing@
|
#
d4b60c8b |
| 07-Mar-2011 |
guenther <guenther@openbsd.org> |
The scheduling 'nice' value is per-process, not per-thread, so move it into struct process.
ok tedu@ deraadt@
|
#
207e4b38 |
| 26-Jul-2010 |
guenther <guenther@openbsd.org> |
Correct the links between threads, processes, pgrps, and sessions, so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Bas
Correct the links between threads, processes, pgrps, and sessions, so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
show more ...
|
#
7824a839 |
| 29-Jun-2010 |
guenther <guenther@openbsd.org> |
Eliminate struct plimit's PL_SHAREMOD flag: it was for COMPAT_IRIX sproc() support, but we don't have COMPAT_IRIX. ok krw@ tedu@
|
#
2ee379b4 |
| 04-Jan-2010 |
guenther <guenther@openbsd.org> |
Don't decrement the refcnt on a plimits until after we're done copying it, so that the process can't sleep in pool_get() and have the source structure get pool_put() or modified behind its back.
ok
Don't decrement the refcnt on a plimits until after we're done copying it, so that the process can't sleep in pool_get() and have the source structure get pool_put() or modified behind its back.
ok deraadt@
show more ...
|
#
b8b5c1f0 |
| 22-May-2008 |
thib <thib@openbsd.org> |
Use LIST_FOREACH() instead of handrolling.
From: Pierre Riteau pierre.riteau_att_gmail.com OK miod@
|
#
e17acf56 |
| 12-Apr-2007 |
tedu <tedu@openbsd.org> |
move p_limit and p_cred into struct process leave macros behind for now to keep the commit small ok art beck miod pedro
|
#
158fb4f9 |
| 28-Nov-2005 |
jsg <jsg@openbsd.org> |
ansi/deregister. 'go for it' deraadt@
|
#
5bc652b1 |
| 29-May-2005 |
deraadt <deraadt@openbsd.org> |
sched work by niklas and art backed out; causes panics
|
#
51e884f5 |
| 25-May-2005 |
niklas <niklas@openbsd.org> |
This patch is mortly art's work and was done *a year* ago. Art wants to thank everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry.
This patch is mortly art's work and was done *a year* ago. Art wants to thank everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry.
Change the sched_lock to a mutex. This fixes, among other things, the infamous "telnet localhost &" problem. The real bug in that case was that the sched_lock which is by design a non-recursive lock, was recursively acquired, and not enough releases made us hold the lock in the idle loop, blocking scheduling on the other processors. Some of the other processors would hold the biglock though, which made it impossible for cpu 0 to enter the kernel... A nice deadlock. Let me just say debugging this for days just to realize that it was all fixed in an old diff noone ever ok'd was somewhat of an anti-climax.
This diff also changes splsched to be correct for all our architectures.
show more ...
|
#
9d08f8e5 |
| 26-Dec-2004 |
miod <miod@openbsd.org> |
Use list and queue macros where applicable to make the code easier to read; no change in compiler assembly output.
|
#
012ea299 |
| 13-Jun-2004 |
niklas <niklas@openbsd.org> |
debranch SMP, have fun
|
#
c1f74b45 |
| 11-Dec-2003 |
millert <millert@openbsd.org> |
Add id_t type as per POSIX and use it for [gs]etpriority(2). OK henning@ and deraadt@
|
#
be940ca6 |
| 11-Dec-2003 |
millert <millert@openbsd.org> |
POSIX says rlim_t should be unsigned so make it u_quad_t. Also add POSIX-mandated RLIM_SAVED_MAX and RLIM_SAVED_CUR defines. On OpenBSD these are identical to RLIM_INFINITY as allowed by POSIX. OK
POSIX says rlim_t should be unsigned so make it u_quad_t. Also add POSIX-mandated RLIM_SAVED_MAX and RLIM_SAVED_CUR defines. On OpenBSD these are identical to RLIM_INFINITY as allowed by POSIX. OK deraadt@
show more ...
|
#
01b77f95 |
| 01-Sep-2003 |
henning <henning@openbsd.org> |
match syscallargs comments with reality from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
|
#
ad392958 |
| 15-Aug-2003 |
tedu <tedu@openbsd.org> |
change arguments to suser. suser now takes the process, and a flags argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root proces
change arguments to suser. suser now takes the process, and a flags 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@
show more ...
|
#
29295d1c |
| 02-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
cd6cedf5 |
| 15-Oct-2002 |
nordin <nordin@openbsd.org> |
Match reality by changing (u_int) -> (int) in comments.
|
#
ba026f1a |
| 02-Oct-2002 |
nordin <nordin@openbsd.org> |
Check for negative values. Inspiration from tedu <grendel@zeitbombe.org>. ok deraadt@ and art@
|
#
32c3fa3f |
| 21-Jul-2002 |
art <art@openbsd.org> |
Map stack pages without VM_PROT_EXECUTE. Notice that right now this doesn't do anything since no pmap implements exec protection yet.
|