Skip to content

Commit af997e3

Browse files
committed
freebsd adding CLOSE_RANGE_CLOEXEC flag
1 parent b667ac1 commit af997e3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ CLOCK_UPTIME
264264
CLOCK_UPTIME_FAST
265265
CLOCK_UPTIME_PRECISE
266266
CLOCK_VIRTUAL
267+
CLOSE_RANGE_CLOEXEC
267268
CMGROUP_MAX
268269
CMSG_DATA
269270
CMSG_FIRSTHDR

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4894,6 +4894,10 @@ pub const KCMP_FILES: ::c_int = 102;
48944894
pub const KCMP_SIGHAND: ::c_int = 103;
48954895
pub const KCMP_VM: ::c_int = 104;
48964896

4897+
// sys/unistd.h
4898+
4899+
pub const CLOSE_RANGE_CLOEXEC: ::c_uint = 1 << 2;
4900+
48974901
pub const fn MAP_ALIGNED(a: ::c_int) -> ::c_int {
48984902
a << 24
48994903
}

0 commit comments

Comments
 (0)