Sharing of bits/fcntl.h on Linux (SPARC, x86)

Joseph S. Myers joseph@codesourcery.com
Tue Oct 23 23:42:00 GMT 2012


On Tue, 23 Oct 2012, Andreas Jaeger wrote:

> On 10/23/2012 08:26 PM, Roland McGrath wrote:
> > > -#if defined __USE_XOPEN || defined __USE_XOPEN2K
> > >   /* The Single Unix specification says that some more types are
> > >      available here.  */
> > 
> > Update this comment.  SUS is relevant to those feature test macros, not to
> > anything else.  It should say "POSIX.1-yyyy says that these types are
> > defined here", for whatever yyyy is appropriate (and an exact citation
> > wouldn't hurt).  Joseph said that "newer POSIX" changed the requirement
> > about this, but I don't know the specifics of what he was referring to.
> 
> Joseph, what exactly should I reference here?

POSIX.1, 2001 edition specifies that the types are present.  Previous 
editions of POSIX reserve the *_t suffix and so permit the types to be 
defined, and in glibc we choose to make headers self-contained in that way 
(defining all the types that the header is specified to use) when 
permitted.

http://pubs.opengroup.org/onlinepubs/007904975/basedefs/fcntl.h.html

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list