Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PFAULT(3PROC)          Process Control Library Functions         PFAULT(3PROC)
   2 
   3 NAME
   4      Pfault - enable and disable the tracing of faults
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      int
  11      Pfault(struct ps_prochandle *P, int which, int stop);
  12 
  13 DESCRIPTION
  14      The Pfault() function controls what the process P should do on faults.
  15 
  16      A fault is a hardware event that occurs in the context of a running
  17      process and thread.  A hardware fault may occur because an illegal
  18      instruction was executed, a breakpoint or watchpoint was encountered, or
  19      an arithmetic exception occurred, among others.  The full list of faults
  20      is available in both proc(4) and <sys/fault.h>.
  21 
  22      For each hardware fault, a process may be configured to stop the thread
  23      that encountered it when it occurs.  The value of the stop parameter
  24      controls whether or not the listed fault in which will cause the thread
  25      to trap.  A value of 1 indicates the thread should stop; a value of 0
  26      indicates it should not.
  27 


   1 PFAULT(3PROC)          Process Control Library Functions         PFAULT(3PROC)
   2 
   3 NAME
   4      Pfault - enable and disable the tracing of faults
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Pfault(struct ps_prochandle *P, int which, int stop);
  14 
  15 DESCRIPTION
  16      The Pfault() function controls what the process P should do on faults.
  17 
  18      A fault is a hardware event that occurs in the context of a running
  19      process and thread.  A hardware fault may occur because an illegal
  20      instruction was executed, a breakpoint or watchpoint was encountered, or
  21      an arithmetic exception occurred, among others.  The full list of faults
  22      is available in both proc(4) and <sys/fault.h>.
  23 
  24      For each hardware fault, a process may be configured to stop the thread
  25      that encountered it when it occurs.  The value of the stop parameter
  26      controls whether or not the listed fault in which will cause the thread
  27      to trap.  A value of 1 indicates the thread should stop; a value of 0
  28      indicates it should not.
  29