This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] S/390: Fix namespace violation
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Roland McGrath <roland at hack dot frob dot com>, Stefan Liebler <stli at linux dot vnet dot ibm dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 14 Mar 2014 17:44:33 -0400
- Subject: Re: [PATCH] S/390: Fix namespace violation
- Authentication-results: sourceware.org; auth=none
- References: <lfuu4b$uam$1 at ger dot gmane dot org> <20140314170224 dot 7B1CF74495 at topped-with-meat dot com>
On 03/14/2014 01:02 PM, Roland McGrath wrote:
> If you're going to touch it at all , you should make it follow the new
> convention and be __glibc_reserved* instead.
Agreed.
See:
https://sourceware.org/glibc/wiki/Consensus
~~~
Anyone can commit a change to any header to rename __block to
__glibc_block or __unused to __glibc_reserved. Multiple versions
of the same symbol can be created by appending a number e.g.
__glibc_reserved1. Consenus was reached that glibc would use
the internal prefix __glibc to avoid name collisions with
other tools that comprise the implementation from a standard
perspective.
See https://sourceware.org/ml/libc-alpha/2012-02/msg00047.html.
Note that __unused is used by source from BSD that defines it as
the unused attribute for the compiler, while __block is used by
Clang's -fblocks extension.
~~~
Cheers,
Carlos.