Skip to content

Commit fe4f6d7

Browse files
committed
Auto merge of #2952 - SteveLauC:eaccess-on-freebsd-and-dragonfly, r=JohnTitor
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)
2 parents 0f5ee7a + a36515f commit fe4f6d7

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

libc-test/semver/dragonfly.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1536,3 +1536,4 @@ vmspace
15361536
wait4
15371537
waitid
15381538
xucred
1539+
eaccess

libc-test/semver/freebsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1925,3 +1925,4 @@ wait4
19251925
waitid
19261926
xallocx
19271927
xucred
1928+
eaccess

src/unix/bsd/freebsdlike/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,8 @@ extern "C" {
17311731
pub fn eui64_ntoa(id: *const eui64, a: *mut ::c_char, len: ::size_t) -> ::c_int;
17321732
pub fn eui64_ntohost(hostname: *mut ::c_char, len: ::size_t, id: *const eui64) -> ::c_int;
17331733
pub fn eui64_hostton(hostname: *const ::c_char, id: *mut eui64) -> ::c_int;
1734+
1735+
pub fn eaccess(path: *const ::c_char, mode: ::c_int) -> ::c_int;
17341736
}
17351737

17361738
#[link(name = "rt")]

0 commit comments

Comments
 (0)