Skip to content
Snippets Groups Projects
Verified Commit 2f718d40 authored by Dan Robertson's avatar Dan Robertson Committed by Dan Robertson
Browse files

mman: mman.h should be located at sys/mman.h

 - Update target location of mman.h to sys/mman.h
 - Add more types to sys/type.h
parent ffeefb2a
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ typedef long dev_t;
typedef unsigned long ino_t;
typedef int gid_t;
typedef int uid_t;
typedef int mode_t;
......@@ -18,6 +19,8 @@ typedef long off_t;
typedef int pid_t;
typedef unsigned id_t;
typedef long ssize_t;
typedef long time_t;
......
......@@ -7,5 +7,5 @@ fn main() {
fs::create_dir_all("../../target/include").expect("failed to create include directory");
cbindgen::generate(crate_dir)
.expect("failed to generate bindings")
.write_to_file("../../target/include/mman.h");
.write_to_file("../../target/include/sys/mman.h");
}
sys_includes = []
include_guard = "_MMAN_H"
sys_includes = ["sys/types.h"]
include_guard = "_SYS_MMAN_H"
language = "C"
[enum]
......
......@@ -50,6 +50,7 @@ pub type off_t = i64;
pub type mode_t = u16;
pub type time_t = i64;
pub type pid_t = usize;
pub type id_t = usize;
pub type gid_t = usize;
pub type uid_t = usize;
pub type dev_t = usize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment