cvs commit: src/lib/libc/include namespace.h un-namespace.h

Daniel Eischen deischen at freebsd.org
Tue Mar 28 20:26:02 UTC 2006


On Tue, 28 Mar 2006, Dag-Erling Smorgrav wrote:

> des         2006-03-28 16:41:06 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     lib/libc/include     namespace.h un-namespace.h
>   Log:
>   Add a bunch of missing pthread functions, and move out-of-order functions.
>
>   Revision  Changes    Path
>   1.19      +64 -6     src/lib/libc/include/namespace.h
>   1.16      +64 -7     src/lib/libc/include/un-namespace.h

I think this broke (at least) building libpthread.  There are
several files in src/libpthread/thread/ that use these
namespace files.

Kris Kennaway wrote in a different thread:

> On 7.0 during buildworld:
>
> /usr/src/lib/libpthread/thread/thr_barrier.c:69: error: conflicting types for
> '_pthread_barrier_init'
> /usr/src/lib/libpthread/../../include/pthread.h:156: error: previous declaration of
> '_pthread_barrier_init' was here
> /usr/src/lib/libpthread/thread/thr_barrier.c:69: error: conflicting types for
> '_pthread_barrier_init'
> /usr/src/lib/libpthread/../../include/pthread.h:156: error: previous declaration of
> '_pthread_barrier_init' was here
> *** Error code 1
>
> Those two declarations are:
>
> > int
> > _pthread_barrier_init(pthread_barrier_t *barrier,
> >                       const pthread_barrierattr_t *attr, int count)
>
> > int             pthread_barrier_init(pthread_barrier_t *,
> >                         const pthread_barrierattr_t *, unsigned);
>
> What is odd is that I can't see how this suddenly broke.

In order to keep the namespace changes, we need to remove the
use of [un-]namespace.h in these files and add separate declarations
for the needed _pthread_foo() functions in
libpthread/thread/thr_private.h.

-- 
DE





More information about the cvs-src mailing list