X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=78b69cde85cee8455c74819d5445d9a98151d1a3;hb=c82f53f67cb256e0096c8649235028b6613b9a22;hp=544da9ceec9906ff24b7457e689662265644f372;hpb=facc6acbfd20accea435d10fdd070b23877e40db;p=musl diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 544da9ce..78b69cde 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);