| ... | ... | @@ -2408,6 +2408,27 @@ pub const MADV_PAGEOUT = 21; |
| 2408 | 2408 | pub const MADV_HWPOISON = 100; |
| 2409 | 2409 | pub const MADV_SOFT_OFFLINE = 101; |
| 2410 | 2410 | |
| 2411 | pub const POSIX_FADV_NORMAL = 0; |
| 2412 | pub const POSIX_FADV_RANDOM = 1; |
| 2413 | pub const POSIX_FADV_SEQUENTIAL = 2; |
| 2414 | pub const POSIX_FADV_WILLNEED = 3; |
| 2415 | pub usingnamespace switch (arch) { |
| 2416 | .s390x => if (@typeInfo(usize).Int.bits == 64) |
| 2417 | struct { |
| 2418 | pub const POSIX_FADV_DONTNEED = 6; |
| 2419 | pub const POSIX_FADV_NOREUSE = 7; |
| 2420 | } |
| 2421 | else |
| 2422 | struct { |
| 2423 | pub const POSIX_FADV_DONTNEED = 4; |
| 2424 | pub const POSIX_FADV_NOREUSE = 5; |
| 2425 | }, |
| 2426 | else => struct { |
| 2427 | pub const POSIX_FADV_DONTNEED = 4; |
| 2428 | pub const POSIX_FADV_NOREUSE = 5; |
| 2429 | }, |
| 2430 | }; |
| 2431 | |
| 2411 | 2432 | pub const __kernel_timespec = extern struct { |
| 2412 | 2433 | tv_sec: i64, |
| 2413 | 2434 | tv_nsec: i64, |