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: Add x32 XFAILs for mq_attr element types (bug 21279) [committed]


On Wed, 22 Mar 2017, Zack Weinberg wrote:

> On Mon, Mar 20, 2017 at 5:31 PM, Joseph Myers <joseph@codesourcery.com> wrote:
> > POSIX specifies long as the type of elements of struct mq_attr.
> 
> I am extremely disappointed to learn that POSIX didn't just make this
> mistake with struct timespec.

I think it's a lot more plausibly a mistake for mq_attr than for timespec 
(and thus a lot more plausible that a future POSIX version might add 
typedefs here), since as far as I can tell valid values for these fields 
could exceed the width of long, but they clearly can't for tv_nsec.  
(Though it's arguably similarly a mistake that printf functions return 
int, with a consequent limit on the number of bytes output.)

-- 
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]