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/Pexecname.3proc.man.txt
+++ new/usr/src/man/man3proc/Pexecname.3proc.man.txt
1 1 PEXECNAME(3PROC) Process Control Library Functions PEXECNAME(3PROC)
2 2
3 3 NAME
4 4 Pexecname - obtain full path to process executable
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 char *
11 13 Pexecname(struct ps_prochandle *P, char *buf, size_t buflen);
12 14
13 15 DESCRIPTION
14 16 The Pexecname() function attempts to determine the full path to the
15 17 process executable referred to by the handle P.
16 18
17 19 If found, buf will be filled in with the full path for up to buflen
18 20 bytes, including the null terminator.
19 21
20 22 For a handle grabbed with Pgrab_file(3PROC), the executable refers to the
21 23 path of the file itself. For a core file, the system attempts to
22 24 determine the original path of the executable and return that.
23 25
24 26 RETURN VALUES
25 27 Upon successful completion, the Pexecname() function returns the value of
26 28 buf, and up to buflen bytes of buf are filled in with a null-terminated
27 29 path. Otherwise, NULL is returned.
28 30
29 31 INTERFACE STABILITY
30 32 Uncommitted
31 33
32 34 MT-LEVEL
33 35 See LOCKING in libproc(3LIB).
34 36
35 37 SEE ALSO
36 38 libproc(3LIB)
37 39
38 40 illumos May 11, 2016 illumos
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX