| ... | @@ -2273,3 +2273,21 @@ pub const sigevent = extern struct { | ... | @@ -2273,3 +2273,21 @@ pub const sigevent = extern struct { |
| 2273 | __spare__: [8]c_long, | 2273 | __spare__: [8]c_long, |
| 2274 | }, | 2274 | }, |
| 2275 | }; | 2275 | }; |
| | 2276 | |
| | 2277 | pub const MIN = struct { |
| | 2278 | pub const INCORE = 0x1; |
| | 2279 | pub const REFERENCED = 0x2; |
| | 2280 | pub const MODIFIED = 0x4; |
| | 2281 | pub const REFERENCED_OTHER = 0x8; |
| | 2282 | pub const MODIFIED_OTHER = 0x10; |
| | 2283 | pub const SUPER = 0x60; |
| | 2284 | pub fn PSIND(i: u32) u32 { |
| | 2285 | return (i << 5) & SUPER; |
| | 2286 | } |
| | 2287 | }; |
| | 2288 | |
| | 2289 | pub extern "c" fn mincore( |
| | 2290 | addr: *align(std.mem.page_size) const anyopaque, |
| | 2291 | length: usize, |
| | 2292 | vec: [*]u8, |
| | 2293 | ) c_int; |