rlimit
Setting resource limits
rlimit
- rlimit RESOURCE #!optional HARD?procedure
Returns the current limit for the RESOURCE, which should be one of the resource-identifiers listed below. By default the soft limit is returned, but if HARD? is given and true, the current hard limit is returned. See the getrlimit(2) man page for more information.
Note that if no limit is set, +inf.0 will be returned.
- (set! (rlimit RESOURCE [HARD?]) VALUE)procedure
Sets the soft or hard limit for the RESOURCE. A VALUE of +inf.0 disables the limit completely. A VALUE of #f is equivalent to zero.
rlimit/RESOURCE
Here is a list of available resources. Some resource types mot be available on every platform.
- rlimit/asconstant
- rlimit/coreconstant
- rlimit/cpuconstant
- rlimit/dataconstant
- rlimit/fsizeconstant
- rlimit/locksconstant
- rlimit/memlockconstant
- rlimit/msgqueueconstant
- rlimit/niceconstant
- rlimit/nofileconstant
- rlimit/nprocconstant
- rlimit/ofileconstant
- rlimit/rssconstant
- rlimit/rtprioconstant
- rlimit/rttimeconstant
- rlimit/sigpendingconstant
- rlimit/stackconstant
- rlimit/vmemconstant
Version history
- 1.0.0
- CHICKEN 5 release.
License
Copyright (c) 2006, Felix L. Winkelmann. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.")