We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9429b5 commit 4d0890cCopy full SHA for 4d0890c
src/backend/libc/fs/types.rs
@@ -259,6 +259,17 @@ bitflags! {
259
target_os = "linux",
260
))]
261
const NOATIME = c::O_NOATIME;
262
+
263
+ /// `O_DIRECT`
264
+ #[cfg(any(
265
+ target_os = "android",
266
+ target_os = "emscripten",
267
+ target_os = "freebsd",
268
+ target_os = "fuchsia",
269
+ target_os = "linux",
270
+ target_os = "netbsd",
271
+ ))]
272
+ const DIRECT = c::O_DIRECT;
273
}
274
275
src/backend/linux_raw/fs/types.rs
@@ -198,6 +198,9 @@ bitflags! {
198
199
/// `O_NOATIME`
200
const NOATIME = linux_raw_sys::general::O_NOATIME;
201
202
203
+ const DIRECT = linux_raw_sys::general::O_DIRECT;
204
205
206
0 commit comments