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


   8      #include <libproc.h>
   9 
  10      int
  11      Psetpriv(struct ps_prochandle *P, prpriv_t *pprv);
  12 
  13 DESCRIPTION
  14      The Psetpriv() function updates the privileges of the process handle P to
  15      the set described by pprv.  The updated privilege set has restrictions on
  16      what it may change for a process which are documented in the PCSPRIV
  17      section of proc(4).  In addition, the definition of the prpriv_t
  18      structure is described in proc(4).
  19 
  20      The current privilege set for the process may be obtained through a call
  21      to Ppriv(3PROC).
  22 
  23      Note, the privilege set may only be updated for active processes.
  24      Process handles which correspond to core files, zombie processes, and
  25      files, may not have their privilege sets updated.
  26 
  27 RETURN VALUES


   1 PSETPRIV(3PROC)        Process Control Library Functions       PSETPRIV(3PROC)
   2 
   3 NAME
   4      Psetpriv - set process privileges
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Psetpriv(struct ps_prochandle *P, prpriv_t *pprv);
  14 
  15 DESCRIPTION
  16      The Psetpriv() function updates the privileges of the process handle P to
  17      the set described by pprv.  The updated privilege set has restrictions on
  18      what it may change for a process which are documented in the PCSPRIV
  19      section of proc(4).  In addition, the definition of the prpriv_t
  20      structure is described in proc(4).
  21 
  22      The current privilege set for the process may be obtained through a call
  23      to Ppriv(3PROC).
  24 
  25      Note, the privilege set may only be updated for active processes.
  26      Process handles which correspond to core files, zombie processes, and
  27      files, may not have their privilege sets updated.
  28 
  29 RETURN VALUES