aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2020-06-11 14:09:43 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2020-06-11 14:09:43 +0000
commitbc8e281082922bae3a824a0e26275948dfaa1e17 (patch)
treee82b2c7bfd81a8524b899fd1251563a241de0353 /sys/compat/linux/linux_file.c
parent28397ac1ed48c42b0c92635e62895015f787c6e8 (diff)
downloadsrc-bc8e281082922bae3a824a0e26275948dfaa1e17.tar.gz
src-bc8e281082922bae3a824a0e26275948dfaa1e17.zip
Replace LINUX_FASYNC with LINUX_O_ASYNC; no functional changes.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25218
Notes
Notes: svn path=/head/; revision=362055
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index eed8814634ef..6df98769ea63 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -113,7 +113,7 @@ linux_common_open(struct thread *td, int dirfd, char *path, int l_flags, int mod
bsd_flags |= O_CLOEXEC;
if (l_flags & LINUX_O_NONBLOCK)
bsd_flags |= O_NONBLOCK;
- if (l_flags & LINUX_FASYNC)
+ if (l_flags & LINUX_O_ASYNC)
bsd_flags |= O_ASYNC;
if (l_flags & LINUX_O_CREAT)
bsd_flags |= O_CREAT;
@@ -1286,7 +1286,7 @@ fcntl_common(struct thread *td, struct linux_fcntl_args *args)
if (result & O_FSYNC)
td->td_retval[0] |= LINUX_O_SYNC;
if (result & O_ASYNC)
- td->td_retval[0] |= LINUX_FASYNC;
+ td->td_retval[0] |= LINUX_O_ASYNC;
#ifdef LINUX_O_NOFOLLOW
if (result & O_NOFOLLOW)
td->td_retval[0] |= LINUX_O_NOFOLLOW;
@@ -1305,7 +1305,7 @@ fcntl_common(struct thread *td, struct linux_fcntl_args *args)
arg |= O_APPEND;
if (args->arg & LINUX_O_SYNC)
arg |= O_FSYNC;
- if (args->arg & LINUX_FASYNC)
+ if (args->arg & LINUX_O_ASYNC)
arg |= O_ASYNC;
#ifdef LINUX_O_NOFOLLOW
if (args->arg & LINUX_O_NOFOLLOW)