move sys mman bits to cbindgen
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
#ifndef _BITS_SYS_MMAN_H
|
||||
#define _BITS_SYS_MMAN_H
|
||||
|
||||
#define MAP_FAILED ((void *) -1)
|
||||
|
||||
#endif
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user