*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: getrlimitusage | Section: 2 | Source: FreeBSD | File: getrlimitusage.2.gz
GETRLIMITUSAGE(2) FreeBSD System Calls Manual GETRLIMITUSAGE(2) NAME getrlimitusage - Query usage of the current process' limited resources LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <sys/resource.h> int getrlimitusage(unsigned which, int flags, rlim_t *res); DESCRIPTION The getrlimitusage system call allows the process to query current consumption of the resources limited by the setrlimit(2) call. The which argument specifies the resource, same as for getrlimit(2) and setrlimit(2) calls, see their man page for the list of enforced resource types. The flags argument modifies the behavior of the call in the following ways: GETRLIMITUSAGE_EUID Query the resource usage for user identified by effective UID of the process, instead of the real UID (which is default for accounting). RETURN VALUES Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS The getrlimitusage() system call will fail if: [EFAULT] The address specified for res is invalid. [EINVAL] The resource specified to getrlimitusage() in the which argument is unknown. [ENXIO] The resource specified to getrlimitusage() in the which argument is not accounted, but only enforced in specific situations. Examples of such resources are RLIMIT_FSIZE and RLIMIT_CORE. SEE ALSO procstat(1), getrlimit(2), setrlimit(2) HISTORY The getrlimitusage() system call appeared in 15.0BSD. FreeBSD 14.1-RELEASE-p8 September 27, 2024 FreeBSD 14.1-RELEASE-p8

Navigation Options