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.
21 .Nd inject stat system call into victim process
27 .Fa "struct ps_prochandle *P"
29 .Fa "struct stat *buf"
33 .Fa "struct ps_prochandle *P"
34 .Fa "const char *path"
35 .Fa "struct stat *buf"
39 .Fa "struct ps_prochandle *P"
40 .Fa "const char *path"
41 .Fa "struct stat *buf"
54 system calls respectively into the target process
56 by means of the agent LWP.
61 then this will be equivalent to calling
66 on the currently running process.
74 function have the same meaning as in
78 for the full description and purpose of the
80 system call and its arguments.
88 function have the same meaning as in
92 for the full description and purpose of the
94 system call and its arguments.
102 function have the same meaning as in
106 for the full description and purpose of the
108 system call and its arguments.
115 functions only work on active processes.
116 Process handles that correspond to core files, zombie processes, or ELF objects
117 do not support system call injection.
119 Upon successful completion, the
121 function's return value is that described in
129 to indicate that the system call could not be injected.
131 For the full list of errors see the
138 function will fail if:
141 An error occurred while trying to invoke the agent LWP and inject a
142 system call in the process handle
144 or the process handle
146 does not support system call injection.
148 .Sh INTERFACE STABILITY