conformtest: Add x32 XFAILs for mq_attr element types (bug 21279) [committed]

Joseph Myers joseph@codesourcery.com
Wed Mar 22 21:07:00 GMT 2017


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



More information about the Libc-alpha mailing list