[PATCH/committed] ia64: sifaction.h: change sa_flags to an int

Mike Frysinger vapier@gentoo.org
Thu Jul 23 03:22:00 GMT 2015


On 22 Jul 2015 17:28, Joseph Myers wrote:
> On Tue, 21 Jul 2015, Mike Frysinger wrote:
> > --- a/sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
> > +++ b/sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
> > @@ -40,7 +40,8 @@ struct sigaction
> >  #endif
> >  
> >      /* Special flags.  */
> > -    unsigned long int sa_flags;
> > +    int __glibc_reserved0;
> > +    int sa_flags;
> 
> ia64 is little-endian in glibc - doesn't this need to be the other way 
> around to be a compatible change?

ugh, you're correct of course.  i was smoke testing via glibc tests, but
guess that's not sufficient.  irony is that i just fixed an ABI bug here
in sparc ;).

> Have you verified that (a) the kernel always ignores the high bits and (b) 
> other structure members have sufficient alignment requirements that this 
> change does not reduce the alignment requirement of the structure?

sigaction includes a pointer, so alignment should be maintained (and i've
checked -- it's still 8 bytes)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150723/476cab80/attachment.sig>


More information about the Libc-alpha mailing list