From ad443944f3042c6132a5e58d4c7cb2f1c24dcebd Mon Sep 17 00:00:00 2001 From: Wildan M Date: Wed, 20 May 2026 19:22:54 +0700 Subject: [PATCH] Add sys/types to sys_shm, fix guard names --- src/header/sys_ipc/cbindgen.toml | 2 +- src/header/sys_shm/cbindgen.toml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/header/sys_ipc/cbindgen.toml b/src/header/sys_ipc/cbindgen.toml index 22735777ef..4e3d0813b2 100644 --- a/src/header/sys_ipc/cbindgen.toml +++ b/src/header/sys_ipc/cbindgen.toml @@ -3,7 +3,7 @@ # Spec quotations relating to includes: # - The header shall define the uid_t, gid_t, mode_t, and key_t types as described in sys_includes = [] -include_guard = "_SYS_IPC_H" +include_guard = "_RELIBC_SYS_IPC_H" after_includes = """ #include // for gid_t from sys/types.h #include // for uid_t from sys/types.h diff --git a/src/header/sys_shm/cbindgen.toml b/src/header/sys_shm/cbindgen.toml index 0ab46ad2c1..0b5fa47012 100644 --- a/src/header/sys_shm/cbindgen.toml +++ b/src/header/sys_shm/cbindgen.toml @@ -2,9 +2,15 @@ # # Spec quotations relating to includes: # - The header shall define the type intptr_t as described in +# - The header shall define the pid_t, size_t, and time_t types as described in # - In addition, the header shall include the header. sys_includes = ["sys/ipc.h", "stdint.h"] -include_guard = "_SYS_SHM_H" +include_guard = "_RELIBC_SYS_SHM_H" +after_includes = """ +#include // for pid_t from sys/types.h +#include // for size_t from sys/types.h +#include // for time_t from sys/types.h +""" language = "C" style = "Tag"