PUNAME(3PROC) Process Control Library Functions PUNAME(3PROC) NNAAMMEE PPuunnaammee - get uname information from a process LLIIBBRRAARRYY Process Control Library (libproc, -lproc) SSYYNNOOPPSSIISS ##iinncclluuddee <> _i_n_t PPuunnaammee(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P, _s_t_r_u_c_t _u_t_s_n_a_m_e _*_u); DDEESSCCRRIIPPTTIIOONN The PPuunnaammee() 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. RREETTUURRNN VVAALLUUEESS Upon successful completion, the PPuunnaammee() function returns 00 and updates the information at _u. Otherwise, --11 is returned and eerrrrnnoo is set to indicate the error. EERRRROORRSS The PPuunnaammee() 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. IINNTTEERRFFAACCEE SSTTAABBIILLIITTYY UUnnccoommmmiitttteedd MMTT--LLEEVVEELL See LLOOCCKKIINNGG in libproc(3LIB). SSEEEE AALLSSOO uname(1), uname(2), libproc(3LIB) illumos May 11, 2016 illumos