1 PPRIV(3PROC)           Process Control Library Functions          PPRIV(3PROC)
   2 
   3 NAME
   4      Ppriv, Ppriv_free - get and free process privilege sets
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Ppriv(struct ps_prochandle *P, prpriv_t **pprv);
  14 
  15      void
  16      Ppriv_free(struct ps_prochandle *P, prpriv_t *prv);
  17 
  18 DESCRIPTION
  19      The Ppriv() function obtains the privilege set of the process handle P.
  20      The privilege set, if it exists, will be dynamically allocated and a
  21      pointer to it will be placed in pprv.  It must be released with a call to
  22      Ppriv_free().  The definition of the prpriv_t structure is documented in
  23      proc(4).
  24 
  25      The Ppriv_free() function releases the storage in prv that was allocated
  26      as a result of calling Ppriv().
  27 
  28 RETURN VALUES
  29      Upon successful completion, the Ppriv() function returns 0 and pprv is
  30      updated with a pointer to the allocated privilege set.  Otherwise, -1 is
  31      returned and pprv is not updated.
  32 
  33 INTERFACE STABILITY
  34      Uncommitted
  35 
  36 MT-LEVEL
  37      See LOCKING in libproc(3LIB).
  38 
  39 SEE ALSO
  40      libproc(3LIB), proc(4), privileges(5)
  41 
  42 illumos                          May 11, 2016                          illumos