PISSYSCALL(3PROC) Process Control Library Functions PISSYSCALL(3PROC) NNAAMMEE PPiissssyyssccaallll, PPiissssyyssccaallll__pprreevv - determine if instructions are system call instructions LLIIBBRRAARRYY Process Control Library (libproc, -lproc) SSYYNNOOPPSSIISS ##iinncclluuddee <> _i_n_t PPiissssyyssccaallll(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P, _u_i_n_t_p_t_r___t _a_d_d_r); _i_n_t PPiissssyyssccaallll__pprreevv(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P, _u_i_n_t_p_t_r___t _a_d_d_r, _u_i_n_t_p_t_r___t _*_d_s_t); DDEESSCCRRIIPPTTIIOONN The PPiissssyyssccaallll() function determines whether or not the instructions at _a_d_d_r in the process handle _P corresponds to one of the architecture's system call instructions. the PPiissssyyssccaallll__pprreevv() function determines whether or not the instruction before _a_d_d_r in the process handle _P corresponds to one of the architecture's system call instructions. If it does, and _d_s_t is a non-NULL pointer, then the address of the system call instruction will be copied into the location pointed to by _d_s_t. RREETTUURRNN VVAALLUUEESS Upon successful completion, the PPiissssyyssccaallll() function returns nnoonn--zzeerroo if _a_d_d_r corresponds to a system call instruction. Otherwise, 00 is returned. Upon successful completion, the PPiissssyyssccaallll__pprreevv() function returns nnoonn--zzeerroo if _a_d_d_r corresponds to a system call instruction and if _d_s_t is non-NULL, _d_s_t is updated. Otherwise, 00 is returned. IINNTTEERRFFAACCEE SSTTAABBIILLIITTYY UUnnccoommmmiitttteedd MMTT--LLEEVVEELL See LLOOCCKKIINNGG in libproc(3LIB). SSEEEE AALLSSOO libproc(3LIB) illumos May 11, 2016 illumos