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.
20 .Nd set system call entry and exit actions
26 .Fa "struct ps_prochandle *P"
32 .Fa "struct ps_prochandle *P"
41 functions controls what actions the process handle
43 should take upon executing a system call.
45 The system allows a process to be stopped on both entry and exit of a
47 For information on the state of the process when it is stopped due to system
57 parameter controls whether or not the system call listed in
59 causes the process to stop.
60 A value of non-zero indicates the process should stop;
61 a value of 0 indicates it should not.
65 indicates which system call the change applies to.
66 A value of 0 applies to all system calls.
67 Note, the system does not supply a stable mapping from system call names to
70 These functions only apply to actively running processes.
71 They do not function on handles that refer to core files, zombie processes,
74 Upon successful completion, the
78 functions return the previous disposition of the system call --
80 if it was not set to stop and
83 and the system call state is updated.
88 is updated with the error that occurred, and the system call state is
95 functions will fail if:
100 is invalid, e.g. it is less than zero or greater than the largest defined
105 refers to a process that is a zombie, a core file, or an ELF object.
107 .Sh INTERFACE STABILITY
114 functions are uncommitted, the mapping of system calls to system call
117 and may change at any time.
125 .Xr Psysentry 3PROC ,