Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_file.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_llseek(struct thread *td, struct linux_llseek_args *args) | linux_llseek(struct thread *td, struct linux_llseek_args *args) | ||||
{ | { | ||||
Context not available. | |||||
return (0); | return (0); | ||||
} | } | ||||
#endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | |||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | |||||
int | int | ||||
linux_readdir(struct thread *td, struct linux_readdir_args *args) | linux_readdir(struct thread *td, struct linux_readdir_args *args) | ||||
{ | { | ||||
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_truncate64(struct thread *td, struct linux_truncate64_args *args) | linux_truncate64(struct thread *td, struct linux_truncate64_args *args) | ||||
{ | { | ||||
Context not available. | |||||
LFREEPATH(path); | LFREEPATH(path); | ||||
return (error); | return (error); | ||||
} | } | ||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ | #endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | ||||
int | int | ||||
linux_ftruncate(struct thread *td, struct linux_ftruncate_args *args) | linux_ftruncate(struct thread *td, struct linux_ftruncate_args *args) | ||||
Context not available. | |||||
linux_flock->l_pid = (l_pid_t)bsd_flock->l_pid; | linux_flock->l_pid = (l_pid_t)bsd_flock->l_pid; | ||||
} | } | ||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | #if defined(__i386__) || defined(__arm__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | ||||
struct l_flock64 { | struct l_flock64 { | ||||
l_short l_type; | l_short l_type; | ||||
l_short l_whence; | l_short l_whence; | ||||
Context not available. | |||||
linux_flock->l_len = (l_loff_t)bsd_flock->l_len; | linux_flock->l_len = (l_loff_t)bsd_flock->l_len; | ||||
linux_flock->l_pid = (l_pid_t)bsd_flock->l_pid; | linux_flock->l_pid = (l_pid_t)bsd_flock->l_pid; | ||||
} | } | ||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ | #endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | ||||
static int | static int | ||||
fcntl_common(struct thread *td, struct linux_fcntl_args *args) | fcntl_common(struct thread *td, struct linux_fcntl_args *args) | ||||
Context not available. | |||||
return (fcntl_common(td, args)); | return (fcntl_common(td, args)); | ||||
} | } | ||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | #if defined(__i386__) || defined(__arm__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | ||||
int | int | ||||
linux_fcntl64(struct thread *td, struct linux_fcntl64_args *args) | linux_fcntl64(struct thread *td, struct linux_fcntl64_args *args) | ||||
{ | { | ||||
Context not available. | |||||
fcntl_args.arg = args->arg; | fcntl_args.arg = args->arg; | ||||
return (fcntl_common(td, &fcntl_args)); | return (fcntl_common(td, &fcntl_args)); | ||||
} | } | ||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ | #endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | ||||
int | int | ||||
linux_chown(struct thread *td, struct linux_chown_args *args) | linux_chown(struct thread *td, struct linux_chown_args *args) | ||||
Context not available. | |||||
} | } | ||||
} | } | ||||
#if !defined(__arm__) | |||||
int | int | ||||
linux_fadvise64(struct thread *td, struct linux_fadvise64_args *args) | linux_fadvise64(struct thread *td, struct linux_fadvise64_args *args) | ||||
{ | { | ||||
Context not available. | |||||
return (kern_posix_fadvise(td, args->fd, args->offset, args->len, | return (kern_posix_fadvise(td, args->fd, args->offset, args->len, | ||||
advice)); | advice)); | ||||
} | } | ||||
#endif /* !__arm__ */ | |||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | #if defined(__i386__) || defined(__arm__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | ||||
int | int | ||||
linux_fadvise64_64(struct thread *td, struct linux_fadvise64_64_args *args) | linux_fadvise64_64(struct thread *td, struct linux_fadvise64_64_args *args) | ||||
{ | { | ||||
Context not available. | |||||
return (kern_posix_fadvise(td, args->fd, args->offset, args->len, | return (kern_posix_fadvise(td, args->fd, args->offset, args->len, | ||||
advice)); | advice)); | ||||
} | } | ||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ | #endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | ||||
int | int | ||||
linux_pipe(struct thread *td, struct linux_pipe_args *args) | linux_pipe(struct thread *td, struct linux_pipe_args *args) | ||||
Context not available. |