X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=e6089f02f7ec601f2c8752cf03d1848395892410;hb=7683fceedebd98dda19b1a379b92406b64ce7f92;hp=049f5dfb4ddd4e1f2f5303e20e6e5cc1b44f11fb;hpb=f16a3089be33a75ef8e75b2dd5ec3095996bbb87;p=musl diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 049f5dfb..e6089f02 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 { @@ -75,9 +78,14 @@ struct __timer { #include "pthread_arch.h" -#define SIGCANCEL 32 -#define SIGSYSCALL 33 -#define SIGTIMER 34 +#define SIGTIMER 32 +#define SIGCANCEL 33 +#define SIGSYNCCALL 34 + +#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 }) int __set_thread_area(void *); int __libc_sigaction(int, const struct sigaction *, struct sigaction *); @@ -90,8 +98,8 @@ int __timedwait_cp(volatile int *, int, clockid_t, const struct timespec *, 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