1 PUNAME(3PROC) Process Control Library Functions PUNAME(3PROC)
2
3 NAME
4 Puname - get uname information from a process
5
6 SYNOPSIS
7 Process Control Library (libproc, -lproc)
8 #include <libproc.h>
9
10 int
11 Puname(struct ps_prochandle *P, struct utsname *u);
12
13 DESCRIPTION
14 The Puname() function copies the operating system information from the
15 process handle P into u.
16
17 For an active process or zombie process, this is the same information
18 obtained from uname(2). For core files, if available, it is the system
19 information at the time the core was dumped.
20
21 Handles that correspond to ELF objects do not contain uname information.
22
23 RETURN VALUES
24 Upon successful completion, the Puname() function returns 0 and updates
25 the information at u. Otherwise, -1 is returned and errno is set to
26 indicate the error.
27
|
1 PUNAME(3PROC) Process Control Library Functions PUNAME(3PROC)
2
3 NAME
4 Puname - get uname information from a process
5
6 LIBRARY
7 Process Control Library (libproc, -lproc)
8
9 SYNOPSIS
10 #include <libproc.h>
11
12 int
13 Puname(struct ps_prochandle *P, struct utsname *u);
14
15 DESCRIPTION
16 The Puname() function copies the operating system information from the
17 process handle P into u.
18
19 For an active process or zombie process, this is the same information
20 obtained from uname(2). For core files, if available, it is the system
21 information at the time the core was dumped.
22
23 Handles that correspond to ELF objects do not contain uname information.
24
25 RETURN VALUES
26 Upon successful completion, the Puname() function returns 0 and updates
27 the information at u. Otherwise, -1 is returned and errno is set to
28 indicate the error.
29
|