Skip to content

Commit a3ca238

Browse files
devnexentgross35
authored andcommitted
freebsd adding CLOSE_RANGE_CLOEXEC flag
(backport <#3996>) (cherry picked from commit 0fb363c)
1 parent 8c88d9a commit a3ca238

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/semver/freebsd.txt

+1
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

+4
Original file line numberDiff line numberDiff line change
@@ -4968,6 +4968,10 @@ pub const TFD_CLOEXEC: ::c_int = O_CLOEXEC;
49684968
pub const TFD_TIMER_ABSTIME: ::c_int = 0x01;
49694969
pub const TFD_TIMER_CANCEL_ON_SET: ::c_int = 0x02;
49704970

4971+
// sys/unistd.h
4972+
4973+
pub const CLOSE_RANGE_CLOEXEC: ::c_uint = 1 << 2;
4974+
49714975
cfg_if! {
49724976
if #[cfg(libc_const_extern_fn)] {
49734977
pub const fn MAP_ALIGNED(a: ::c_int) -> ::c_int {

0 commit comments

Comments
 (0)