Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/linux32/linux32_machdep.c
Show First 20 Lines • Show All 463 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
linux_mprotect(struct thread *td, struct linux_mprotect_args *uap) | linux_mprotect(struct thread *td, struct linux_mprotect_args *uap) | ||||
{ | { | ||||
return (linux_mprotect_common(td, PTROUT(uap->addr), uap->len, uap->prot)); | return (linux_mprotect_common(td, PTROUT(uap->addr), uap->len, uap->prot)); | ||||
} | } | ||||
int | int | ||||
linux_madvise(struct thread *td, struct linux_madvise_args *uap) | |||||
{ | |||||
return (linux_madvise_common(td, PTROUT(uap->addr), uap->len, uap->behav)); | |||||
} | |||||
int | |||||
linux_iopl(struct thread *td, struct linux_iopl_args *args) | linux_iopl(struct thread *td, struct linux_iopl_args *args) | ||||
{ | { | ||||
int error; | int error; | ||||
if (args->level < 0 || args->level > 3) | if (args->level < 0 || args->level > 3) | ||||
return (EINVAL); | return (EINVAL); | ||||
if ((error = priv_check(td, PRIV_IO)) != 0) | if ((error = priv_check(td, PRIV_IO)) != 0) | ||||
return (error); | return (error); | ||||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |