From ae99d15bfab08c3c3d8fbd9b666f8f8a39b9924c Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Sun, 28 Jun 2026 19:24:17 +0300 Subject: [PATCH] fix: add missing sys_includes to reduce cbindgen type warnings - wchar.h: add stddef.h (wint_t/wchar_t), stdarg.h (va_list), stdio.h (FILE) - ctype.h: add stddef.h (wint_t) - string.h: add features.h, strings.h - sys_wait.h: add stdint.h (siginfo_t types) - sys_socket.h: add sys/un.h (sockaddr_un) --- src/header/ctype/cbindgen.toml | 2 +- src/header/string/cbindgen.toml | 2 +- src/header/sys_socket/cbindgen.toml | 2 +- src/header/sys_wait/cbindgen.toml | 2 +- src/header/wchar/cbindgen.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/header/ctype/cbindgen.toml b/src/header/ctype/cbindgen.toml index c0b42f8c49..74bb221c44 100644 --- a/src/header/ctype/cbindgen.toml +++ b/src/header/ctype/cbindgen.toml @@ -4,7 +4,7 @@ # - "The header shall define the locale_t type as described in , representing a locale object." # # features.h included for #[deprecated] annotation -sys_includes = ["features.h"] +sys_includes = ["features.h", "stddef.h"] include_guard = "_RELIBC_CTYPE_H" after_includes = """ #include // for locale_t diff --git a/src/header/string/cbindgen.toml b/src/header/string/cbindgen.toml index f5b8a9ad9a..e0f04f0a33 100644 --- a/src/header/string/cbindgen.toml +++ b/src/header/string/cbindgen.toml @@ -4,7 +4,7 @@ # - "The header shall define NULL and size_t as described in ." # - "The header shall define the locale_t type as described in ." # - "Inclusion of the header may also make visible all symbols from ." -sys_includes = ["stddef.h"] +sys_includes = ["stddef.h", "features.h", "strings.h"] include_guard = "_RELIBC_STRING_H" after_includes = """ #include // for locale_t from locale.h diff --git a/src/header/sys_socket/cbindgen.toml b/src/header/sys_socket/cbindgen.toml index 6372c60a0f..ffa64f9def 100644 --- a/src/header/sys_socket/cbindgen.toml +++ b/src/header/sys_socket/cbindgen.toml @@ -1,4 +1,4 @@ -sys_includes = ["stddef.h", "stdint.h", "sys/types.h"] +sys_includes = ["stddef.h", "stdint.h", "sys/types.h", "sys/un.h"] include_guard = "_RELIBC_SYS_SOCKET_H" after_includes = """ #include // for iovec from sys/uio.h diff --git a/src/header/sys_wait/cbindgen.toml b/src/header/sys_wait/cbindgen.toml index 25774409f8..f4cdf46b9c 100644 --- a/src/header/sys_wait/cbindgen.toml +++ b/src/header/sys_wait/cbindgen.toml @@ -1,4 +1,4 @@ -sys_includes = ["sys/types.h", "sys/resource.h", "signal.h"] +sys_includes = ["sys/types.h", "sys/resource.h", "signal.h", "stdint.h"] include_guard = "_RELIBC_SYS_WAIT_H" after_includes = """ diff --git a/src/header/wchar/cbindgen.toml b/src/header/wchar/cbindgen.toml index 77b888b105..846657c9a8 100644 --- a/src/header/wchar/cbindgen.toml +++ b/src/header/wchar/cbindgen.toml @@ -1,4 +1,4 @@ -sys_includes = ["features.h"] +sys_includes = ["features.h", "stddef.h", "stdarg.h", "stdio.h"] after_includes = """ // int32_t, uint32_t, WCHAR_MIN, WCHAR_MAX #include