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 committed Oct 7, 2023
1 parent c7a860d commit 02d78dc
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
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
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 02d78dc

Please sign in to comment.