Skip to content

Commit a8d7c4e

Browse files
authored
Merge pull request #3996 from devnexen/close_range_fbsd_upd
freebsd: add CLOSE_RANGE_CLOEXEC flag
2 parents b32d59d + 0fb363c commit a8d7c4e

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
@@ -4906,6 +4906,10 @@ pub const KCMP_FILES: ::c_int = 102;
49064906
pub const KCMP_SIGHAND: ::c_int = 103;
49074907
pub const KCMP_VM: ::c_int = 104;
49084908

4909+
// sys/unistd.h
4910+
4911+
pub const CLOSE_RANGE_CLOEXEC: ::c_uint = 1 << 2;
4912+
49094913
pub const fn MAP_ALIGNED(a: ::c_int) -> ::c_int {
49104914
a << 24
49114915
}

0 commit comments

Comments
 (0)