move sys mman bits to cbindgen

This commit is contained in:
auronandace
2026-03-26 11:33:11 +00:00
parent 88de0babd3
commit db8021d4c8
3 changed files with 2 additions and 7 deletions
-6
View File
@@ -1,6 +0,0 @@
#ifndef _BITS_SYS_MMAN_H
#define _BITS_SYS_MMAN_H
#define MAP_FAILED ((void *) -1)
#endif
+1 -1
View File
@@ -1,6 +1,6 @@
sys_includes = ["stdarg.h", "stdint.h", "sys/types.h"]
include_guard = "_SYS_MMAN_H"
trailer = "#include <bits/sys/mman.h>"
trailer = "#define MAP_FAILED ((void *) -1)"
language = "C"
style = "Tag"
no_includes = true
+1
View File
@@ -34,6 +34,7 @@ pub const MAP_TYPE: c_int = 0x000F;
pub const MAP_ANON: c_int = 0x0020;
pub const MAP_ANONYMOUS: c_int = MAP_ANON;
pub const MAP_STACK: c_int = 0x20000;
/// cbindgen:ignore
pub const MAP_FAILED: *mut c_void = usize::wrapping_neg(1) as *mut c_void;
pub const MREMAP_MAYMOVE: c_int = 1;