duplicate POSIX_FADV_*
This commit is contained in:
parent
e16b11d26c
commit
756d7eeefe
|
@ -136,6 +136,8 @@ pub const USER_PROCESS: ::c_short = 7;
|
|||
pub const BUFSIZ: ::c_uint = 1024;
|
||||
pub const FILENAME_MAX: ::c_uint = 1024;
|
||||
pub const FOPEN_MAX: ::c_uint = 20;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
pub const L_tmpnam: ::c_uint = 1024;
|
||||
pub const TMP_MAX: ::c_uint = 308915776;
|
||||
pub const _PC_LINK_MAX: ::c_int = 1;
|
||||
|
|
|
@ -203,6 +203,8 @@ s! {
|
|||
pub const BUFSIZ: ::c_uint = 8192;
|
||||
pub const TMP_MAX: ::c_uint = 238328;
|
||||
pub const FOPEN_MAX: ::c_uint = 16;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
|
||||
pub const _SC_2_C_VERSION: ::c_int = 96;
|
||||
pub const RUSAGE_THREAD: ::c_int = 1;
|
||||
|
|
|
@ -196,6 +196,8 @@ pub const O_APPEND: ::c_int = 8;
|
|||
pub const O_CREAT: ::c_int = 256;
|
||||
pub const O_EXCL: ::c_int = 1024;
|
||||
pub const O_NONBLOCK: ::c_int = 128;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
pub const PTHREAD_STACK_MIN: ::size_t = 131072;
|
||||
pub const RLIM_INFINITY: ::rlim_t = 0xffffffffffffffff;
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
|
|
|
@ -74,6 +74,8 @@ pub const O_ACCMODE: ::c_int = 0o10000003;
|
|||
pub const O_NDELAY: ::c_int = O_NONBLOCK;
|
||||
pub const NI_MAXHOST: ::socklen_t = 255;
|
||||
pub const PTHREAD_STACK_MIN: ::size_t = 2048;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
|
||||
pub const RLIM_INFINITY: ::rlim_t = !0;
|
||||
pub const RLIMIT_RTTIME: ::c_int = 15;
|
||||
|
|
|
@ -356,6 +356,8 @@ pub const FALLOC_FL_PUNCH_HOLE: ::c_int = 0x02;
|
|||
pub const BUFSIZ: ::c_uint = 8192;
|
||||
pub const TMP_MAX: ::c_uint = 238328;
|
||||
pub const FOPEN_MAX: ::c_uint = 16;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
|
||||
pub const _SC_2_C_VERSION: ::c_int = 96;
|
||||
pub const RUSAGE_THREAD: ::c_int = 1;
|
||||
|
|
|
@ -613,11 +613,6 @@ 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;
|
||||
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x100;
|
||||
|
|
Loading…
Reference in New Issue