|PR_SETRLIMIT(3PROC)||Process Control Library Functions||PR_SETRLIMIT(3PROC)|
pr_setrlimit64 — inject
setrlimit system call into victim process
Process Control Library (libproc, -lproc)
*P, int resource, const struct
*P, int resource, struct
function injects the setrlimit(2)
system call into the target process P by means of the
agent LWP. If the process handle P is the value
NULL then this will be equivalent to calling
setrlimit(2) on the currently
function only works on active processes. Process handles that correspond to
core files, zombie processes, or ELF objects do not support system call
function is equivalent to
rather than having the rlimit information be subject to the data model of
the target process, they always provide 64-bit rlimit information. See
lf64(7) for more information.
Upon successful completion, the
pr_setrlimit() function's return value is that
described in setrlimit(2).
Otherwise, -1 is
ENOSYS to indicate that the system call could
not be injected.
For the full list of errors see the ERRORS section in setrlimit(2).
pr_setrlimit() function will fail
|May 11, 2016||OmniOS|