This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: siginfo_t/_sigpoll/si_band wrong in glibc headers?
[Ulrich Drepper]
> The bug is in the kernel. POSIX requires the type to be long.
I assume you are talking about the content from for example
<URL:http://www.opengroup.org/onlinepubs/007904975/basedefs/signal.h.html>,
specifying this:
The <signal.h> header shall define the siginfo_t type as a structure
that includes at least the following members:
[CX] int si_signo Signal number.
[XSI] int si_errno If non-zero, an errno value associated with
this signal, as defined in <errno.h>.
[CX] int si_code Signal code.
[XSI] pid_t si_pid Sending process ID.
uid_t si_uid Real user ID of sending process.
void *si_addr Address of faulting instruction.
int si_status Exit value or signal.
long si_band Band event for SIGPOLL.
[RTS] union sigval si_value Signal value.
There is no question of the type of si_band after this. :)