From 73fcc88aa2f128dd860dbf701c241f6b5b829444 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 19 Sep 2024 15:44:46 -0600 Subject: [PATCH] Add O_SYNC for redox --- src/header/fcntl/redox.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/header/fcntl/redox.rs b/src/header/fcntl/redox.rs index fc72796d01..efe7beed58 100644 --- a/src/header/fcntl/redox.rs +++ b/src/header/fcntl/redox.rs @@ -10,6 +10,7 @@ pub const O_SHLOCK: c_int = 0x0010_0000; pub const O_EXLOCK: c_int = 0x0020_0000; pub const O_ASYNC: c_int = 0x0040_0000; pub const O_FSYNC: c_int = 0x0080_0000; +pub const O_SYNC: c_int = O_FSYNC; pub const O_CLOEXEC: c_int = 0x0100_0000; pub const O_CREAT: c_int = 0x0200_0000; pub const O_TRUNC: c_int = 0x0400_0000;