Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PSETZONEID(3PROC)      Process Control Library Functions     PSETZONEID(3PROC)
   2 
   3 NAME
   4      Psetzoneid - change processes zone id
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      int
  11      Psetzoneid(struct ps_prochandle *P, zoneid_t zoneid);
  12 
  13 DESCRIPTION
  14      The Psetzoneid() function moves the process handle P into the zone
  15      specified by zoneid.  A process that is in the non-global zone may only
  16      move between the global zone and its original zone.  A process that is in
  17      the global zone may not use this interface to enter a non-global zone.
  18      This function will fail if called from a non-global zone.  This function
  19      only manipulates the processes credentials.
  20 
  21      Care should be taken when moving a process around temporarily, such that
  22      if the process that is manipulating P dies, it does not cause P to resume
  23      running while still in the global zone.  It is suggested that the PR_KLC
  24      flag is set with Psetflags(3PROC) which will cause the process to
  25      terminate if the process that holds P unexpectedly terminates.  See
  26      proc(4) for more information on the PR_KLC flag.
  27 


   1 PSETZONEID(3PROC)      Process Control Library Functions     PSETZONEID(3PROC)
   2 
   3 NAME
   4      Psetzoneid - change processes zone id
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Psetzoneid(struct ps_prochandle *P, zoneid_t zoneid);
  14 
  15 DESCRIPTION
  16      The Psetzoneid() function moves the process handle P into the zone
  17      specified by zoneid.  A process that is in the non-global zone may only
  18      move between the global zone and its original zone.  A process that is in
  19      the global zone may not use this interface to enter a non-global zone.
  20      This function will fail if called from a non-global zone.  This function
  21      only manipulates the processes credentials.
  22 
  23      Care should be taken when moving a process around temporarily, such that
  24      if the process that is manipulating P dies, it does not cause P to resume
  25      running while still in the global zone.  It is suggested that the PR_KLC
  26      flag is set with Psetflags(3PROC) which will cause the process to
  27      terminate if the process that holds P unexpectedly terminates.  See
  28      proc(4) for more information on the PR_KLC flag.
  29