Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_syscall.c
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | #endif | ||||
/* Let system calls set td_errno directly. */ | /* Let system calls set td_errno directly. */ | ||||
td->td_pflags &= ~TDP_NERRNO; | td->td_pflags &= ~TDP_NERRNO; | ||||
/* | /* | ||||
* Fetch fast sigblock value at the time of syscall | * Fetch fast sigblock value at the time of syscall | ||||
* entry because sleepqueue primitives might call | * entry because sleepqueue primitives might call | ||||
* cursig(). | * cursig(). | ||||
*/ | */ | ||||
fetch_sigfastblock(td); | (void)sigfastblock_fetch(td); | ||||
jeff: predict_false? I'm afraid that this will go unused if we leave it in. | |||||
Done Inline ActionsWhat do you mean by 'go unused' ? kib: What do you mean by 'go unused' ? | |||||
AUDIT_SYSCALL_ENTER(sa->code, td); | AUDIT_SYSCALL_ENTER(sa->code, td); | ||||
error = (sa->callp->sy_call)(td, sa->args); | error = (sa->callp->sy_call)(td, sa->args); | ||||
AUDIT_SYSCALL_EXIT(error, td); | AUDIT_SYSCALL_EXIT(error, td); | ||||
/* Save the latest error return value. */ | /* Save the latest error return value. */ | ||||
if ((td->td_pflags & TDP_NERRNO) == 0) | if ((td->td_pflags & TDP_NERRNO) == 0) | ||||
td->td_errno = error; | td->td_errno = error; | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |
predict_false? I'm afraid that this will go unused if we leave it in.