fix POSIX_FADV_*

This commit is contained in:
Jorge Aparicio 2016-09-03 00:58:30 -05:00
parent e7480eda34
commit e16b11d26c
2 changed files with 5 additions and 2 deletions

View File

@ -171,8 +171,8 @@ s! {
}
}
// FIXME POSIX_FADV_DONTNEED = 6
// FIXME POSIX_FADV_NOREUSE = 7
pub const POSIX_FADV_DONTNEED: ::c_int = 6;
pub const POSIX_FADV_NOREUSE: ::c_int = 7;
pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;

View File

@ -613,7 +613,10 @@ pub const POSIX_FADV_NORMAL: ::c_int = 0;
pub const POSIX_FADV_RANDOM: ::c_int = 1;
pub const POSIX_FADV_SEQUENTIAL: ::c_int = 2;
pub const POSIX_FADV_WILLNEED: ::c_int = 3;
// TODO modularize better
#[cfg(targe_arch = "s390x")]
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
#[cfg(targe_arch = "s390x")]
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
pub const AT_FDCWD: ::c_int = -100;