This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [BZ #18970]: Reference of pthread_setcancelstate in libc.a


On Thu, 17 Sep 2015, H.J. Lu wrote:

> On Thu, Sep 17, 2015 at 2:51 PM, Roland McGrath <roland@hack.frob.com> wrote:
> >> Is this a valid test?
> >
> > No.  There should be no need for individual tests like that.  The
> > linknamespace tests should catch such things if the conform data is correct
> > (and if it's not, the right thing is to fix the conform data).
> >
> > AFAIK fmtmsg is only specified in standards that put all POSIX.1 symbols
> > (including pthread_setcancelstate) in the implementation name space.
> 
> Does it mean it is OK for all most of, if not all,  non-ANSI C functions,
> in glibc to use all POSIX.1 symbols? This is the usage of any non-ANSI C
> functions may pull in any POSIX.1 symbols.

Although most supported feature test macros in glibc are supersets of 
POSIX.1:1990, it's also the case that ISO C functions use lots of 
non-ISO-C functions via their implementation-namespace __* names - if an 
ISO C function uses __foo (strong name to which weak foo is a POSIX.1 
alias) then __foo can't use bar (non-ISO-C function) although it can use 
__bar.


-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]