diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index e56441640b813..e27f0f6fda319 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -1536,3 +1536,4 @@ vmspace wait4 waitid xucred +eaccess \ No newline at end of file diff --git a/libc-test/semver/freebsd.txt b/libc-test/semver/freebsd.txt index e74355f1e5a07..649ef77161524 100644 --- a/libc-test/semver/freebsd.txt +++ b/libc-test/semver/freebsd.txt @@ -1925,3 +1925,4 @@ wait4 waitid xallocx xucred +eaccess \ No newline at end of file diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index 3bf083c5ca9d5..db21597d98168 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -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")]