Skip to content

Commit

Permalink
Auto merge of #2953 - SteveLauC:faccessat-on-illumos-and-solaris, r=J…
Browse files Browse the repository at this point in the history
…ohnTitor

add faccessat on illumos/solaris and euidaccess on solaris

[`faccessat` man page of illumos](https://illumos.org/man/2/faccessat)

[`faccessat` and `euidaccess` man page of solaris](https://docs.oracle.com/cd/E88353_01/html/E37841/access-2.html)
  • Loading branch information
bors committed Oct 9, 2022
2 parents 8dcd556 + aa915ee commit 0f5ee7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/solarish/mod.rs
Expand Up @@ -3145,6 +3145,8 @@ extern "C" {
pub fn setpflags(flags: ::c_uint, value: ::c_uint) -> ::c_int;

pub fn sysinfo(command: ::c_int, buf: *mut ::c_char, count: ::c_long) -> ::c_int;

pub fn faccessat(fd: ::c_int, path: *const ::c_char, amode: ::c_int, flag: ::c_int) -> ::c_int;
}

#[link(name = "sendfile")]
Expand Down
2 changes: 2 additions & 0 deletions src/unix/solarish/solaris.rs
Expand Up @@ -72,6 +72,8 @@ extern "C" {
pub fn fattach(fildes: ::c_int, path: *const ::c_char) -> ::c_int;

pub fn pthread_getattr_np(thread: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int;

pub fn euidaccess(path: *const ::c_char, amode: ::c_int) -> ::c_int;
}

s_no_extra_traits! {
Expand Down

0 comments on commit 0f5ee7a

Please sign in to comment.