2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
15 .Dt PR_GETRLIMIT 3PROC
20 .Nd inject getrlimit system call into victim process
26 .Fa "struct ps_prochandle *P"
28 .Fa "struct rlimit *rlp"
32 .Fa "struct ps_prochandle *P"
34 .Fa "struct rlimit64 *rlp"
41 system call into the target process
43 by means of the agent LWP.
48 then this will be equivalent to calling
50 on the currently running process.
56 have the same meaning as in
60 for the full description and purpose of the
62 system call and its arguments.
66 function only works on active processes.
67 Process handles that correspond to core files, zombie processes, or ELF objects
68 do not support system call injection.
72 function is equivalent to
74 however, rather than having the rlimit information be subject to the data model
75 of the target process, they always provide 64-bit rlimit information.
80 Upon successful completion, the
82 function's return value is that described in
90 to indicate that the system call could not be injected.
92 For the full list of errors see the
99 function will fail if:
102 An error occurred while trying to invoke the agent LWP and inject a
103 system call in the process handle
105 or the process handle
107 does not support system call injection.
109 .Sh INTERFACE STABILITY