Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/truss/setup.c
Show First 20 Lines • Show All 376 Lines • ▼ Show 20 Lines | if (narg != 0 && t->proc->abi->fetch_args(info, narg) != 0) { | ||||
return; | return; | ||||
} | } | ||||
t->cs.name = sysdecode_syscallname(t->proc->abi->abi, t->cs.number); | t->cs.name = sysdecode_syscallname(t->proc->abi->abi, t->cs.number); | ||||
if (t->cs.name == NULL) | if (t->cs.name == NULL) | ||||
fprintf(info->outfile, "-- UNKNOWN %s SYSCALL %d --\n", | fprintf(info->outfile, "-- UNKNOWN %s SYSCALL %d --\n", | ||||
t->proc->abi->type, t->cs.number); | t->proc->abi->type, t->cs.number); | ||||
sc = get_syscall(t->cs.name, narg); | sc = get_syscall(t, narg); | ||||
t->cs.nargs = sc->nargs; | t->cs.nargs = sc->nargs; | ||||
assert(sc->nargs <= nitems(t->cs.s_args)); | assert(sc->nargs <= nitems(t->cs.s_args)); | ||||
t->cs.sc = sc; | t->cs.sc = sc; | ||||
/* | /* | ||||
* At this point, we set up the system call arguments. | * At this point, we set up the system call arguments. | ||||
* We ignore any OUT ones, however -- those are arguments that | * We ignore any OUT ones, however -- those are arguments that | ||||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |