Skip to content

Commit cbd255d

Browse files
committed
closefrom: add NetBSD, OpenBSD, DragonflyBSD
1 parent d738047 commit cbd255d

File tree

6 files changed

+7
-1
lines changed

6 files changed

+7
-1
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/freebsd/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5546,7 +5546,6 @@ extern "C" {
55465546
new_value: *const itimerspec,
55475547
old_value: *mut itimerspec,
55485548
) -> c_int;
5549-
pub fn closefrom(lowfd: c_int);
55505549
pub fn close_range(lowfd: c_uint, highfd: c_uint, flags: c_int) -> c_int;
55515550

55525551
pub fn execvpe(

src/unix/bsd/freebsdlike/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,8 @@ extern "C" {
17921792
search_path: *const c_char,
17931793
argv: *const *mut c_char,
17941794
) -> c_int;
1795+
1796+
pub fn closefrom(lowfd: c_int);
17951797
}
17961798

17971799
#[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);
859861
}
860862

861863
cfg_if! {

0 commit comments

Comments
 (0)