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 
  30 ERRORS
  31      The Puname() function will fail if:
  32 
  33      ENODATA            P is a handle that corresponds to an ELF object or P
  34                         is a handle that corresponds to a core file and that
  35                         information is not available in the core file.
  36 
  37      EFAULT             P is a handle that corresponds to an active process
  38                         and u is a bad address.
  39 
  40 INTERFACE STABILITY
  41      Uncommitted
  42 
  43 MT-LEVEL
  44      See LOCKING in libproc(3LIB).
  45 
  46 SEE ALSO
  47      uname(1), uname(2), libproc(3LIB)
  48 
  49 illumos                          May 11, 2016                          illumos