Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3proc/Preopen.3proc.man.txt
+++ new/usr/src/man/man3proc/Preopen.3proc.man.txt
1 1 PREOPEN(3PROC) Process Control Library Functions PREOPEN(3PROC)
2 2
3 3 NAME
4 4 Preopen - reopen a process
5 5
6 -SYNOPSIS
6 +LIBRARY
7 7 Process Control Library (libproc, -lproc)
8 +
9 +SYNOPSIS
8 10 #include <libproc.h>
9 11
10 12 int
11 13 Preopen(struct ps_prochandle *P);
12 14
13 15 DESCRIPTION
14 16 The Preopen() function is used to regain control of the process
15 17 represented by the handle P. A loss of control is indicated by the
16 18 Pstatus(3PROC) function returning the value PS_LOST. This may occur when
17 19 the controlled process performs an exec(2) of a setuid or setgid binary
18 20 or one where the controlling process cannot read the object file. For
19 21 more information on this, see the PROGRAMMING NOTES section of proc(4).
20 22
21 23 If successful, the controlling process will obtain control of the process
22 24 specified by P. If it fails, the controlling process should release the
23 25 handle with Prelease(3PROC). Note there are occasions where due to
24 26 permissions it may not be possible to obtain control again.
25 27
26 28 RETURN VALUES
27 29 Upon successful completion, the Preopen() function returns 0. Otherwise,
28 30 -1 is returned.
29 31
30 32 INTERFACE STABILITY
31 33 Uncommitted
32 34
33 35 MT-LEVEL
34 36 See LOCKING in libproc(3LIB).
35 37
36 38 SEE ALSO
37 39 exec(2), libproc(3LIB), Prelease(3PROC), Pstatus(3PROC), proc(4)
38 40
39 41 illumos May 11, 2016 illumos
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX