Skip to content

Commit

Permalink
Auto merge of #2952 - SteveLauC:eaccess-on-freebsd-and-dragonfly, r=J…
Browse files Browse the repository at this point in the history
…ohnTitor

add eaccess on freebsd and dragonfly

[man page of freebsd](https://www.freebsd.org/cgi/man.cgi?query=eaccess&sektion=2&n=1)
[man page of dragonfly](https://man.dragonflybsd.org/?command=access&section=2)
  • Loading branch information
bors committed Oct 10, 2022
2 parents 0f5ee7a + a36515f commit fe4f6d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
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

0 comments on commit fe4f6d7

Please sign in to comment.