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 0c17db2 commit 9d23b66
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libc-test/semver/freebsd.txt
Expand Up @@ -2238,4 +2238,4 @@ eaccess
dirname
basename
closefrom
close_from
close_range
1 change: 0 additions & 1 deletion src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs
Expand Up @@ -522,7 +522,6 @@ extern "C" {

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

#[link(name = "kvm")]
Expand Down
1 change: 0 additions & 1 deletion src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs
Expand Up @@ -522,7 +522,6 @@ extern "C" {

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

#[link(name = "kvm")]
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Expand Up @@ -5423,6 +5423,7 @@ extern "C" {
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 9d23b66

Please sign in to comment.