PUNAME(3PROC) Process Control Library Functions PUNAME(3PROC)

Punameget uname information from a process

Process Control Library (libproc, -lproc)

#include <libproc.h>

int
Puname(struct ps_prochandle *P, struct utsname *u);

The () 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 and updates the information at u. Otherwise, is returned and is set to indicate the error.

The Puname() function will fail if:

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.
P is a handle that corresponds to an active process and u is a bad address.

See in libproc(3LIB).

uname(1), uname(2), libproc(3LIB)

May 11, 2016 OmniOS