Skip to content

Commit 02d78dc

Browse files
committedOct 7, 2023
feat: closefrom() and close_range() for FreeBSD
1 parent c7a860d commit 02d78dc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

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

+2
Original file line numberDiff line numberDiff line change
@@ -2237,3 +2237,5 @@ xucred
22372237
eaccess
22382238
dirname
22392239
basename
2240+
closefrom
2241+
close_range

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

+2
Original file line numberDiff line numberDiff line change
@@ -5422,6 +5422,8 @@ extern "C" {
54225422
new_value: *const itimerspec,
54235423
old_value: *mut itimerspec,
54245424
) -> ::c_int;
5425+
pub fn closefrom(lowfd: ::c_int);
5426+
pub fn close_range(lowfd: ::c_uint, highfd: ::c_uint, flags: ::c_int) -> ::c_int;
54255427
}
54265428

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

0 commit comments

Comments
 (0)
Please sign in to comment.