Psysentry
return (Psysentry(P, (intptr_t)args, TRUE) < 0 ? -1 : 0);
(void) Psysentry(t->t_pshandle, (intptr_t)sep->se_data, FALSE);
(void) Psysentry(Proc, SYS_context, TRUE);
(void) Psysentry(Proc, SYS_execve, TRUE);
(void) Psysentry(Proc, SYS_exit, TRUE);
(void) Psysentry(Proc, SYS_lwp_exit, TRUE);
(void) Psysentry(Proc, SYS_upanic, TRUE);
(void) Psysentry(P, SYS_vfork, B_TRUE);
(void) Psysentry(P, SYS_forksys, B_TRUE);
if (Psysentry(pctx->Pr, SYS_exit, 1) == -1) {
if (Psysentry(pctx->Pr, SYS_exit, 1) == -1) {
(void) Psysentry(pctx->Pr, SYS_execve, 1);
(void) Psysentry(pctx->Pr, SYS_execve, 0);
(void) Psysentry(pctx->Pr, SYS_lwp_exit,
(void) Psysentry(P, 0, FALSE);
(void) Psysentry(P, SYS_pause, 1);
(void) Psysentry(P, SYS_pause, 0);
(void) Psysentry(P, SYS_exit, 1);
(void) Psysentry(P, SYS_execve, 1);
sentry = Psysentry(P, sysindex, TRUE); /* set stop-on-syscall-entry */
(void) Psysentry(P, sysindex, sentry); /* restore sysentry stop */
extern int Psysentry(struct ps_prochandle *, int, int);