diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:25:37 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:25:37 -0500 |
| commit | eb55cd7a9e8a8e77f48f0c7d7449fa9e00cea75f (patch) | |
| tree | 2da53e254943e2e1836f63fd260a1322862d02b5 /src/threads | |
| parent | c03798ecaecc529eab2332c11d1550f02f503c87 (diff) | |
git rid of __check_* in favor of CHECK_*
Diffstat (limited to 'src/threads')
| -rw-r--r-- | src/threads/cnd_broadcast.c | 2 | ||||
| -rw-r--r-- | src/threads/cnd_init.c | 2 | ||||
| -rw-r--r-- | src/threads/cnd_signal.c | 2 | ||||
| -rw-r--r-- | src/threads/cnd_timedwait.c | 2 | ||||
| -rw-r--r-- | src/threads/cnd_wait.c | 2 | ||||
| -rw-r--r-- | src/threads/mtx_init.c | 2 | ||||
| -rw-r--r-- | src/threads/mtx_lock.c | 2 | ||||
| -rw-r--r-- | src/threads/mtx_timedlock.c | 2 | ||||
| -rw-r--r-- | src/threads/mtx_trylock.c | 2 | ||||
| -rw-r--r-- | src/threads/mtx_unlock.c | 2 | ||||
| -rw-r--r-- | src/threads/thrd_create.c | 2 | ||||
| -rw-r--r-- | src/threads/thrd_current.c | 2 | ||||
| -rw-r--r-- | src/threads/thrd_detach.c | 2 | ||||
| -rw-r--r-- | src/threads/thrd_equal.c | 2 | ||||
| -rw-r--r-- | src/threads/thrd_join.c | 2 | ||||
| -rw-r--r-- | src/threads/thrd_sleep.c | 2 | ||||
| -rw-r--r-- | src/threads/tss_create.c | 2 | ||||
| -rw-r--r-- | src/threads/tss_get.c | 2 | ||||
| -rw-r--r-- | src/threads/tss_set.c | 2 |
19 files changed, 19 insertions, 19 deletions
diff --git a/src/threads/cnd_broadcast.c b/src/threads/cnd_broadcast.c index 5253c1e8..a1f80b48 100644 --- a/src/threads/cnd_broadcast.c +++ b/src/threads/cnd_broadcast.c @@ -9,7 +9,7 @@ int cnd_broadcast(cnd_t *cond) return pthread_cond_broadcast(cond) == 0 ? thrd_success : thrd_error; } -__check_1(int, 0, cnd_broadcast, cnd_t *) +CHECK_1(int, 0, cnd_broadcast, cnd_t *) /* STDC(201112) diff --git a/src/threads/cnd_init.c b/src/threads/cnd_init.c index 94cc142f..73b62e8c 100644 --- a/src/threads/cnd_init.c +++ b/src/threads/cnd_init.c @@ -21,7 +21,7 @@ int cnd_init(cnd_t *cond) return thrd_error; } -__check_1(int, 0, cnd_init, cnd_t *) +CHECK_1(int, 0, cnd_init, cnd_t *) /* STDC(201112) diff --git a/src/threads/cnd_signal.c b/src/threads/cnd_signal.c index bce158be..d80f4f30 100644 --- a/src/threads/cnd_signal.c +++ b/src/threads/cnd_signal.c @@ -9,7 +9,7 @@ int cnd_signal(cnd_t *cond) return pthread_cond_signal(cond) == 0 ? thrd_success : thrd_error; } -__check_1(int, 0, cnd_signal, cnd_t *) +CHECK_1(int, 0, cnd_signal, cnd_t *) /* STDC(201112) diff --git a/src/threads/cnd_timedwait.c b/src/threads/cnd_timedwait.c index 1e86b7e5..b62cdfd6 100644 --- a/src/threads/cnd_timedwait.c +++ b/src/threads/cnd_timedwait.c @@ -25,7 +25,7 @@ int cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, const struct timesp return thrd_error; } -__check_3(int, 0, cnd_timedwait, cnd_t * restrict, mtx_t * restrict, const struct timespec * restrict) +CHECK_3(int, 0, cnd_timedwait, cnd_t * restrict, mtx_t * restrict, const struct timespec * restrict) /* STDC(201112) diff --git a/src/threads/cnd_wait.c b/src/threads/cnd_wait.c index bee8ff2b..2a65971a 100644 --- a/src/threads/cnd_wait.c +++ b/src/threads/cnd_wait.c @@ -11,7 +11,7 @@ int cnd_wait(cnd_t *cond, mtx_t *mtx) return pthread_cond_wait(cond, mtx) == 0 ? thrd_success : thrd_error; } -__check_2(int, 0, cnd_wait, cnd_t *, mtx_t *) +CHECK_2(int, 0, cnd_wait, cnd_t *, mtx_t *) /* STDC(201112) diff --git a/src/threads/mtx_init.c b/src/threads/mtx_init.c index 43691c3d..f363b255 100644 --- a/src/threads/mtx_init.c +++ b/src/threads/mtx_init.c @@ -17,7 +17,7 @@ int mtx_init(mtx_t *mtx, int type) return pthread_mutex_init(mtx, &attr) == 0 ? thrd_success : thrd_error; } -__check_2(int, 0, mtx_init, mtx_t *, int) +CHECK_2(int, 0, mtx_init, mtx_t *, int) /* STDC(201112) diff --git a/src/threads/mtx_lock.c b/src/threads/mtx_lock.c index 85b80395..131188c3 100644 --- a/src/threads/mtx_lock.c +++ b/src/threads/mtx_lock.c @@ -9,7 +9,7 @@ int mtx_lock(mtx_t *mtx) return pthread_mutex_lock(mtx); } -__check_1(int, 0, mtx_lock, mtx_t *) +CHECK_1(int, 0, mtx_lock, mtx_t *) /* STDC(201112) diff --git a/src/threads/mtx_timedlock.c b/src/threads/mtx_timedlock.c index 80069bc5..ded0a41e 100644 --- a/src/threads/mtx_timedlock.c +++ b/src/threads/mtx_timedlock.c @@ -23,7 +23,7 @@ int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts) return thrd_error; } -__check_2(int, 0, mtx_timedlock, mtx_t * restrict, const struct timespec * restrict) +CHECK_2(int, 0, mtx_timedlock, mtx_t * restrict, const struct timespec * restrict) /* STDC(201112) diff --git a/src/threads/mtx_trylock.c b/src/threads/mtx_trylock.c index 0dd169fa..3571504d 100644 --- a/src/threads/mtx_trylock.c +++ b/src/threads/mtx_trylock.c @@ -21,7 +21,7 @@ int mtx_trylock(mtx_t *mtx) return thrd_error; } -__check_1(int, 0, mtx_trylock, mtx_t *) +CHECK_1(int, 0, mtx_trylock, mtx_t *) /* STDC(201112) diff --git a/src/threads/mtx_unlock.c b/src/threads/mtx_unlock.c index fe789420..ae7e6ec1 100644 --- a/src/threads/mtx_unlock.c +++ b/src/threads/mtx_unlock.c @@ -9,7 +9,7 @@ int mtx_unlock(mtx_t *mtx) return pthread_mutex_unlock(mtx) == 0 ? thrd_success : thrd_error; } -__check_1(int, 0, mtx_unlock, mtx_t *) +CHECK_1(int, 0, mtx_unlock, mtx_t *) /* STDC(201112) diff --git a/src/threads/thrd_create.c b/src/threads/thrd_create.c index 2e6a875f..cad1b055 100644 --- a/src/threads/thrd_create.c +++ b/src/threads/thrd_create.c @@ -24,7 +24,7 @@ int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) return thrd_error; } -__check_3(int, 0, thrd_create, thrd_t *, thrd_start_t, void *) +CHECK_3(int, 0, thrd_create, thrd_t *, thrd_start_t, void *) /* STDC(201112) diff --git a/src/threads/thrd_current.c b/src/threads/thrd_current.c index f18d7b29..a47d6b82 100644 --- a/src/threads/thrd_current.c +++ b/src/threads/thrd_current.c @@ -9,7 +9,7 @@ thrd_t thrd_current(void) return pthread_self(); } -__check_0(thrd_t, 0, thrd_current) +CHECK_0(thrd_t, 0, thrd_current) /* STDC(201112) diff --git a/src/threads/thrd_detach.c b/src/threads/thrd_detach.c index 1840abee..26a12fc2 100644 --- a/src/threads/thrd_detach.c +++ b/src/threads/thrd_detach.c @@ -9,7 +9,7 @@ int thrd_detach(thrd_t thr) return pthread_detach(thr) == 0 ? thrd_success : thrd_error; } -__check_1(int, 0, thrd_detach, thrd_t) +CHECK_1(int, 0, thrd_detach, thrd_t) /* STDC(201112) diff --git a/src/threads/thrd_equal.c b/src/threads/thrd_equal.c index 7d072c2c..dd61e6c1 100644 --- a/src/threads/thrd_equal.c +++ b/src/threads/thrd_equal.c @@ -9,7 +9,7 @@ int thrd_equal(thrd_t thr0, thrd_t thr1) return pthread_equal(thr0, thr1); } -__check_2(int, 0, thrd_equal, thrd_t, thrd_t) +CHECK_2(int, 0, thrd_equal, thrd_t, thrd_t) /* STDC(201112) diff --git a/src/threads/thrd_join.c b/src/threads/thrd_join.c index fef04302..f17ac010 100644 --- a/src/threads/thrd_join.c +++ b/src/threads/thrd_join.c @@ -9,7 +9,7 @@ int thrd_join(thrd_t thr, int *res) return pthread_join(thr, (void**)&res) == 0 ? thrd_success : thrd_error; } -__check_2(int, 0, thrd_join, thrd_t, int *) +CHECK_2(int, 0, thrd_join, thrd_t, int *) /* STDC(201112) diff --git a/src/threads/thrd_sleep.c b/src/threads/thrd_sleep.c index 7ea445a2..a44c47e4 100644 --- a/src/threads/thrd_sleep.c +++ b/src/threads/thrd_sleep.c @@ -11,7 +11,7 @@ int thrd_sleep(const struct timespec *duration, struct timespec *remaining) return nanosleep(duration, remaining); } -__check_2(int, 0, thrd_sleep, const struct timespec *, struct timespec *) +CHECK_2(int, 0, thrd_sleep, const struct timespec *, struct timespec *) /* STDC(201112) diff --git a/src/threads/tss_create.c b/src/threads/tss_create.c index e5f254e1..5844f058 100644 --- a/src/threads/tss_create.c +++ b/src/threads/tss_create.c @@ -9,7 +9,7 @@ int tss_create(tss_t *key, tss_dtor_t dtor) return pthread_key_create(key, dtor) == 0 ? thrd_success : thrd_error; } -__check_2(int, 0, tss_create, tss_t *, tss_dtor_t) +CHECK_2(int, 0, tss_create, tss_t *, tss_dtor_t) /* STDC(201112) diff --git a/src/threads/tss_get.c b/src/threads/tss_get.c index 68ff5cd1..e2bce67c 100644 --- a/src/threads/tss_get.c +++ b/src/threads/tss_get.c @@ -9,7 +9,7 @@ void *tss_get(tss_t key) return pthread_getspecific(key); } -__check_1(void *, 0, tss_get, tss_t) +CHECK_1(void *, 0, tss_get, tss_t) /* STDC(201112) diff --git a/src/threads/tss_set.c b/src/threads/tss_set.c index c6a09f2b..82fd88c2 100644 --- a/src/threads/tss_set.c +++ b/src/threads/tss_set.c @@ -9,7 +9,7 @@ int tss_set(tss_t key, void *val) return pthread_setspecific(key, val) == 0 ? thrd_success : thrd_error; } -__check_2(int, 0, tss_set, tss_t, void *) +CHECK_2(int, 0, tss_set, tss_t, void *) /* STDC(201112) |
