From 4341a11f51bfe9174acc40c1ebeec9e18d6e3a0e Mon Sep 17 00:00:00 2001 From: auronandace Date: Thu, 21 May 2026 12:30:13 +0100 Subject: [PATCH] clean up sys_syscall header --- src/header/sys_syscall/cbindgen.toml | 13 +++++++------ src/header/sys_syscall/mod.rs | 4 ++++ 2 files changed, 11 insertions(+), 6 deletions(-) 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;