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/Pasfd.3proc.man.txt
+++ new/usr/src/man/man3proc/Pasfd.3proc.man.txt
1 1 PASFD(3PROC) Process Control Library Functions PASFD(3PROC)
2 2
3 3 NAME
4 4 Pasfd - obtain the process address space file descriptor
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 Pasfd(struct ps_prochandle *P);
12 14
13 15 DESCRIPTION
14 16 The Pasfd() funtion returns a file descriptor that allows direct access
15 17 to the address space of the process handle P. A defined file descriptor
16 18 is provided when using the Pcreate(3PROC), Pgrab(3PROC),
17 19 Pgrab_file(3PROC), and Pgrab_core(3PROC) functions. Note that the
18 20 address space may be different in each of these cases and doesn't
19 21 necessarily correspond to the /proc as file, except for live processes.
20 22 Other means of obtaining a libproc process handle may not define a file
21 23 descriptor that contains the address space.
22 24
23 25 The returned file descriptor must not be closed and is only valid for as
24 26 long as the corresponding process handle P is valid. After a call to
25 27 Prelease(3PROC) the file descriptor is invalidated.
26 28
27 29 RETURN VALUES
28 30 Upon successful completion, the Pasfd() function returns a valid file
29 31 descriptor. Otherwise, if none exists, then -1 is returned.
30 32
31 33 INTERFACE STABILITY
32 34 Uncommitted
33 35
34 36 MT-LEVEL
35 37 See LOCKING in libproc(3LIB).
36 38
37 39 SEE ALSO
38 40 libproc(3LIB), Pcreate(3PROC), Pgrab(3PROC), Pgrab_core(3PROC),
39 41 Pgrab_file(3PROC), Prelease(3PROC), proc(4)
40 42
41 43 illumos May 11, 2016 illumos
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX