strace/linux/xtensa/get_scno.c

7 lines
163 B
C
Raw Normal View History

/* Return codes: 1 - ok, 0 - ignore, other - error. */
static int
arch_get_scno(struct tcb *tcp)
{
return upeek(tcp->pid, SYSCALL_NR, &tcp->scno) < 0 ? -1 : 1;
}