Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add eaccess on freebsd and dragonfly #2952

Merged
merged 1 commit into from Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/semver/dragonfly.txt
Expand Up @@ -1536,3 +1536,4 @@ vmspace
wait4
waitid
xucred
eaccess
1 change: 1 addition & 0 deletions libc-test/semver/freebsd.txt
Expand Up @@ -1925,3 +1925,4 @@ wait4
waitid
xallocx
xucred
eaccess
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Expand Up @@ -1731,6 +1731,8 @@ extern "C" {
pub fn eui64_ntoa(id: *const eui64, a: *mut ::c_char, len: ::size_t) -> ::c_int;
pub fn eui64_ntohost(hostname: *mut ::c_char, len: ::size_t, id: *const eui64) -> ::c_int;
pub fn eui64_hostton(hostname: *const ::c_char, id: *mut eui64) -> ::c_int;

pub fn eaccess(path: *const ::c_char, mode: ::c_int) -> ::c_int;
}

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