Skip to content

Commit 9d23b66

Browse files
committed
feat: closefrom() and close_range() for FreeBSD
1 parent 0c17db2 commit 9d23b66

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

Diff for: libc-test/semver/freebsd.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2238,4 +2238,4 @@ eaccess
22382238
dirname
22392239
basename
22402240
closefrom
2241-
close_from
2241+
close_range

Diff for: src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ extern "C" {
522522

523523
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
524524
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
525-
pub fn close_range(lowfd: ::c_uint, highfd: ::c_uint, flags: ::c_int) -> ::c_int;
526525
}
527526

528527
#[link(name = "kvm")]

Diff for: src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ extern "C" {
522522

523523
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
524524
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
525-
pub fn close_range(lowfd: ::c_uint, highfd: ::c_uint, flags: ::c_int) -> ::c_int;
526525
}
527526

528527
#[link(name = "kvm")]

Diff for: src/unix/bsd/freebsdlike/freebsd/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5423,6 +5423,7 @@ extern "C" {
54235423
old_value: *mut itimerspec,
54245424
) -> ::c_int;
54255425
pub fn closefrom(lowfd: ::c_int);
5426+
pub fn close_range(lowfd: ::c_uint, highfd: ::c_uint, flags: ::c_int) -> ::c_int;
54265427
}
54275428

54285429
#[link(name = "memstat")]

0 commit comments

Comments
 (0)