Skip to content

Commit

Permalink
feat: closefrom() and close_range() for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored and Brijeshkrishna committed Oct 22, 2023
1 parent da43eb0 commit 7e80ce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2237,3 +2237,5 @@ xucred
eaccess
dirname
basename
closefrom
close_range
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5422,6 +5422,8 @@ extern "C" {
new_value: *const itimerspec,
old_value: *mut itimerspec,
) -> ::c_int;
pub fn closefrom(lowfd: ::c_int);
pub fn close_range(lowfd: ::c_uint, highfd: ::c_uint, flags: ::c_int) -> ::c_int;
}

#[link(name = "memstat")]
Expand Down

0 comments on commit 7e80ce5

Please sign in to comment.