1 PPLATFORM(3PROC)       Process Control Library Functions      PPLATFORM(3PROC)
   2 
   3 NAME
   4      Pplatform - get platform string
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      char *
  13      Pplatform(struct ps_prochandle *P, char *buffer, size_t bufsize);
  14 
  15 DESCRIPTION
  16      The Pplatform() function determines the name of the platform for the
  17      process handle P.  Up to bufsize characters, including the null
  18      terminator, will be copied into buffer.
  19 
  20      The platform is the value reported by the -s option to uname(1).  For
  21      example, on x86 systems, the value will be i86pc.
  22 
  23      Note, process handles that correspond to a file, created by
  24      Pgrab_file(3PROC), will not report a platform and the Pplatform()
  25      function will fail.
  26 
  27 RETURN VALUES
  28      Upon successful completion, the Pplatform() function returns buffer.
  29      Otherwise, NULL is returned, errno is set, and buffer is not updated.
  30 
  31 ERRORS
  32      The Pplatform() function will fail if:
  33 
  34      ENODATA            P refers to a core file and there is no NT_PLATFORM
  35                         ELF note available.
  36 
  37      EFAULT             P refers to a live process and buffer is an invalid
  38                         address.
  39 
  40 INTERFACE STABILITY
  41      Uncommitted
  42 
  43 MT-LEVEL
  44      See LOCKING in libproc(3LIB).
  45 
  46 SEE ALSO
  47      uname(1), sysinfo(2), libproc(3LIB), proc(4)
  48 
  49 illumos                          May 11, 2016                          illumos