diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-07 17:28:52 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-07 18:24:51 -0500 |
commit | f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 (patch) | |
tree | 93b156621dc0303816b37f60ba88051b702d92f6 /lib/mlibc/options/internal/include/bits/threads.h | |
parent | bd5969fc876a10b18613302db7087ef3c40f18e1 (diff) |
build: Build mlibc + add distclean target
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/options/internal/include/bits/threads.h')
-rw-r--r-- | lib/mlibc/options/internal/include/bits/threads.h | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/lib/mlibc/options/internal/include/bits/threads.h b/lib/mlibc/options/internal/include/bits/threads.h deleted file mode 100644 index 3feb4c3..0000000 --- a/lib/mlibc/options/internal/include/bits/threads.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef _INTERNAL_THREADS_H -#define _INTERNAL_THREADS_H - -#include <abi-bits/clockid_t.h> -#include <bits/size_t.h> -#include <bits/cpu_set.h> -#include <bits/sigset_t.h> - -// values for pthread_attr_{get,set}detachstate(). -#define __MLIBC_THREAD_CREATE_JOINABLE 0 -#define __MLIBC_THREAD_CREATE_DETACHED 1 - -// values for pthread_mutexattr_{get,set}type(). -#define __MLIBC_THREAD_MUTEX_DEFAULT 0 -#define __MLIBC_THREAD_MUTEX_NORMAL 0 -#define __MLIBC_THREAD_MUTEX_ERRORCHECK 1 -#define __MLIBC_THREAD_MUTEX_RECURSIVE 2 - -// values for pthread_mutexattr_{get,set}pshared(). -#define __MLIBC_THREAD_PROCESS_PRIVATE 0 -#define __MLIBC_THREAD_PROCESS_SHARED 1 - -// values for pthread_mutexattr_{get,set}robust(). -#define __MLIBC_THREAD_MUTEX_STALLED 0 -#define __MLIBC_THREAD_MUTEX_ROBUST 1 - -// Values for pthread_mutexattr_{get,set}protocol() -#define __MLIBC_THREAD_PRIO_NONE 0 -#define __MLIBC_THREAD_PRIO_INHERIT 1 -#define __MLIBC_THREAD_PRIO_PROTECT 2 - -struct sched_param { - int sched_priority; -}; - -struct __mlibc_thread_data; - -struct __mlibc_threadattr { - size_t __mlibc_guardsize; - size_t __mlibc_stacksize; - void *__mlibc_stackaddr; - int __mlibc_detachstate; - int __mlibc_scope; - int __mlibc_inheritsched; - struct sched_param __mlibc_schedparam; - int __mlibc_schedpolicy; - cpu_set_t *__mlibc_cpuset; - size_t __mlibc_cpusetsize; - sigset_t __mlibc_sigmask; - int __mlibc_sigmaskset; -}; - -struct __mlibc_mutex { - unsigned int __mlibc_state; - unsigned int __mlibc_recursion; - unsigned int __mlibc_flags; - int __mlibc_prioceiling; -}; - -struct __mlibc_mutexattr { - int __mlibc_type; - int __mlibc_robust; - int __mlibc_protocol; - int __mlibc_pshared; - int __mlibc_prioceiling; -}; - -struct __mlibc_cond { - unsigned int __mlibc_seq; - unsigned int __mlibc_flags; - clockid_t __mlibc_clock; -}; - -struct __mlibc_condattr { - int __mlibc_pshared; - clockid_t __mlibc_clock; -}; - -#endif /* _INTERNAL_THREADS_H */ |