summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_acct.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* convert bcopy to memcpy. ok millerttedu2014-12-101-2/+2
|
* Eliminates struct pcred by moving the real and saved ugids intoguenther2014-03-301-3/+3
| | | | | | | | | struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
* Convert some internal APIs to use timespecs instead of timevalsguenther2013-06-031-12/+12
| | | | ok matthew@ deraadt@
* Use IO_NOLIMIT instead of munging the process's limitsguenther2012-07-081-18/+3
| | | | ok beck@
* move accounting flags to struct process; idea and ok guenthermikeb2012-04-121-2/+2
|
* Make rusage totals, itimers, and profile settings per-process insteadguenther2012-03-231-13/+14
| | | | | | | of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@
* Correct the links between threads, processes, pgrps, and sessions,guenther2010-07-261-3/+4
| | | | | | | | | 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
* fix typos in comments, no code changes;schwarze2010-01-141-2/+2
| | | | | from Brad Tilley <brad at 16systems dot com>; ok oga@
* move p_limit and p_cred into struct processtedu2007-04-121-6/+6
| | | | | leave macros behind for now to keep the commit small ok art beck miod pedro
* Retire VOP_LEASE(); It was a bit for NQNFS and hasthib2007-01-161-2/+1
| | | | | | | | | effectively been a no-op for quite some time now, without promise for future usage. ok pedro@ Testing by krw@ (earlier diff) and Johan Mson Lindman (tybollt@solace.miun.se)
* grammar, spelling, and style fixes from bret lambert;jmc2006-11-141-2/+2
| | | | kern_descrip.c change ok deraadt
* if a kthread fails to call kthread_exit() but instead returns,tedu2006-01-051-5/+6
| | | | bad things happen. fix acct thread. from art
* ansi/deregister.jsg2005-11-281-5/+2
| | | | 'go for it' deraadt@
* have vn_close() lock the vnode before calling VOP_CLOSE().marius2005-05-281-4/+7
| | | | | | fix the acct_*() code so that we always have a proc to lock on. ok pedro@
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-5/+4
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* shutdown accounting before shutting down vfs. should prevent some panics.tedu2004-05-271-1/+13
| | | | ok david@ millert@ (iirc)
* match syscallargs comments with realityhenning2003-09-011-2/+2
| | | | | from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-2/+2
| | | | | | | | | 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@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Move the accounting disk space watcher into a kernel thread.art2001-11-021-50/+62
| | | | | | Since we do filesystem operations, we need process context. This should fix accounting on nfs.
* Don't set filesize limit to infinity on exit.art2000-05-051-3/+22
| | | | | | | This is only needed in accounting and has to be done carefully because the limit structures are shared between processes. Found by Denis A. Doroshenko, analysed by Hannah Schroeter.
* convert to new timeouts.art2000-03-231-6/+11
|
* Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned (size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC. vn_rdwr() must now take a size_t * ↵millert1998-07-281-3/+2
| | | | as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
* for acct(), vn_open() with O_APPEND flag so that append-only files work;deraadt1998-05-171-2/+2
| | | | problem pointed out by andrew@untraceable.net
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-061-2/+2
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-2/+2
|
* VFS Lite2 Changescsapuntz1997-10-061-2/+2
|
* From NetBSD: 960217 mergeniklas1996-03-031-3/+4
|
* initial import of NetBSD treederaadt1995-10-181-0/+304