Skip to content

Commit d0a4bb1

Browse files
authored
Merge pull request #4290 from tobhe/closefrom
closefrom: add NetBSD, OpenBSD, DragonflyBSD
2 parents d738047 + 8512ab4 commit d0a4bb1

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

libc-test/semver/dragonfly.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,7 @@ clock_getcpuclockid
12961296
clock_getres
12971297
clock_nanosleep
12981298
clock_settime
1299+
closefrom
12991300
cmsgcred
13001301
cmsghdr
13011302
cpuctl_cpuid_args_t

libc-test/semver/netbsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@ clearerr
12521252
clock_getres
12531253
clock_nanosleep
12541254
clock_settime
1255+
closefrom
12551256
cmsghdr
12561257
consttime_memequal
12571258
daemon

libc-test/semver/openbsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@ chroot
10641064
clearerr
10651065
clock_getres
10661066
clock_settime
1067+
closefrom
10671068
cmsghdr
10681069
daemon
10691070
devname

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

+2
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,8 @@ extern "C" {
17021702
mntvbufp: *mut *mut crate::statvfs,
17031703
flags: c_int,
17041704
) -> c_int;
1705+
1706+
pub fn closefrom(lowfd: c_int) -> c_int;
17051707
}
17061708

17071709
#[link(name = "rt")]

src/unix/bsd/netbsdlike/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,8 @@ extern "C" {
856856
flags: c_int,
857857
timeout: *mut crate::timespec,
858858
) -> c_int;
859+
860+
pub fn closefrom(lowfd: c_int) -> c_int;
859861
}
860862

861863
cfg_if! {

0 commit comments

Comments
 (0)