diff --git a/src/header/_aio/cbindgen.toml b/src/header/_aio/cbindgen.toml index 596c950abc..a60a49b7b7 100644 --- a/src/header/_aio/cbindgen.toml +++ b/src/header/_aio/cbindgen.toml @@ -1,6 +1,20 @@ -# signal brings in sigevent, size_t and timespec +# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/aio.h.html +# +# Spec quotations relating to includes: +# - "The header shall define the off_t, pthread_attr_t, size_t, and ssize_t types as described in ." +# - "The header shall define the struct timespec structure as described in ." +# - "The header shall define the sigevent structure and sigval union as described in ." +# - "Inclusion of the header may make visible symbols defined in the headers , , and ." +# +# TODO don't bring in all of bits/pthread.h +# +# signal.h brings in sigevent and sigval +# signal.h brings in bits/timespec.h for timespec from time.h +# signal.h brings in bits/pthread.h bringing in pthread_attr_t from sys/types.h +# signal.h brings in size_t from sys/types.h sys_includes = ["signal.h"] after_includes = """ +#include // for off_t from sys/types.h #include // for ssize_t from sys/types.h """ include_guard = "_RELIBC_AIO_H"