PUNAME(3PROC) | Process Control Library Functions | PUNAME(3PROC) |
Puname
— get uname
information from a process
Process Control Library (libproc, -lproc)
#include
<libproc.h>
int
Puname
(struct ps_prochandle *P,
struct utsname *u);
The
Puname
()
function copies the operating system information from the process handle
P into u.
For an active process or zombie process, this is the same information obtained from uname(2). For core files, if available, it is the system information at the time the core was dumped.
Handles that correspond to ELF objects do not contain uname information.
Upon successful completion, the Puname
()
function returns
0 and updates
the information at u. Otherwise,
-1 is returned
and
errno is
set to indicate the error.
The Puname
() function will fail if:
See LOCKING in libproc(3LIB).
May 11, 2016 | OmniOS |