summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_resource.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed accumulation of run time for processes that don't accumulatebde1996-06-081-7/+5
| | | | | | | | | | | any statclock ticks. Pretend that all the time up to the first statclock tick is system time. . This makes a difference mainly for benchmarks that test short-lived processes - the user and system times for processes that each lived for about 1ms only added up to about 10% of the real time even when there was very little interrupt activity. Break the printing of a quad_t variable correctly.
* From Lite2: proc LIST changeshsu1996-03-111-8/+9
| | | | | stylistic changes to function prototypes Reviewed by: david & bde
* Fix a printf, well, actually break it, that is...phk1996-01-161-10/+10
| | | | We don't have the ability to print 64bit things yet...
* Untangled the vm.h include file spaghetti.dg1995-12-071-1/+6
|
* Included <sys/sysproto.h> to get central declarations for syscall argsbde1995-11-121-1/+18
| | | | | | | | | | structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that.
* Fixed types of rtprio(), osetrlimit() and setrlimit(). The args structbde1995-11-111-12/+12
| | | | | tag and/or member names conflicted with the machine generated ones in <sys/sysproto.h>.
* Fix a sign extension bug that was unleashed by the previous change.bde1995-10-231-3/+9
| | | | | | The total process time was sometimes 2^32 usec too large but that wasn't a problem before because the time was bogusly truncated mod 2^32.
* Avoid overflow in calcru(). Fixes PR 788.bde1995-10-211-2/+2
| | | | Submitted by: imdave@synet.net (Dave Bodenstab)
* Remove trailing whitespace.rgrimes1995-05-301-5/+5
|
* Implement maxprocperuid and maxfilesperproc. They are tunableguido1995-02-201-9/+9
| | | | | | | | | | | | via sysctl(8). The initial value of maxprocperuid is maxproc-1, that of maxfilesperproc is maxfiles (untill maxfile will disappear) Now it is at least possible to prohibit one user opening maxfiles -Guido Submitted by: Obtained from:
* Don't allow negative limits at all. Convert them to RLIM_INFINITY insteadbde1994-12-061-6/+15
| | | | | | | of returning EINVAL since something may depend on them being broken. Allowing negative limits caused bugs almost everywhere. The recent fixes for MAXSSIZ checked the limits too late to stop anyone defeating limits set by root...
* Add one forgotten u_quad_t typecast in dosetrlimit.ats1994-12-021-2/+2
|
* The values for setrlimit in the data size and stack size case areats1994-12-011-6/+6
| | | | | | | | | | used as an address value. Then all comparisons should be done unsigned and not signed. Fix it with a typecast of u_quad_t. Error can be demonstrated with the current bash in port, do a ulimit -s unlimited and the machine hangs. bash delivers through an internal error a large negative value for the stacksize, the comparison saw this smaller than MAXSSIZ and then tried to expand the stack to this size.
* Cosmetics. related to getting prototypes into view.phk1994-10-101-1/+4
|
* "idle priority" support. Based on code from Henrik Vestergaard Draboel,dg1994-10-021-34/+45
| | | | but substantially rewritten by me.
* While in the real world, I had a bad case of being swapped out for a lot ofphk1994-09-251-6/+6
| | | | | | | | cycles. While waiting there I added a lot of the extra ()'s I have, (I have never used LISP to any extent). So I compiled the kernel with -Wall and shut up a lot of "suggest you add ()'s", removed a bunch of unused var's and added a couple of declarations here and there. Having a lap-top is highly recommended. My kernel still runs, yell at me if you kernel breaks.
* Realtime priority scheduling support.dg1994-09-011-1/+59
| | | | Submitted by: Henrik Vestergaard Draboel
* Added $Id$dg1994-08-021-0/+1
|
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-9/+20
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+476
OpenPOWER on IntegriCloud