1 #ifndef _PTHREAD_IMPL_H
2 #define _PTHREAD_IMPL_H
20 #define pthread __pthread
24 unsigned long tlsdesc[4];
26 int tsd_used, errno_val, *errno_ptr;
27 volatile int canceldisable, cancelasync, cancelpoint, cancel;
28 unsigned char *map_base;
31 void *(*start)(void *);
36 struct __ptcb *cancelbuf;
41 #include "pthread_arch.h"
45 #define SIGTIMER 32 /* ?? */
47 int __set_thread_area(void *);
48 int __libc_sigaction(int, const struct sigaction *, struct sigaction *);
49 int __libc_sigprocmask(int, const sigset_t *, sigset_t *);
50 void __lock(volatile int *);
51 void __unmapself(void *, size_t);
53 int __timedwait(volatile int *, int, clockid_t, const struct timespec *, int);
54 void __wait(volatile int *, volatile int *, int, int);
55 void __wake(volatile int *, int, int);
57 #define DEFAULT_STACK_SIZE (16384-PAGE_SIZE)
58 #define DEFAULT_GUARD_SIZE PAGE_SIZE