Add sys/types to sys_shm, fix guard names

This commit is contained in:
Wildan M
2026-05-20 19:22:54 +07:00
parent bc6ea5ba99
commit ad443944f3
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
# Spec quotations relating to includes:
# - The <sys/ipc.h> header shall define the uid_t, gid_t, mode_t, and key_t types as described in <sys/types.h>
sys_includes = []
include_guard = "_SYS_IPC_H"
include_guard = "_RELIBC_SYS_IPC_H"
after_includes = """
#include <bits/gid-t.h> // for gid_t from sys/types.h
#include <bits/uid-t.h> // for uid_t from sys/types.h
+7 -1
View File
@@ -2,9 +2,15 @@
#
# Spec quotations relating to includes:
# - The <sys/shm.h> header shall define the type intptr_t as described in <stdint.h>
# - The <sys/shm.h> header shall define the pid_t, size_t, and time_t types as described in <sys/types.h>
# - In addition, the <sys/shm.h> header shall include the <sys/ipc.h> header.
sys_includes = ["sys/ipc.h", "stdint.h"]
include_guard = "_SYS_SHM_H"
include_guard = "_RELIBC_SYS_SHM_H"
after_includes = """
#include <bits/pid-t.h> // for pid_t from sys/types.h
#include <bits/size-t.h> // for size_t from sys/types.h
#include <bits/time-t.h> // for time_t from sys/types.h
"""
language = "C"
style = "Tag"