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
This commit is contained in:
parent
28397ac1ed
commit
bc8e281082
@ -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)
|
||||
|
@ -76,7 +76,7 @@
|
||||
#define LINUX_O_NONBLOCK 00004000
|
||||
#define LINUX_O_NDELAY LINUX_O_NONBLOCK
|
||||
#define LINUX_O_SYNC 00010000
|
||||
#define LINUX_FASYNC 00020000
|
||||
#define LINUX_O_ASYNC 00020000
|
||||
#define LINUX_O_DIRECT 00040000 /* Direct disk access hint */
|
||||
#define LINUX_O_LARGEFILE 00100000
|
||||
#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */
|
||||
|
Loading…
Reference in New Issue
Block a user