si_band
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
David,
are you happy with this diff? I not only reverted the __ARCH_SI_BAND_T
removal, I also added a comment on why it exists in the first place, and why the default changed to "long".
Architecture maintainers - what other 64-bit architectures will want to add the __ARCH_SI_BAND_T define to "int"? ppc64 and x86-64 both want the default "long", and I haven't checked the others.
Linus
----
===== include/asm-generic/siginfo.h 1.12 vs edited =====
include/asm-generic/siginfo.h +10 -1
@@ -26,6 +26,15 @@#define __ARCH_SI_UID_T uid_t#endif +/* +* The default "si_band" type is "long", as specified by POSIX. +* However, some architectures want to override this to "int" +* for historical compatibility reasons, so we allow that. +*/ +#ifndef __ARCH_SI_BAND_T +#define __ARCH_SI_BAND_T long +#endif + #ifndef HAVE_ARCH_SIGINFO_T typedef struct siginfo {
@@ -77,7 +86,7 @@/* SIGPOLL */ struct { -long _band;/* POLL_IN, POLL_OUT, POLL_MSG */ +__ARCH_SI_BAND_T _band;/* POLL_IN, POLL_OUT, POLL_MSG */ int _fd; } _sigpoll; } _sifields;
===== include/asm-sparc64/siginfo.h 1.12 vs edited =====
include/asm-sparc64/siginfo.h +1 -0
@@ -8,6 +8,7 @@#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))#define __ARCH_SI_TRAPNO +#define __ARCH_SI_BAND_T int#include <asm-generic/siginfo.h>
Quoted 3 lines · On Fri, 2 Apr 2004 20:21:08 -0800 (PST) Linus Torvalds <[email protected]>…
are you happy with this diff? I not only reverted the
__ARCH_SI_BAND_T
removal, I also added a comment on why it exists in the first place, and why the default changed to "long".
I'm totally fine with this.