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