verify pthread header includes

This commit is contained in:
auronandace
2026-06-08 08:09:48 +01:00
parent e4617b4ba3
commit ba3bd139ad
+8
View File
@@ -1,3 +1,11 @@
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/pthread.h.html
#
# Spec quotations relating to includes:
# - "The <pthread.h> header shall define the pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t, pthread_rwlockattr_t, pthread_spinlock_t, and pthread_t types as described in <sys/types.h>."
# - "Inclusion of the <pthread.h> header shall make symbols defined in the headers <sched.h> and <time.h> visible."
#
# bits/pthread.h bring in the types from sys/types.h
# features.h needed for no return (Rust never type)
sys_includes = ["sched.h", "time.h", "bits/pthread.h", "features.h"]
include_guard = "_RELIBC_PTHREAD_H"
language = "C"