Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PISSYSCALL(3PROC)      Process Control Library Functions     PISSYSCALL(3PROC)
   2 
   3 NAME
   4      Pissyscall, Pissyscall_prev - determine if instructions are system call
   5      instructions
   6 
   7 SYNOPSIS
   8      Process Control Library (libproc, -lproc)


   9      #include <libproc.h>
  10 
  11      int
  12      Pissyscall(struct ps_prochandle *P, uintptr_t addr);
  13 
  14      int
  15      Pissyscall_prev(struct ps_prochandle *P, uintptr_t addr, uintptr_t *dst);
  16 
  17 DESCRIPTION
  18      The Pissyscall() function determines whether or not the instructions at
  19      addr in the process handle P corresponds to one of the architecture's
  20      system call instructions.
  21 
  22      the Pissyscall_prev() function determines whether or not the instruction
  23      before addr in the process handle P corresponds to one of the
  24      architecture's system call instructions.  If it does, and dst is a
  25      non-NULL pointer, then the address of the system call instruction will be
  26      copied into the location pointed to by dst.
  27 
  28 RETURN VALUES
   1 PISSYSCALL(3PROC)      Process Control Library Functions     PISSYSCALL(3PROC)
   2 
   3 NAME
   4      Pissyscall, Pissyscall_prev - determine if instructions are system call
   5      instructions
   6 
   7 LIBRARY
   8      Process Control Library (libproc, -lproc)
   9 
  10 SYNOPSIS
  11      #include <libproc.h>
  12 
  13      int
  14      Pissyscall(struct ps_prochandle *P, uintptr_t addr);
  15 
  16      int
  17      Pissyscall_prev(struct ps_prochandle *P, uintptr_t addr, uintptr_t *dst);
  18 
  19 DESCRIPTION
  20      The Pissyscall() function determines whether or not the instructions at
  21      addr in the process handle P corresponds to one of the architecture's
  22      system call instructions.
  23 
  24      the Pissyscall_prev() function determines whether or not the instruction
  25      before addr in the process handle P corresponds to one of the
  26      architecture's system call instructions.  If it does, and dst is a
  27      non-NULL pointer, then the address of the system call instruction will be
  28      copied into the location pointed to by dst.
  29 
  30 RETURN VALUES