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/Pplatform.3proc.man.txt
+++ new/usr/src/man/man3proc/Pplatform.3proc.man.txt
1 1 PPLATFORM(3PROC) Process Control Library Functions PPLATFORM(3PROC)
2 2
3 3 NAME
4 4 Pplatform - get platform string
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 Pplatform(struct ps_prochandle *P, char *buffer, size_t bufsize);
12 14
13 15 DESCRIPTION
14 16 The Pplatform() function determines the name of the platform for the
15 17 process handle P. Up to bufsize characters, including the null
16 18 terminator, will be copied into buffer.
17 19
18 20 The platform is the value reported by the -s option to uname(1). For
19 21 example, on x86 systems, the value will be i86pc.
20 22
21 23 Note, process handles that correspond to a file, created by
22 24 Pgrab_file(3PROC), will not report a platform and the Pplatform()
23 25 function will fail.
24 26
25 27 RETURN VALUES
26 28 Upon successful completion, the Pplatform() function returns buffer.
27 29 Otherwise, NULL is returned, errno is set, and buffer is not updated.
28 30
29 31 ERRORS
30 32 The Pplatform() function will fail if:
31 33
32 34 ENODATA P refers to a core file and there is no NT_PLATFORM
33 35 ELF note available.
34 36
35 37 EFAULT P refers to a live process and buffer is an invalid
36 38 address.
37 39
38 40 INTERFACE STABILITY
39 41 Uncommitted
40 42
41 43 MT-LEVEL
42 44 See LOCKING in libproc(3LIB).
43 45
44 46 SEE ALSO
45 47 uname(1), sysinfo(2), libproc(3LIB), proc(4)
46 48
47 49 illumos May 11, 2016 illumos
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX