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
  31      Upon successful completion, the Pissyscall() function returns non-zero if
  32      addr corresponds to a system call instruction.  Otherwise, 0 is returned.
  33 
  34      Upon successful completion, the Pissyscall_prev() function returns
  35      non-zero if addr corresponds to a system call instruction and if dst is
  36      non-NULL, dst is updated.  Otherwise, 0 is returned.
  37 
  38 INTERFACE STABILITY
  39      Uncommitted
  40 
  41 MT-LEVEL
  42      See LOCKING in libproc(3LIB).
  43 
  44 SEE ALSO
  45      libproc(3LIB)
  46 
  47 illumos                          May 11, 2016                          illumos