summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_resource.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove a bunch of variables which were unused both in GENERIC and LINT.phk1997-11-071-2/+2
| | | | Found by: -Wunused
* Move the "retval" (3rd) parameter from all syscall functions and putphk1997-11-061-18/+10
| | | | | | | | | | | | it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled.
* Print more info in the "calcru: negative time" message.bde1997-08-261-2/+3
|
* Man the liferafts! Here comes the long awaited SMP -> -current merge!peter1997-04-261-2/+4
| | | | | | | | | | | | | | | | There are various options documented in i386/conf/LINT, there is more to come over the next few days. The kernel should run pretty much "as before" without the options to activate SMP mode. There are a handful of known "loose ends" that need to be fixed, but have been put off since the SMP kernel is in a moderately good condition at the moment. This commit is the result of the tinkering and testing over the last 14 months by many people. A special thanks to Steve Passe for implementing the APIC code!
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* This is the kernel Lite/2 commit. There are some requisite userlanddyson1997-02-101-1/+1
| | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Make DFLDSIZ and MAXDSIZ fully-supported options.joerg1996-12-221-1/+3
| | | | "Don't forget to do a ``make depend''" :-)
* 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