Next: , Previous: , Up: posix resources   [Index]


4.21.2 Data structure struct-rusage

Struct Type: struct-rusage

Scheme level representation of the C language type struct rusage, (libc)struct rusage. It has the following fields:

ru_utime

An instance of struct-timeval.

ru_stime

An instance of struct-timeval.

ru_maxrss

An exact integer in the range of the C language type long int.

ru_ixrss

An exact integer in the range of the C language type long int.

ru_idrss

An exact integer in the range of the C language type long int.

ru_isrss

An exact integer in the range of the C language type long int.

ru_minflt

An exact integer in the range of the C language type long int.

ru_majflt

An exact integer in the range of the C language type long int.

ru_nswap

An exact integer in the range of the C language type long int.

ru_inblock

An exact integer in the range of the C language type long int.

ru_oublock

An exact integer in the range of the C language type long int.

ru_msgsnd

An exact integer in the range of the C language type long int.

ru_msgrcv

An exact integer in the range of the C language type long int.

ru_nsignals

An exact integer in the range of the C language type long int.

ru_nvcsw

An exact integer in the range of the C language type long int.

ru_nivcsw

An exact integer in the range of the C language type long int.

Notice some of the fields may be meaningless on some platforms, in which case they are set to #f.

Function: make-struct-rusage
Function: make-struct-rusage

Build and return a new instance of struct-rusage. When no arguments are given: the fields ru_utime and ru_stime are set to instance of struct-timeval with fields set to zero, all the other fields are set to #f.

Function: struct-rusage? obj

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

Function: struct-rusage-ru_utime rusage
Function: struct-rusage-ru_stime rusage
Function: struct-rusage-ru_maxrss rusage
Function: struct-rusage-ru_ixrss rusage
Function: struct-rusage-ru_idrss rusage
Function: struct-rusage-ru_isrss rusage
Function: struct-rusage-ru_minflt rusage
Function: struct-rusage-ru_majflt rusage
Function: struct-rusage-ru_nswap rusage
Function: struct-rusage-ru_inblock rusage
Function: struct-rusage-ru_oublock rusage
Function: struct-rusage-ru_msgsnd rusage
Function: struct-rusage-ru_msgrcv rusage
Function: struct-rusage-ru_nsignals rusage
Function: struct-rusage-ru_nvcsw rusage
Function: struct-rusage-ru_nivcsw rusage

Accessors for the fields of struct-rusage.

Function: set-struct-rusage-ru_utime! rusage value
Function: set-struct-rusage-ru_stime! rusage value
Function: set-struct-rusage-ru_maxrss! rusage value
Function: set-struct-rusage-ru_ixrss! rusage value
Function: set-struct-rusage-ru_idrss! rusage value
Function: set-struct-rusage-ru_isrss! rusage value
Function: set-struct-rusage-ru_minflt! rusage value
Function: set-struct-rusage-ru_majflt! rusage value
Function: set-struct-rusage-ru_nswap! rusage value
Function: set-struct-rusage-ru_inblock! rusage value
Function: set-struct-rusage-ru_oublock! rusage value
Function: set-struct-rusage-ru_msgsnd! rusage value
Function: set-struct-rusage-ru_msgrcv! rusage value
Function: set-struct-rusage-ru_nsignals! rusage value
Function: set-struct-rusage-ru_nvcsw! rusage value
Function: set-struct-rusage-ru_nivcsw! rusage value

Mutators for the fields of struct-rusage.


Next: , Previous: , Up: posix resources   [Index]