[parisc-linux] gcc-cvs problem

John David Anglin dave@hiauly1.hia.nrc.ca
Mon, 3 Jun 2002 11:12:48 -0400 (EDT)


> /* Create a thread with given attributes ATTR (or default attributes
>    if ATTR is NULL), and call function START_ROUTINE with given
>    arguments ARG.  */
> extern int pthread_create (pthread_t *__restrict __thr,
>                            __const pthread_attr_t *__restrict __attr,
>                            void *(*__start_routine) (void *),
>                            void *__restrict __arg) __THROW;
> ...
> 
> Which seems to be the desired patch?

Yes.

> Hmm... In what changing parameter name from __thread to __thr in such function
> prototype does matter (exepted if there is a border effect with some #define
> else where)? [afaik this name doe not matter for a C compiler?]

Changing the name doesn't matter in a C function prototype.  The bug in the
system header is that __thread is now a reserved language keyword.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)