yann@1
|
1 |
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/pthread/pthread.h.diff?r1=1.31&r2=1.32&cvsroot=glibc
|
yann@1
|
2 |
|
yann@1
|
3 |
Fixes
|
yann@1
|
4 |
../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "__thread"
|
yann@1
|
5 |
../linuxthreads/sysdeps/pthread/pthread.h:141: error: `pthread_create' declared as function returning a function
|
yann@1
|
6 |
../linuxthreads/sysdeps/pthread/pthread.h:141: warning: function declaration isn't a prototype
|
yann@1
|
7 |
../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "void"
|
yann@1
|
8 |
../linuxthreads/sysdeps/pthread/pthread.h:462: error: storage class specified for parameter `type name'
|
yann@1
|
9 |
|
yann@1
|
10 |
when compiling with gcc3.x
|
yann@1
|
11 |
|
yann@1
|
12 |
Rediffed against glibc-2.1.3
|
yann@1
|
13 |
|
yann@1
|
14 |
--- glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h.orig 2000-01-20 17:40:19.000000000 -0800
|
yann@1
|
15 |
+++ glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h 2004-03-04 15:56:43.000000000 -0800
|
yann@1
|
16 |
@@ -138,7 +138,7 @@
|
yann@1
|
17 |
/* Create a thread with given attributes ATTR (or default attributes
|
yann@1
|
18 |
if ATTR is NULL), and call function START_ROUTINE with given
|
yann@1
|
19 |
arguments ARG. */
|
yann@1
|
20 |
-extern int pthread_create __P ((pthread_t *__thread,
|
yann@1
|
21 |
+extern int pthread_create __P ((pthread_t *__threadp,
|
yann@1
|
22 |
__const pthread_attr_t *__attr,
|
yann@1
|
23 |
void *(*__start_routine) (void *),
|
yann@1
|
24 |
void *__arg));
|
yann@1
|
25 |
@@ -459,7 +459,7 @@
|
yann@1
|
26 |
extern int pthread_setcanceltype __P ((int __type, int *__oldtype));
|
yann@1
|
27 |
|
yann@1
|
28 |
/* Cancel THREAD immediately or at the next possibility. */
|
yann@1
|
29 |
-extern int pthread_cancel __P ((pthread_t __thread));
|
yann@1
|
30 |
+extern int pthread_cancel __P ((pthread_t __cancelthread));
|
yann@1
|
31 |
|
yann@1
|
32 |
/* Test for pending cancellation for the current thread and terminate
|
yann@1
|
33 |
the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
|