Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit b2b17bf

Browse files
bulwahnchiichen
authored andcommitted
manual: make setrlimit() description less ambiguous
The existing description for setrlimit() has some ambiguity. It could be understood to have the semantics of getrlimit(), i.e., the limits from the process are stored in the provided rlp pointer. Make the description more explicit that rlp are the input values, and that the limits of the process is changed with this function. Reviewed-by: Florian Weimer <[email protected]>
1 parent 33ac299 commit b2b17bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manual/resource.texi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ If the sources are compiled with @code{_FILE_OFFSET_BITS == 64} on a
192192
@standards{BSD, sys/resource.h}
193193
@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
194194
@c Direct syscall on most systems; lock-taking critical section on HURD.
195-
Store the current and maximum limits for the resource @var{resource}
196-
in @code{*@var{rlp}}.
195+
Change the current and maximum limits of the process for the resource
196+
@var{resource} to the values provided in @code{*@var{rlp}}.
197197

198198
The return value is @code{0} on success and @code{-1} on failure. The
199199
following @code{errno} error condition is possible:

0 commit comments

Comments
 (0)