Skip to content

Commit

Permalink
Auto merge of #3324 - ecnelises:aix_stat64at, r=JohnTitor
Browse files Browse the repository at this point in the history
Add stat64at function declaration to AIX

In AIX, when large file API enabled, fstatat will be redirected to stat64at.

Also, fix clockid_t to correct definition, as time-rs builds well with this change.
  • Loading branch information
bors committed Oct 27, 2023
2 parents 907a99e + 076d53a commit 27ce4ff
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/unix/aix/mod.rs
@@ -1,7 +1,6 @@
pub type c_char = i8;
pub type caddr_t = *mut ::c_char;
// FIXME: clockid_t must be c_long, but time.rs accepts only i32
pub type clockid_t = ::c_int;
pub type clockid_t = ::c_longlong;
pub type blkcnt_t = ::c_long;
pub type clock_t = ::c_int;
pub type daddr_t = ::c_long;
Expand Down Expand Up @@ -3275,7 +3274,13 @@ extern "C" {
pub fn splice(socket1: ::c_int, socket2: ::c_int, flags: ::c_int) -> ::c_int;
pub fn srand(seed: ::c_uint);
pub fn srand48(seed: ::c_long);
pub fn stat64(path: *const c_char, buf: *mut stat64) -> ::c_int;
pub fn stat64(path: *const ::c_char, buf: *mut stat64) -> ::c_int;
pub fn stat64at(
dirfd: ::c_int,
path: *const ::c_char,
buf: *mut stat64,
flags: ::c_int,
) -> ::c_int;
pub fn statfs(path: *const ::c_char, buf: *mut statfs) -> ::c_int;
pub fn statfs64(path: *const ::c_char, buf: *mut statfs64) -> ::c_int;
pub fn statvfs64(path: *const ::c_char, buf: *mut statvfs64) -> ::c_int;
Expand Down

0 comments on commit 27ce4ff

Please sign in to comment.