Skip to content

Commit e01c428

Browse files
committed
add euidaccess and eaccess on gnu/musl linux
1 parent 2dfe1ab commit e01c428

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,3 +647,5 @@ timex
647647
utmpname
648648
utmpx
649649
utmpxname
650+
euidaccess
651+
eaccess

libc-test/semver/linux-musl.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ process_vm_writev
4848
pwritev64
4949
reallocarray
5050
timex
51+
euidaccess
52+
eaccess

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,9 @@ extern "C" {
13151315

13161316
pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int;
13171317
pub fn mlock2(addr: *const ::c_void, len: ::size_t, flags: ::c_uint) -> ::c_int;
1318+
1319+
pub fn euidaccess(pathname: *const ::c_char, mode: ::c_int) -> ::c_int;
1320+
pub fn eaccess(pathname: *const ::c_char, mode: ::c_int) -> ::c_int;
13181321
}
13191322

13201323
extern "C" {

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,9 @@ extern "C" {
754754
pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int;
755755
pub fn mlock2(addr: *const ::c_void, len: ::size_t, flags: ::c_uint) -> ::c_int;
756756
pub fn malloc_usable_size(ptr: *mut ::c_void) -> ::size_t;
757+
758+
pub fn euidaccess(pathname: *const ::c_char, mode: ::c_int) -> ::c_int;
759+
pub fn eaccess(pathname: *const ::c_char, mode: ::c_int) -> ::c_int;
757760
}
758761

759762
cfg_if! {

0 commit comments

Comments
 (0)