Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PPLATFORM(3PROC)       Process Control Library Functions      PPLATFORM(3PROC)
   2 
   3 NAME
   4      Pplatform - get platform string
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      char *
  11      Pplatform(struct ps_prochandle *P, char *buffer, size_t bufsize);
  12 
  13 DESCRIPTION
  14      The Pplatform() function determines the name of the platform for the
  15      process handle P.  Up to bufsize characters, including the null
  16      terminator, will be copied into buffer.
  17 
  18      The platform is the value reported by the -s option to uname(1).  For
  19      example, on x86 systems, the value will be i86pc.
  20 
  21      Note, process handles that correspond to a file, created by
  22      Pgrab_file(3PROC), will not report a platform and the Pplatform()
  23      function will fail.
  24 
  25 RETURN VALUES
  26      Upon successful completion, the Pplatform() function returns buffer.
  27      Otherwise, NULL is returned, errno is set, and buffer is not updated.
   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.