Files
RedBear-OS/src/header/sys_wait/cbindgen.toml
T
Red Bear OS ae99d15bfa 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)
2026-06-28 19:24:17 +03:00

21 lines
604 B
TOML

sys_includes = ["sys/types.h", "sys/resource.h", "signal.h", "stdint.h"]
include_guard = "_RELIBC_SYS_WAIT_H"
after_includes = """
#define WEXITSTATUS(s) (((s) >> 8) & 0xff)
#define WTERMSIG(s) ((s) & 0x7f)
#define WSTOPSIG(s) WEXITSTATUS(s)
#define WCOREDUMP(s) (((s) & 0x80) != 0)
#define WIFEXITED(s) (((s) & 0x7f) == 0)
#define WIFSTOPPED(s) (((s) & 0xff) == 0x7f)
#define WIFSIGNALED(s) (((((s) & 0x7f) + 1U) & 0x7f) >= 2) // Ends with 1111111 or 10000000
#define WIFCONTINUED(s) ((s) == 0xffff)
"""
language = "C"
style = "Tag"
no_includes = true
cpp_compat = true
[enum]
prefix_with_name = true