diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-18 05:12:14 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-18 05:12:14 +0000 |
commit | f29d8bd9c9c901b81d8fadc341786c43528e63c1 (patch) | |
tree | a5fc4e4696d058bee8f5a8c5498044c06a963bda /lib/libc/sys/getrlimit.2 | |
parent | 906e3d9014b754421b64647e705b3cca2e9a7c01 (diff) |
Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.
Diffstat (limited to 'lib/libc/sys/getrlimit.2')
-rw-r--r-- | lib/libc/sys/getrlimit.2 | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2 index e8f5bbdc55c..afcc0ae04ae 100644 --- a/lib/libc/sys/getrlimit.2 +++ b/lib/libc/sys/getrlimit.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getrlimit.2,v 1.10 2000/04/15 11:46:03 aaron Exp $ +.\" $OpenBSD: getrlimit.2,v 1.11 2000/10/18 05:12:09 aaron Exp $ .\" $NetBSD: getrlimit.2,v 1.8 1995/10/12 15:40:58 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -96,11 +96,12 @@ this defines how far a program's stack segment may be extended. Stack extension is performed automatically by the system. .El .Pp -A resource limit is specified as a soft limit and a hard limit. When a -soft limit is exceeded a process may receive a signal (for example, if -the cpu time or file size is exceeded), but it will be allowed to +A resource limit is specified as a soft limit and a hard limit. +When a soft limit is exceeded a process may receive a signal (for example, +if the cpu time or file size is exceeded), but it will be allowed to continue execution until it reaches the hard limit (or modifies -its resource limit). The +its resource limit). +The .Em rlimit structure is used to specify the hard and soft limits on a resource, .Bd -literal -offset indent @@ -110,8 +111,8 @@ struct rlimit { }; .Ed .Pp -Only the superuser may raise the maximum limits. Other users -may only alter +Only the superuser may raise the maximum limits. +Other users may only alter .Fa rlim_cur within the range from 0 to .Fa rlim_max @@ -150,16 +151,16 @@ A file I/O operation that would create a file larger that the process' soft limit will cause the write to fail and a signal .Dv SIGXFSZ to be -generated; this normally terminates the process, but may be caught. When -the soft cpu time limit is exceeded, a signal +generated; this normally terminates the process, but may be caught. +When the soft cpu time limit is exceeded, a signal .Dv SIGXCPU is sent to the offending process. .Sh RETURN VALUES A 0 return value indicates that the call succeeded, changing -or returning the resource limit. A return value of \-1 indicates -that an error occurred, and an error code is stored in the global -location +or returning the resource limit. +A return value of \-1 indicates that an error occurred, and an error code +is stored in the global variable .Va errno . .Sh ERRORS .Fn getrlimit @@ -174,8 +175,7 @@ is invalid. .It Bq Er EPERM The limit specified to .Fn setrlimit -would have -raised the maximum limit value, and the caller is not the superuser. +would have raised the maximum limit value, and the caller is not the superuser. .El .Sh SEE ALSO .Xr csh 1 , |