Skip to content

Commit 27ce4ff

Browse files
committed
Auto merge of #3324 - ecnelises:aix_stat64at, r=JohnTitor
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.
2 parents 907a99e + 076d53a commit 27ce4ff

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/unix/aix/mod.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pub type c_char = i8;
22
pub type caddr_t = *mut ::c_char;
3-
// FIXME: clockid_t must be c_long, but time.rs accepts only i32
4-
pub type clockid_t = ::c_int;
3+
pub type clockid_t = ::c_longlong;
54
pub type blkcnt_t = ::c_long;
65
pub type clock_t = ::c_int;
76
pub type daddr_t = ::c_long;
@@ -3275,7 +3274,13 @@ extern "C" {
32753274
pub fn splice(socket1: ::c_int, socket2: ::c_int, flags: ::c_int) -> ::c_int;
32763275
pub fn srand(seed: ::c_uint);
32773276
pub fn srand48(seed: ::c_long);
3278-
pub fn stat64(path: *const c_char, buf: *mut stat64) -> ::c_int;
3277+
pub fn stat64(path: *const ::c_char, buf: *mut stat64) -> ::c_int;
3278+
pub fn stat64at(
3279+
dirfd: ::c_int,
3280+
path: *const ::c_char,
3281+
buf: *mut stat64,
3282+
flags: ::c_int,
3283+
) -> ::c_int;
32793284
pub fn statfs(path: *const ::c_char, buf: *mut statfs) -> ::c_int;
32803285
pub fn statfs64(path: *const ::c_char, buf: *mut statfs64) -> ::c_int;
32813286
pub fn statvfs64(path: *const ::c_char, buf: *mut statvfs64) -> ::c_int;

0 commit comments

Comments
 (0)