.\" Copyright (C) 2008 Michael Kerrisk <mtk.manpages@gmail.com>
.\" starting from a version by Davide Libenzi <davidel@xmailserver.org>
.\"
+.\" %%%LICENSE_START(GPLv2+_SW_3_PARA)
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
-.\" You should have received a copy of the GNU General Public License
-.\" along with this program; if not, write to the Free Software
-.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-.\" MA 02111-1307 USA
+.\" You should have received a copy of the GNU General Public
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
.\"
.TH SIGNALFD 2 2009-01-13 Linux "Linux Programmer's Manual"
.SH NAME
uint32_t ssi_trapno; /* Trap number that caused signal */
.\" ssi_trapno is unused on most arches
int32_t ssi_status; /* Exit status or signal (SIGCHLD) */
- int32_t ssi_int; /* Integer sent by sigqueue(2) */
- uint64_t ssi_ptr; /* Pointer sent by sigqueue(2) */
+ int32_t ssi_int; /* Integer sent by sigqueue(3) */
+ uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */
uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */
uint64_t ssi_stime; /* System CPU time consumed (SIGCHLD) */
uint64_t ssi_addr; /* Address that generated signal
(for hardware-generated signals) */
+.\" FIXME Since Linux 2.6.37 there is 'uint16_t ssi_addr_lsb'
+.\" which is not yet documented
uint8_t pad[\fIX\fP]; /* Pad size to 128 bytes (allow for
additional fields in the future) */
};
(i.e., the entire thread group).
(A thread will not be able to read signals that are directed
to other threads in the process.)
-.SH "RETURN VALUE"
+.SH RETURN VALUE
On success,
.BR signalfd ()
returns a signalfd file descriptor;
and
.I ssi_int
fields are not filled in with the data accompanying a signal sent by
-.BR sigqueue (2).
+.BR sigqueue (3).
.\" The fix also was put into 2.6.24.5
.SH EXAMPLE
The program below accepts the signals
}
}
.fi
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR eventfd (2),
.BR poll (2),
.BR read (2),
.BR sigwait (3),
.BR epoll (7),
.BR signal (7)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.