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


   8      #include <libproc.h>
   9 
  10      char *
  11      Pgetenv(struct ps_prochandle *P, const char *name, char *buf,
  12          size_t buflen);
  13 
  14 DESCRIPTION
  15      The Pgetenv function searches the environment of the process handle P for
  16      the environment variable named name.  If found it copies up to buflen
  17      characters of the value, including the null terminator, into the buffer
  18      buf.  Everything after the = sign is copied.
  19 
  20 RETURN VALUES
  21      Upon successful completion, the Pgetenv() function returns the pointer
  22      buf.  Otherwise, if the environment variable was not found, NULL is
  23      returned.
  24 
  25 INTERFACE STABILITY
  26      Uncommitted
  27 
   1 PGETENV(3PROC)         Process Control Library Functions        PGETENV(3PROC)
   2 
   3 NAME
   4      Pgetenv - get process environment variable
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      char *
  13      Pgetenv(struct ps_prochandle *P, const char *name, char *buf,
  14          size_t buflen);
  15 
  16 DESCRIPTION
  17      The Pgetenv function searches the environment of the process handle P for
  18      the environment variable named name.  If found it copies up to buflen
  19      characters of the value, including the null terminator, into the buffer
  20      buf.  Everything after the = sign is copied.
  21 
  22 RETURN VALUES
  23      Upon successful completion, the Pgetenv() function returns the pointer
  24      buf.  Otherwise, if the environment variable was not found, NULL is
  25      returned.
  26 
  27 INTERFACE STABILITY
  28      Uncommitted
  29