This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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] Enable XSI extensions by default


On Aug 25 14:18, Yaakov Selkowitz wrote:
> On 2017-08-25 00:29, Sebastian Huber wrote:
> > This test program
> > 
> >   #include <strings.h>
> > 
> >   int f(int i)
> >   {
> >     return ffs(i);
> >   }
> > 
> > resulted in the follwing GCC warning
> > 
> >   warning: implicit declaration of function 'ffs' [-Wimplicit-function-declaration]
> 
> Then the guards on ffs need to be fixed to match glibc.

glibc man page claims

   _POSIX_C_SOURCE >= 200809L
       || /* Glibc since 2.19: */ _DEFAULT_SOURCE
       || /* Glibc versions <= 2.19: */ _BSD_SOURCE ||
   _SVID_SOURCE

> > This is not the case for glibc and FreeBSD.  On FreeBSD __XSI_VISBLE is
> > by default defined to 700.  Do this also on Newlib.
> 
> Nak.  glibc does *not* enable XSI extensions by default.
> 
> -- 
> Yaakov


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


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