Next: , Up: posix resources   [Index]


4.21.1 Data structure struct-rlimit

Struct Type: struct-rlimit

Scheme level representation of the C language type struct rlimit, (libc)struct rlimit. Hold the soft and hard limits of a resource.

rlim_cur

An exact integer representing the soft limit.

rlim_max

An exact integer representing the hard limit.

Function: make-struct-rlimit
Function: make-struct-rlimit cur max

Build and return a new instance of struct-rlimit. When no arguments are given: the fields are initialised with the fixnum zero.

Function: struct-rlimit? obj

Return #t if obj is an instance of struct-rlimit.

Function: struct-rlimit-rlim_cur rlim
Function: struct-rlimit-rlim_max rlim

Accessors for the fields of struct-rlimit.

Function: set-struct-rlimit-rlim_cur! rlim value
Function: set-struct-rlimit-rlim_max! rlim value

Mutators for the fields of struct-rlimit.