Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_misc.c
Context not available. | |||||
return (copyout(&sysinfo, args->info, sizeof(sysinfo))); | return (copyout(&sysinfo, args->info, sizeof(sysinfo))); | ||||
} | } | ||||
#if !defined(__arm__) | |||||
int | int | ||||
linux_alarm(struct thread *td, struct linux_alarm_args *args) | linux_alarm(struct thread *td, struct linux_alarm_args *args) | ||||
{ | { | ||||
Context not available. | |||||
td->td_retval[0] = old_it.it_value.tv_sec; | td->td_retval[0] = old_it.it_value.tv_sec; | ||||
return (0); | return (0); | ||||
} | } | ||||
#endif /* !__arm__ */ | |||||
int | int | ||||
linux_brk(struct thread *td, struct linux_brk_args *args) | linux_brk(struct thread *td, struct linux_brk_args *args) | ||||
Context not available. | |||||
return (sys_msync(td, &bsd_args)); | return (sys_msync(td, &bsd_args)); | ||||
} | } | ||||
#if !defined(__arm__) | |||||
int | int | ||||
linux_time(struct thread *td, struct linux_time_args *args) | linux_time(struct thread *td, struct linux_time_args *args) | ||||
{ | { | ||||
Context not available. | |||||
td->td_retval[0] = tm; | td->td_retval[0] = tm; | ||||
return (0); | return (0); | ||||
} | } | ||||
#endif /* !__arm__ */ | |||||
struct l_times_argv { | struct l_times_argv { | ||||
l_clock_t tms_utime; | l_clock_t tms_utime; | ||||
Context not available. | |||||
return (copyout(&utsname, args->buf, sizeof(utsname))); | return (copyout(&utsname, args->buf, sizeof(utsname))); | ||||
} | } | ||||
#if !defined(__arm__) | |||||
struct l_utimbuf { | struct l_utimbuf { | ||||
l_time_t l_actime; | l_time_t l_actime; | ||||
l_time_t l_modtime; | l_time_t l_modtime; | ||||
Context not available. | |||||
LFREEPATH(fname); | LFREEPATH(fname); | ||||
return (error); | return (error); | ||||
} | } | ||||
#endif /* !__arm__ */ | |||||
int | int | ||||
linux_utimes(struct thread *td, struct linux_utimes_args *args) | linux_utimes(struct thread *td, struct linux_utimes_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. |