X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=67b0575345eef1b186e6aa7de8734e6a3e5d4fe9;hp=544da9ceec9906ff24b7457e689662265644f372;hb=9448b0513e2eec020fbca9c10412b83df5027a16;hpb=facc6acbfd20accea435d10fdd070b23877e40db diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 544da9ce..67b05753 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -23,6 +23,8 @@ struct pthread { int detached; unsigned char *map_base; size_t map_size; + void *stack; + size_t stack_size; void *start_arg; void *(*start)(void *); void *result; @@ -41,7 +43,7 @@ struct pthread { int killlock[2]; int exitlock[2]; int startlock[2]; - unsigned long sigmask[__SYSCALL_SSLEN/sizeof(long)]; + unsigned long sigmask[_NSIG/8/sizeof(long)]; }; struct __timer { @@ -89,10 +91,10 @@ struct __timer { #define SIGALL_SET ((sigset_t *)(const unsigned long long [2]){ -1,-1 }) #define SIGPT_SET \ - ((sigset_t *)(const unsigned long [__SYSCALL_SSLEN/sizeof(long)]){ \ + ((sigset_t *)(const unsigned long [_NSIG/8/sizeof(long)]){ \ [sizeof(long)==4] = 3UL<<(32*(sizeof(long)>4)) }) #define SIGTIMER_SET \ - ((sigset_t *)(const unsigned long [__SYSCALL_SSLEN/sizeof(long)]){ \ + ((sigset_t *)(const unsigned long [_NSIG/8/sizeof(long)]){ \ 0x80000000 }) pthread_t __pthread_self_init(void); @@ -113,6 +115,10 @@ void __acquire_ptc(); void __release_ptc(); void __inhibit_ptc(); +void __block_all_sigs(void *); +void __block_app_sigs(void *); +void __restore_sigs(void *); + #define DEFAULT_STACK_SIZE 81920 #define DEFAULT_GUARD_SIZE PAGE_SIZE