Skip to content

Commit aa915ee

Browse files
committed
add faccessat on illumos/solaris and euidaccess on solaris
1 parent 8dcd556 commit aa915ee

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/unix/solarish/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3145,6 +3145,8 @@ extern "C" {
31453145
pub fn setpflags(flags: ::c_uint, value: ::c_uint) -> ::c_int;
31463146

31473147
pub fn sysinfo(command: ::c_int, buf: *mut ::c_char, count: ::c_long) -> ::c_int;
3148+
3149+
pub fn faccessat(fd: ::c_int, path: *const ::c_char, amode: ::c_int, flag: ::c_int) -> ::c_int;
31483150
}
31493151

31503152
#[link(name = "sendfile")]

src/unix/solarish/solaris.rs

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ extern "C" {
7272
pub fn fattach(fildes: ::c_int, path: *const ::c_char) -> ::c_int;
7373

7474
pub fn pthread_getattr_np(thread: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int;
75+
76+
pub fn euidaccess(path: *const ::c_char, amode: ::c_int) -> ::c_int;
7577
}
7678

7779
s_no_extra_traits! {

0 commit comments

Comments
 (0)