Skip to content

Commit 963f7da

Browse files
committed
Fix O_CLOEXEC for DragonFly
1 parent f4d6c9d commit 963f7da

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ pub const PTHREAD_STACK_MIN: ::size_t = 1024;
6464
pub const KERN_PROC_PATHNAME: ::c_int = 9;
6565
pub const SIGSTKSZ: ::size_t = 40960;
6666
pub const MADV_INVAL: ::c_int = 10;
67+
pub const O_CLOEXEC: ::c_int = 0x00020000;

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub const SIGSTKSZ: ::size_t = 34816;
4949
pub const SF_NODISKIO: ::c_int = 0x00000001;
5050
pub const SF_MNOWAIT: ::c_int = 0x00000002;
5151
pub const SF_SYNC: ::c_int = 0x00000004;
52+
pub const O_CLOEXEC: ::c_int = 0x00100000;
5253

5354
extern {
5455
pub fn __error() -> *mut ::c_int;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ pub const O_CREAT: ::c_int = 512;
147147
pub const O_EXCL: ::c_int = 2048;
148148
pub const O_NOCTTY: ::c_int = 32768;
149149
pub const O_TRUNC: ::c_int = 1024;
150-
pub const O_CLOEXEC: ::c_int = 0x00100000;
151150
pub const S_IFIFO: mode_t = 4096;
152151
pub const S_IFCHR: mode_t = 8192;
153152
pub const S_IFBLK: mode_t = 24576;

0 commit comments

Comments
 (0)