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/Puname.3proc.man.txt
+++ new/usr/src/man/man3proc/Puname.3proc.man.txt
1 1 PUNAME(3PROC) Process Control Library Functions PUNAME(3PROC)
2 2
3 3 NAME
4 4 Puname - get uname information from 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 Puname(struct ps_prochandle *P, struct utsname *u);
12 14
13 15 DESCRIPTION
14 16 The Puname() function copies the operating system information from the
15 17 process handle P into u.
16 18
17 19 For an active process or zombie process, this is the same information
18 20 obtained from uname(2). For core files, if available, it is the system
19 21 information at the time the core was dumped.
20 22
21 23 Handles that correspond to ELF objects do not contain uname information.
22 24
23 25 RETURN VALUES
24 26 Upon successful completion, the Puname() function returns 0 and updates
25 27 the information at u. Otherwise, -1 is returned and errno is set to
26 28 indicate the error.
27 29
28 30 ERRORS
29 31 The Puname() function will fail if:
30 32
31 33 ENODATA P is a handle that corresponds to an ELF object or P
32 34 is a handle that corresponds to a core file and that
33 35 information is not available in the core file.
34 36
35 37 EFAULT P is a handle that corresponds to an active process
36 38 and u is a bad 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), uname(2), libproc(3LIB)
46 48
47 49 illumos May 11, 2016 illumos
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX