Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_misc.c
Context not available. | |||||
return (error); | return (error); | ||||
} | } | ||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | #if defined(__i386__) || defined(__arm__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | ||||
int | int | ||||
linux_waitpid(struct thread *td, struct linux_waitpid_args *args) | linux_waitpid(struct thread *td, struct linux_waitpid_args *args) | ||||
{ | { | ||||
Context not available. | |||||
return (linux_wait4(td, &wait4_args)); | return (linux_wait4(td, &wait4_args)); | ||||
} | } | ||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ | #endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | ||||
int | int | ||||
linux_wait4(struct thread *td, struct linux_wait4_args *args) | linux_wait4(struct thread *td, struct linux_wait4_args *args) | ||||
Context not available. | |||||
return (copyout(&ls, uap->itv, sizeof(ls))); | return (copyout(&ls, uap->itv, sizeof(ls))); | ||||
} | } | ||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | #if defined(__i386__) || defined(__arm__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | ||||
int | int | ||||
linux_nice(struct thread *td, struct linux_nice_args *args) | linux_nice(struct thread *td, struct linux_nice_args *args) | ||||
{ | { | ||||
Context not available. | |||||
bsd_args.prio = args->inc; | bsd_args.prio = args->inc; | ||||
return (sys_setpriority(td, &bsd_args)); | return (sys_setpriority(td, &bsd_args)); | ||||
} | } | ||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ | #endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | ||||
int | int | ||||
linux_setgroups(struct thread *td, struct linux_setgroups_args *args) | linux_setgroups(struct thread *td, struct linux_setgroups_args *args) | ||||
Context not available. | |||||
return (kern_setrlimit(td, which, &bsd_rlim)); | return (kern_setrlimit(td, which, &bsd_rlim)); | ||||
} | } | ||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | #if defined(__i386__) || defined(__arm__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | ||||
int | int | ||||
linux_old_getrlimit(struct thread *td, struct linux_old_getrlimit_args *args) | linux_old_getrlimit(struct thread *td, struct linux_old_getrlimit_args *args) | ||||
{ | { | ||||
Context not available. | |||||
#endif | #endif | ||||
return (copyout(&rlim, args->rlim, sizeof(rlim))); | return (copyout(&rlim, args->rlim, sizeof(rlim))); | ||||
} | } | ||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ | #endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | ||||
int | int | ||||
linux_getrlimit(struct thread *td, struct linux_getrlimit_args *args) | linux_getrlimit(struct thread *td, struct linux_getrlimit_args *args) | ||||
Context not available. |