diff --git a/src/header/sys_syscall/cbindgen.toml b/src/header/sys_syscall/cbindgen.toml index 6976288d42..cfcf8e2528 100644 --- a/src/header/sys_syscall/cbindgen.toml +++ b/src/header/sys_syscall/cbindgen.toml @@ -1,8 +1,9 @@ -# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_statvfs.h.html -# -# Spec quotations relating to includes: -# - "The header shall define the fsblkcnt_t and fsfilcnt_t types as described in ." -sys_includes = ["sys/types.h"] -include_guard = "_SYS_SYSCALL_H" +# Non-POSIX header spec: https://www.man7.org/linux/man-pages/man2/syscall.2.html +sys_includes = [] +include_guard = "_RELIBC_SYS_SYSCALL_H" +after_includes = """ +#include +""" language = "C" no_includes = true +usize_is_size_t = true diff --git a/src/header/sys_syscall/mod.rs b/src/header/sys_syscall/mod.rs index cb8c1350e7..e0b811b201 100644 --- a/src/header/sys_syscall/mod.rs +++ b/src/header/sys_syscall/mod.rs @@ -1,3 +1,7 @@ +//! `sys/syscall.h` implementation. +//! +//! Non-POSIX, see . + // copied from sc crate #[cfg(all(target_os = "linux", target_arch = "aarch64"))] pub mod aarch64;