PUNAME(3PROC) Process Control Library Functions PUNAME(3PROC)
NAME
Puname - get uname information from a process
LIBRARY
Process Control Library (libproc, -lproc)
SYNOPSIS
#include <libproc.h> int Puname(
struct ps_prochandle *P,
struct utsname *u);
DESCRIPTION
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.
RETURN VALUES
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.
ERRORS
The
Puname() function will fail if:
ENODATA
P is a handle that corresponds to an ELF object or
P is a handle that corresponds to a core file and that
information is not available in the core file.
EFAULT
P is a handle that corresponds to an active process
and
u is a bad address.
INTERFACE STABILITY
UncommittedMT-LEVEL See
LOCKING in
libproc(3LIB).
SEE ALSO
uname(1),
uname(2),
libproc(3LIB)illumos May 11, 2016 illumos