Skip to content

Commit c64cdf6

Browse files
committed
Added O_CLOEXEC flag to OpenOptions
1 parent d7203ed commit c64cdf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ bitflags! {
6464
const O_NONBLOCK = StatusFlags::O_NONBLOCK.bits();
6565
const O_DIRECT = 0o40000;
6666
const O_DIRECTORY = 0o200_000;
67+
/// `O_CLOEXEC` has no functionality in Hermit and will be silently ignored
68+
const O_CLOEXEC = 0o2_000_000;
6769
}
6870
}
6971

0 commit comments

Comments
 (0)