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.
24 .Nd inject stat system call into victim process
30 .Fa "struct ps_prochandle *P"
32 .Fa "struct stat *buf"
36 .Fa "struct ps_prochandle *P"
38 .Fa "struct stat64 *buf"
42 .Fa "struct ps_prochandle *P"
43 .Fa "const char *path"
44 .Fa "struct stat *buf"
48 .Fa "struct ps_prochandle *P"
49 .Fa "const char *path"
50 .Fa "struct stat64 *buf"
54 .Fa "struct ps_prochandle *P"
55 .Fa "const char *path"
56 .Fa "struct stat *buf"
60 .Fa "struct ps_prochandle *P"
61 .Fa "const char *path"
62 .Fa "struct stat64 *buf"
75 system calls respectively into the target process
77 by means of the agent LWP.
82 then this will be equivalent to calling
87 on the currently running process.
95 function have the same meaning as in
99 for the full description and purpose of the
101 system call and its arguments.
109 function have the same meaning as in
113 for the full description and purpose of the
115 system call and its arguments.
123 function have the same meaning as in
127 for the full description and purpose of the
129 system call and its arguments.
136 functions only work on active processes.
137 Process handles that correspond to core files, zombie processes, or ELF objects
138 do not support system call injection.
145 functions are equivalent to
150 respectively; however, rather than having the stat information be subject to the
151 data model of the target process, they always provide 64-bit stat information.
154 for more information.
156 Upon successful completion, the
158 function's return value is that described in
166 to indicate that the system call could not be injected.
168 For the full list of errors see the
175 function will fail if:
178 An error occurred while trying to invoke the agent LWP and inject a
179 system call in the process handle
181 or the process handle
183 does not support system call injection.
185 .Sh INTERFACE STABILITY