diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-12 11:03:09 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-12 11:03:09 -0400 |
| commit | ca214751ee761d3d6d1f63e771456da63e4d7791 (patch) | |
| tree | fa39b72e5c478a2d43b6e9b23c0e105557239b1b /src | |
| parent | ecd4d00f1bdf184163cc44ed8261d9f11ca9aae0 (diff) | |
add version macros
Diffstat (limited to 'src')
36 files changed, 141 insertions, 0 deletions
diff --git a/src/threads/ONCE_FLAG_INIT.c b/src/threads/ONCE_FLAG_INIT.c index 2337950e..66a81242 100644 --- a/src/threads/ONCE_FLAG_INIT.c +++ b/src/threads/ONCE_FLAG_INIT.c @@ -1 +1,4 @@ #define ONCE_FLAG_INIT /* same as PTHREAD_ONCE_INIT */ +/* +STDC(201112) +*/ diff --git a/src/threads/TSS_DTOR_ITERATIONS.c b/src/threads/TSS_DTOR_ITERATIONS.c index 557fb656..1bedb2a5 100644 --- a/src/threads/TSS_DTOR_ITERATIONS.c +++ b/src/threads/TSS_DTOR_ITERATIONS.c @@ -1 +1,4 @@ #define TSS_DTOR_ITERATIONS (64) +/* +STDC(201112) +*/ diff --git a/src/threads/_enums.c b/src/threads/_enums.c index 61451287..a8a16849 100644 --- a/src/threads/_enums.c +++ b/src/threads/_enums.c @@ -11,3 +11,6 @@ enum { thrd_nomem = 3, thrd_timedout = 4, }; +/* +STDC(201112) +*/ diff --git a/src/threads/call_once.c b/src/threads/call_once.c index 14f4962d..1f1a792c 100644 --- a/src/threads/call_once.c +++ b/src/threads/call_once.c @@ -5,3 +5,7 @@ void call_once(once_flag *flag, void (*func)(void)) { pthread_once(flag, func); } + +/* +STDC(201112) +*/ diff --git a/src/threads/cnd_broadcast.c b/src/threads/cnd_broadcast.c index 4735b97e..c8a66798 100644 --- a/src/threads/cnd_broadcast.c +++ b/src/threads/cnd_broadcast.c @@ -5,3 +5,7 @@ int cnd_broadcast(cnd_t *cond) { return pthread_cond_broadcast(cond) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/cnd_destroy.c b/src/threads/cnd_destroy.c index 7fda89bf..ca723dac 100644 --- a/src/threads/cnd_destroy.c +++ b/src/threads/cnd_destroy.c @@ -5,3 +5,7 @@ void cnd_destroy(cnd_t *cond) { pthread_cond_destroy(cond); } + +/* +STDC(201112) +*/ diff --git a/src/threads/cnd_init.c b/src/threads/cnd_init.c index 96fc0490..75142ac0 100644 --- a/src/threads/cnd_init.c +++ b/src/threads/cnd_init.c @@ -17,3 +17,7 @@ int cnd_init(cnd_t *cond) return thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/cnd_signal.c b/src/threads/cnd_signal.c index 0a00d095..8f652280 100644 --- a/src/threads/cnd_signal.c +++ b/src/threads/cnd_signal.c @@ -5,3 +5,7 @@ int cnd_signal(cnd_t *cond) { return pthread_cond_signal(cond) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/cnd_t.c b/src/threads/cnd_t.c index 8974db4c..cb6a93d0 100644 --- a/src/threads/cnd_t.c +++ b/src/threads/cnd_t.c @@ -1 +1,5 @@ typedef /* same as pthread_cond_t */ cnd_t; + +/* +STDC(201112) +*/ diff --git a/src/threads/cnd_timedwait.c b/src/threads/cnd_timedwait.c index d3421cff..ebd822f0 100644 --- a/src/threads/cnd_timedwait.c +++ b/src/threads/cnd_timedwait.c @@ -17,3 +17,7 @@ int cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, const struct timesp return thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/cnd_wait.c b/src/threads/cnd_wait.c index 41d77c01..d488ca75 100644 --- a/src/threads/cnd_wait.c +++ b/src/threads/cnd_wait.c @@ -5,3 +5,7 @@ int cnd_wait(cnd_t *cond, mtx_t *mtx) { return pthread_cond_wait(cond, mtx) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/mtx_destroy.c b/src/threads/mtx_destroy.c index 7693b018..376542be 100644 --- a/src/threads/mtx_destroy.c +++ b/src/threads/mtx_destroy.c @@ -5,3 +5,7 @@ void mtx_destroy(mtx_t *mtx) { pthread_mutex_destroy(mtx); } + +/* +STDC(201112) +*/ diff --git a/src/threads/mtx_init.c b/src/threads/mtx_init.c index 5615736b..f161a0a1 100644 --- a/src/threads/mtx_init.c +++ b/src/threads/mtx_init.c @@ -13,3 +13,7 @@ int mtx_init(mtx_t *mtx, int type) } return pthread_mutex_init(mtx, &attr) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/mtx_lock.c b/src/threads/mtx_lock.c index 3ab52bff..79ca4756 100644 --- a/src/threads/mtx_lock.c +++ b/src/threads/mtx_lock.c @@ -5,3 +5,7 @@ int mtx_lock(mtx_t *mtx) { return pthread_mutex_lock(mtx); } + +/* +STDC(201112) +*/ diff --git a/src/threads/mtx_t.c b/src/threads/mtx_t.c index aa761c1c..a690eb6a 100644 --- a/src/threads/mtx_t.c +++ b/src/threads/mtx_t.c @@ -1 +1,5 @@ typedef /* same as pthread_mutex_t */ mtx_t; + +/* +STDC(201112) +*/ diff --git a/src/threads/mtx_timedlock.c b/src/threads/mtx_timedlock.c index 1e8ec23b..1a435024 100644 --- a/src/threads/mtx_timedlock.c +++ b/src/threads/mtx_timedlock.c @@ -17,3 +17,7 @@ int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts) return thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/mtx_trylock.c b/src/threads/mtx_trylock.c index cf2b6005..bef2a274 100644 --- a/src/threads/mtx_trylock.c +++ b/src/threads/mtx_trylock.c @@ -17,3 +17,7 @@ int mtx_trylock(mtx_t *mtx) return thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/mtx_unlock.c b/src/threads/mtx_unlock.c index 509a3f86..d7055077 100644 --- a/src/threads/mtx_unlock.c +++ b/src/threads/mtx_unlock.c @@ -5,3 +5,7 @@ int mtx_unlock(mtx_t *mtx) { return pthread_mutex_unlock(mtx) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/once_flag.c b/src/threads/once_flag.c index 989bb1a7..16b64509 100644 --- a/src/threads/once_flag.c +++ b/src/threads/once_flag.c @@ -1 +1,5 @@ typedef /* same as pthread_once_t */ once_flag; + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_create.c b/src/threads/thrd_create.c index 100d16cc..31c0fd4c 100644 --- a/src/threads/thrd_create.c +++ b/src/threads/thrd_create.c @@ -18,3 +18,7 @@ int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) return thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_current.c b/src/threads/thrd_current.c index 34333fdd..2f2ef860 100644 --- a/src/threads/thrd_current.c +++ b/src/threads/thrd_current.c @@ -5,3 +5,7 @@ thrd_t thrd_current(void) { return pthread_self(); } + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_detach.c b/src/threads/thrd_detach.c index 2e178bc3..b845369f 100644 --- a/src/threads/thrd_detach.c +++ b/src/threads/thrd_detach.c @@ -5,3 +5,7 @@ int thrd_detach(thrd_t thr) { return pthread_detach(thr) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_equal.c b/src/threads/thrd_equal.c index 7e582310..19f8e621 100644 --- a/src/threads/thrd_equal.c +++ b/src/threads/thrd_equal.c @@ -5,3 +5,7 @@ int thrd_equal(thrd_t thr0, thrd_t thr1) { return pthread_equal(thr0, thr1); } + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_exit.c b/src/threads/thrd_exit.c index 4b393d06..0acdbcd8 100644 --- a/src/threads/thrd_exit.c +++ b/src/threads/thrd_exit.c @@ -5,3 +5,7 @@ _Noreturn void thrd_exit(int res) { pthread_exit(&res); } + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_join.c b/src/threads/thrd_join.c index a44e4021..5c401279 100644 --- a/src/threads/thrd_join.c +++ b/src/threads/thrd_join.c @@ -5,3 +5,7 @@ int thrd_join(thrd_t thr, int *res) { return pthread_join(thr, (void**)&res) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_sleep.c b/src/threads/thrd_sleep.c index 49c5522c..8c853d17 100644 --- a/src/threads/thrd_sleep.c +++ b/src/threads/thrd_sleep.c @@ -5,3 +5,7 @@ int thrd_sleep(const struct timespec *duration, struct timespec *remaining) { return nanosleep(duration, remaining); } + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_start_t.c b/src/threads/thrd_start_t.c index 2dc640c8..c44f1bcb 100644 --- a/src/threads/thrd_start_t.c +++ b/src/threads/thrd_start_t.c @@ -1 +1,5 @@ typedef int (*thrd_start_t)(void *); + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_t.c b/src/threads/thrd_t.c index d996cd60..9db99925 100644 --- a/src/threads/thrd_t.c +++ b/src/threads/thrd_t.c @@ -1 +1,5 @@ typedef /* same as pthread_t */ thrd_t; + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_yield.c b/src/threads/thrd_yield.c index 5b969f4e..5a6b176c 100644 --- a/src/threads/thrd_yield.c +++ b/src/threads/thrd_yield.c @@ -5,3 +5,7 @@ void thrd_yield(void) { sched_yield(); } + +/* +STDC(201112) +*/ diff --git a/src/threads/thread_local.c b/src/threads/thread_local.c index b9250131..595bcb22 100644 --- a/src/threads/thread_local.c +++ b/src/threads/thread_local.c @@ -1 +1,5 @@ #define thread_local _Thread_local + +/* +STDC(201112) +*/ diff --git a/src/threads/tss_create.c b/src/threads/tss_create.c index 97803893..28219231 100644 --- a/src/threads/tss_create.c +++ b/src/threads/tss_create.c @@ -5,3 +5,7 @@ int tss_create(tss_t *key, tss_dtor_t dtor) { return pthread_key_create(key, dtor) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/tss_delete.c b/src/threads/tss_delete.c index b64f279d..23e6873a 100644 --- a/src/threads/tss_delete.c +++ b/src/threads/tss_delete.c @@ -5,3 +5,7 @@ void tss_delete(tss_t key) { pthread_key_delete(key); } + +/* +STDC(201112) +*/ diff --git a/src/threads/tss_dtor_t.c b/src/threads/tss_dtor_t.c index f36e3298..fa2556cb 100644 --- a/src/threads/tss_dtor_t.c +++ b/src/threads/tss_dtor_t.c @@ -1 +1,5 @@ typedef void (*tss_dtor_t)(void*); + +/* +STDC(201112) +*/ diff --git a/src/threads/tss_get.c b/src/threads/tss_get.c index 68484fbe..f3d44ad3 100644 --- a/src/threads/tss_get.c +++ b/src/threads/tss_get.c @@ -5,3 +5,7 @@ void *tss_get(tss_t key) { return pthread_getspecific(key); } + +/* +STDC(201112) +*/ diff --git a/src/threads/tss_set.c b/src/threads/tss_set.c index 899bd071..2314d417 100644 --- a/src/threads/tss_set.c +++ b/src/threads/tss_set.c @@ -5,3 +5,7 @@ int tss_set(tss_t key, void *val) { return pthread_setspecific(key, val) == 0 ? thrd_success : thrd_error; } + +/* +STDC(201112) +*/ diff --git a/src/threads/tss_t.c b/src/threads/tss_t.c index 8d7ea994..8efd9a9d 100644 --- a/src/threads/tss_t.c +++ b/src/threads/tss_t.c @@ -1 +1,5 @@ typedef /* same as pthread_key_t */ tss_t; + +/* +STDC(201112) +*/ |
