1 PSETFLAGS(3PROC) Process Control Library Functions PSETFLAGS(3PROC)
2
3 NAME
4 Psetflags, Punsetflags - set and unset process flags
5
6 SYNOPSIS
7 Process Control Library (libproc, -lproc)
8 #include <libproc.h>
9
10 int
11 Psetflags(struct ps_prochandle *P, long flags);
12
13 int
14 Punsetflags(struct ps_prochandle *P, long flags);
15
16 DESCRIPTION
17 The Psetflags() and Punsetflags() functions manipulate the process flags
18 for the process handle P. The process flags determine how the process
19 behaves in the face of various actions. For example, setting the PR_FORK
20 flag indicates that the tracing flags of the process and the inherit-on-
21 fork mode should be set on children. A full list of the process flags is
22 available in the PCSET section in proc(4).
23
24 The Psetflags() function sets the flags specified in flags by doing a
25 bitwise-inclusive-OR with the previously set flags.
26
27 The Punsetflags() function removes the flags specified in flags from the
|
1 PSETFLAGS(3PROC) Process Control Library Functions PSETFLAGS(3PROC)
2
3 NAME
4 Psetflags, Punsetflags - set and unset process flags
5
6 LIBRARY
7 Process Control Library (libproc, -lproc)
8
9 SYNOPSIS
10 #include <libproc.h>
11
12 int
13 Psetflags(struct ps_prochandle *P, long flags);
14
15 int
16 Punsetflags(struct ps_prochandle *P, long flags);
17
18 DESCRIPTION
19 The Psetflags() and Punsetflags() functions manipulate the process flags
20 for the process handle P. The process flags determine how the process
21 behaves in the face of various actions. For example, setting the PR_FORK
22 flag indicates that the tracing flags of the process and the inherit-on-
23 fork mode should be set on children. A full list of the process flags is
24 available in the PCSET section in proc(4).
25
26 The Psetflags() function sets the flags specified in flags by doing a
27 bitwise-inclusive-OR with the previously set flags.
28
29 The Punsetflags() function removes the flags specified in flags from the
|