Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux.c
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
linux_to_bsd_sigaltstack(int lsa) | linux_to_bsd_sigaltstack(int lsa) | ||||
{ | { | ||||
int bsa = 0; | int bsa = 0; | ||||
if (lsa & LINUX_SS_DISABLE) | if (lsa & LINUX_SS_DISABLE) | ||||
bsa |= SS_DISABLE; | bsa |= SS_DISABLE; | ||||
if (lsa & LINUX_SS_AUTODISARM) { | |||||
/* | |||||
* XXX: We should be returning EINVAL instead. | |||||
dchagin: and why to not return EINVAL instead? | |||||
*/ | |||||
linux_msg(curthread, "unsupported SS_AUTODISARM"); | |||||
} | |||||
/* | /* | ||||
* Linux ignores SS_ONSTACK flag for ss | * Linux ignores SS_ONSTACK flag for ss | ||||
* parameter while FreeBSD prohibits it. | * parameter while FreeBSD prohibits it. | ||||
*/ | */ | ||||
return (bsa); | return (bsa); | ||||
} | } | ||||
int | int | ||||
▲ Show 20 Lines • Show All 526 Lines • Show Last 20 Lines |
and why to not return EINVAL instead?