diff --git a/src/header/semaphore/cbindgen.toml b/src/header/semaphore/cbindgen.toml index 06159c85b2..30f09127b7 100644 --- a/src/header/semaphore/cbindgen.toml +++ b/src/header/semaphore/cbindgen.toml @@ -1,4 +1,11 @@ -# fcntl.h brings in O_CREAT and O_EXCL +# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/semaphore.h.html +# +# Spec quotations relating to includes: +# - "The header shall define the timespec structure as described in ." +# - "The header shall define O_CREAT and O_EXCL as described in ." +# - "Inclusion of the header may make visible symbols defined in the and headers." +# +# bits/clockid-t.h brings in clockid_t directly instead of indirectly from time.h for sem_clockwait sys_includes = ["fcntl.h"] include_guard = "_RELIBC_SEMAPHORE_H" after_includes = """