work around a nasty bug in linux readv syscall
[musl] / src / internal / pthread_impl.h
index 615b963..0bcc54c 100644 (file)
@@ -41,10 +41,12 @@ struct pthread {
                long off;
                void *pending;
        } robust_list;
+       int unblock_cancel;
 };
 
 struct __timer {
-       struct sigevent sev;
+       int timerid;
+       pthread_t thread;
 };
 
 #define __SU (sizeof(size_t)/sizeof(int))
@@ -73,7 +75,6 @@ struct __timer {
 
 #define SIGCANCEL 32
 #define SIGSYSCALL 33
-#define SIGTIMER  32 /* ?? */
 
 int __set_thread_area(void *);
 int __libc_sigaction(int, const struct sigaction *, struct sigaction *);
@@ -85,6 +86,9 @@ int __timedwait(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();
+
 #define DEFAULT_STACK_SIZE (16384-PAGE_SIZE)
 #define DEFAULT_GUARD_SIZE PAGE_SIZE