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: conformtest: clean up POSIX expectations for sys/mman.h, sys/stat.h, sys/types.h


On Wed, Jun 11, 2014 at 11:28:05PM +0530, Siddhesh Poyarekar wrote:
> On Thu, May 15, 2014 at 09:43:05PM +0000, Joseph S. Myers wrote:
> > diff --git a/conform/data/sys/mman.h-data b/conform/data/sys/mman.h-data
> > index 0555fd1..3a88684 100644
> > --- a/conform/data/sys/mman.h-data
> > +++ b/conform/data/sys/mman.h-data
> > @@ -39,8 +39,10 @@ optional-function int posix_typed_mem_get_info (int, struct posix_typed_mem_info
> >  optional-function int posix_typed_mem_open (const char*, int, int)
> >  # endif
> >  
> > +# ifndef POSIX
> >  type size_t
> >  type off_t
> > +# endif
> 
> The earliest POSIX I could access (2001) as this text:
> 
>     The size_t and off_t types are defined as described in
>     <sys/types.h>.
> 
> Since I didn't have a copy of the POSIX 1995/6, Carlos suggested I
> look at the next best available thing, which was the Susv1 and that
> too had the same text.  Wouldn't that make this change incorrect?
> 
> >  type suseconds_t
> >  # endif
> > +# ifndef POSIX
> >  type time_t
> 
> The Susv1 has time_t in sys/types.h.

I went through your second similar patch proposal for wait.h and the
number of inconsistencies leads me to believe that I am getting
something wrong, especially since I'm not even looking at the exact
document you cited for verification.  I'll defer review to someone who
actually has access to the document or has other means to verify the
change.

Siddhesh

Attachment: pgpCO9XExVtal.pgp
Description: PGP signature


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