X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=c11840d6b9a49fa1669b749b9e0deb2467796fe9;hb=ec381af90208a5675183202cf05078eac208edfb;hp=24cbeb25d136b06f29ab33b03e832d348f9d75c2;hpb=99b8a25e941e54537bf39ca2f265c345f393f112;p=musl diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 24cbeb25..c11840d6 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -12,6 +12,7 @@ #include #include #include +#include #include "libc.h" #include "syscall.h" #include "atomic.h" @@ -44,6 +45,8 @@ struct pthread { } robust_list; int unblock_cancel; int delete_timer; + locale_t locale; + int killlock; }; struct __timer { @@ -77,10 +80,14 @@ struct __timer { #define SIGTIMER 32 #define SIGCANCEL 33 -#define SIGSYSCALL 34 +#define SIGSYNCCALL 34 -#define SIGPT_SET ((sigset_t){{[sizeof(long)==4] = 3<<(32*(sizeof(long)>4))}}) -#define SIGTIMER_SET ((sigset_t){{ 0x80000000 }}) +#define SIGPT_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \ + [sizeof(long)==4] = 3UL<<(32*(sizeof(long)>4)) }) +#define SIGTIMER_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \ + 0x80000000 }) + +pthread_t __pthread_self_init(void); int __set_thread_area(void *); int __libc_sigaction(int, const struct sigaction *, struct sigaction *); @@ -88,13 +95,12 @@ int __libc_sigprocmask(int, const sigset_t *, sigset_t *); void __lock(volatile int *); void __unmapself(void *, size_t); -int __timedwait(volatile int *, int, clockid_t, const struct timespec *, int); -int __timedwait_cp(volatile int *, int, clockid_t, const struct timespec *, int); +int __timedwait(volatile int *, int, clockid_t, const struct timespec *, void (*)(void *), void *, int); void __wait(volatile int *, volatile int *, int, int); void __wake(volatile int *, int, int); -void __rsyscall_lock(); -void __rsyscall_unlock(); +void __synccall_lock(); +void __synccall_unlock(); #define DEFAULT_STACK_SIZE (16384-PAGE_SIZE) #define DEFAULT_GUARD_SIZE PAGE_SIZE