diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-12 14:50:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-12 14:50:08 +0000 |
commit | 565ada34d48e760bb81666ecddbd3c67eeffe4e1 (patch) | |
tree | 2e93ffbf29eafd75ddb5cb83e2693274b943c4f2 /lib/libc | |
parent | 98556d4ac9e1cc382f4da894a69bf8f381a1d38d (diff) |
Document RLIM_SAVED_CUR and RLIM_SAVED_MAX; jmc@ OK
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/getrlimit.2 | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2 index 25d3dabbaa2..05b124938b4 100644 --- a/lib/libc/sys/getrlimit.2 +++ b/lib/libc/sys/getrlimit.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getrlimit.2,v 1.14 2003/09/04 23:35:47 tdeval Exp $ +.\" $OpenBSD: getrlimit.2,v 1.15 2003/12/12 14:50:07 millert Exp $ .\" $NetBSD: getrlimit.2,v 1.8 1995/10/12 15:40:58 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -120,6 +120,27 @@ An value for a limit is defined as .Dv RLIM_INFINITY . .Pp +A value of +.Ev RLIM_SAVED_CUR +or +.Ev RLIM_SAVED_MAX +will be stored in +.Fa rlim_cur +or +.Fa rlim_max +respectively by +.Fn getrlimit +if the value for the current or maximum resource limit cannot be stored in an +.Li rlim_t . +The values +.Ev RLIM_SAVED_CUR +and +.Ev RLIM_SAVED_MAX +should not be used in a call to +.Fn setrlimit +unless they were returned by a previous call to +.Fn getrlimit . +.Pp Because this information is stored in the per-process information, this system call must be executed directly by the shell if it is to affect all future processes created by the shell; @@ -180,6 +201,13 @@ would have raised the maximum limit value, and the caller is not the superuser. .Xr sigaction 2 , .Xr sigaltstack 2 , .Xr sysctl 3 +.Sh STANDARDS +The +.Fn getrlimit +and +.Fn setrlimit +function calls are expected to conform to +.St -p1003.1-03 . .Sh HISTORY The .Fn getrlimit |