From 661f59838235815b5073a0ef95f410003639519e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 16:14:04 -0400 Subject: rename non-compiled files to *.h --- src/threads/ONCE_FLAG_INIT.c | 4 ---- src/threads/ONCE_FLAG_INIT.h | 4 ++++ src/threads/TSS_DTOR_ITERATIONS.c | 4 ---- src/threads/TSS_DTOR_ITERATIONS.h | 4 ++++ src/threads/_enums.c | 16 ---------------- src/threads/_enums.h | 16 ++++++++++++++++ src/threads/cnd_t.c | 5 ----- src/threads/cnd_t.h | 5 +++++ src/threads/mtx_t.c | 5 ----- src/threads/mtx_t.h | 5 +++++ src/threads/thrd_start_t.c | 5 ----- src/threads/thrd_start_t.h | 5 +++++ src/threads/thrd_t.c | 5 ----- src/threads/thrd_t.h | 5 +++++ src/threads/tss_dtor_t.c | 5 ----- src/threads/tss_dtor_t.h | 5 +++++ src/threads/tss_t.c | 5 ----- src/threads/tss_t.h | 5 +++++ 18 files changed, 54 insertions(+), 54 deletions(-) delete mode 100644 src/threads/ONCE_FLAG_INIT.c create mode 100644 src/threads/ONCE_FLAG_INIT.h delete mode 100644 src/threads/TSS_DTOR_ITERATIONS.c create mode 100644 src/threads/TSS_DTOR_ITERATIONS.h delete mode 100644 src/threads/_enums.c create mode 100644 src/threads/_enums.h delete mode 100644 src/threads/cnd_t.c create mode 100644 src/threads/cnd_t.h delete mode 100644 src/threads/mtx_t.c create mode 100644 src/threads/mtx_t.h delete mode 100644 src/threads/thrd_start_t.c create mode 100644 src/threads/thrd_start_t.h delete mode 100644 src/threads/thrd_t.c create mode 100644 src/threads/thrd_t.h delete mode 100644 src/threads/tss_dtor_t.c create mode 100644 src/threads/tss_dtor_t.h delete mode 100644 src/threads/tss_t.c create mode 100644 src/threads/tss_t.h (limited to 'src/threads') diff --git a/src/threads/ONCE_FLAG_INIT.c b/src/threads/ONCE_FLAG_INIT.c deleted file mode 100644 index 66a81242..00000000 --- a/src/threads/ONCE_FLAG_INIT.c +++ /dev/null @@ -1,4 +0,0 @@ -#define ONCE_FLAG_INIT /* same as PTHREAD_ONCE_INIT */ -/* -STDC(201112) -*/ diff --git a/src/threads/ONCE_FLAG_INIT.h b/src/threads/ONCE_FLAG_INIT.h new file mode 100644 index 00000000..66a81242 --- /dev/null +++ b/src/threads/ONCE_FLAG_INIT.h @@ -0,0 +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 deleted file mode 100644 index 1bedb2a5..00000000 --- a/src/threads/TSS_DTOR_ITERATIONS.c +++ /dev/null @@ -1,4 +0,0 @@ -#define TSS_DTOR_ITERATIONS (64) -/* -STDC(201112) -*/ diff --git a/src/threads/TSS_DTOR_ITERATIONS.h b/src/threads/TSS_DTOR_ITERATIONS.h new file mode 100644 index 00000000..1bedb2a5 --- /dev/null +++ b/src/threads/TSS_DTOR_ITERATIONS.h @@ -0,0 +1,4 @@ +#define TSS_DTOR_ITERATIONS (64) +/* +STDC(201112) +*/ diff --git a/src/threads/_enums.c b/src/threads/_enums.c deleted file mode 100644 index a8a16849..00000000 --- a/src/threads/_enums.c +++ /dev/null @@ -1,16 +0,0 @@ -enum { - mtx_plain = 1 << 0, - mtx_recursive = 1 << 1, - mtx_timed = 1 << 2, -}; - -enum { - thrd_success = 0, - thrd_busy = 1, - thrd_error = 2, - thrd_nomem = 3, - thrd_timedout = 4, -}; -/* -STDC(201112) -*/ diff --git a/src/threads/_enums.h b/src/threads/_enums.h new file mode 100644 index 00000000..a8a16849 --- /dev/null +++ b/src/threads/_enums.h @@ -0,0 +1,16 @@ +enum { + mtx_plain = 1 << 0, + mtx_recursive = 1 << 1, + mtx_timed = 1 << 2, +}; + +enum { + thrd_success = 0, + thrd_busy = 1, + thrd_error = 2, + thrd_nomem = 3, + thrd_timedout = 4, +}; +/* +STDC(201112) +*/ diff --git a/src/threads/cnd_t.c b/src/threads/cnd_t.c deleted file mode 100644 index cb6a93d0..00000000 --- a/src/threads/cnd_t.c +++ /dev/null @@ -1,5 +0,0 @@ -typedef /* same as pthread_cond_t */ cnd_t; - -/* -STDC(201112) -*/ diff --git a/src/threads/cnd_t.h b/src/threads/cnd_t.h new file mode 100644 index 00000000..cb6a93d0 --- /dev/null +++ b/src/threads/cnd_t.h @@ -0,0 +1,5 @@ +typedef /* same as pthread_cond_t */ cnd_t; + +/* +STDC(201112) +*/ diff --git a/src/threads/mtx_t.c b/src/threads/mtx_t.c deleted file mode 100644 index a690eb6a..00000000 --- a/src/threads/mtx_t.c +++ /dev/null @@ -1,5 +0,0 @@ -typedef /* same as pthread_mutex_t */ mtx_t; - -/* -STDC(201112) -*/ diff --git a/src/threads/mtx_t.h b/src/threads/mtx_t.h new file mode 100644 index 00000000..a690eb6a --- /dev/null +++ b/src/threads/mtx_t.h @@ -0,0 +1,5 @@ +typedef /* same as pthread_mutex_t */ mtx_t; + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_start_t.c b/src/threads/thrd_start_t.c deleted file mode 100644 index c44f1bcb..00000000 --- a/src/threads/thrd_start_t.c +++ /dev/null @@ -1,5 +0,0 @@ -typedef int (*thrd_start_t)(void *); - -/* -STDC(201112) -*/ diff --git a/src/threads/thrd_start_t.h b/src/threads/thrd_start_t.h new file mode 100644 index 00000000..c44f1bcb --- /dev/null +++ b/src/threads/thrd_start_t.h @@ -0,0 +1,5 @@ +typedef int (*thrd_start_t)(void *); + +/* +STDC(201112) +*/ diff --git a/src/threads/thrd_t.c b/src/threads/thrd_t.c deleted file mode 100644 index 9db99925..00000000 --- a/src/threads/thrd_t.c +++ /dev/null @@ -1,5 +0,0 @@ -typedef /* same as pthread_t */ thrd_t; - -/* -STDC(201112) -*/ diff --git a/src/threads/thrd_t.h b/src/threads/thrd_t.h new file mode 100644 index 00000000..9db99925 --- /dev/null +++ b/src/threads/thrd_t.h @@ -0,0 +1,5 @@ +typedef /* same as pthread_t */ thrd_t; + +/* +STDC(201112) +*/ diff --git a/src/threads/tss_dtor_t.c b/src/threads/tss_dtor_t.c deleted file mode 100644 index fa2556cb..00000000 --- a/src/threads/tss_dtor_t.c +++ /dev/null @@ -1,5 +0,0 @@ -typedef void (*tss_dtor_t)(void*); - -/* -STDC(201112) -*/ diff --git a/src/threads/tss_dtor_t.h b/src/threads/tss_dtor_t.h new file mode 100644 index 00000000..fa2556cb --- /dev/null +++ b/src/threads/tss_dtor_t.h @@ -0,0 +1,5 @@ +typedef void (*tss_dtor_t)(void*); + +/* +STDC(201112) +*/ diff --git a/src/threads/tss_t.c b/src/threads/tss_t.c deleted file mode 100644 index 8efd9a9d..00000000 --- a/src/threads/tss_t.c +++ /dev/null @@ -1,5 +0,0 @@ -typedef /* same as pthread_key_t */ tss_t; - -/* -STDC(201112) -*/ diff --git a/src/threads/tss_t.h b/src/threads/tss_t.h new file mode 100644 index 00000000..8efd9a9d --- /dev/null +++ b/src/threads/tss_t.h @@ -0,0 +1,5 @@ +typedef /* same as pthread_key_t */ tss_t; + +/* +STDC(201112) +*/ -- cgit v1.2.1