1 .\" Copyright (c) 2002, 2011 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .TH RT_SIGQUEUEINFO 2 2012-07-13 "Linux" "Linux Programmer's Manual"
25 rt_sigqueueinfo, rt_tgsigqueueinfo \- queue a signal and data
28 .BI "int rt_sigqueueinfo(pid_t " tgid ", int " sig ", siginfo_t *" uinfo );
30 .BI "int rt_tgsigqueueinfo(pid_t " tgid ", pid_t " tid ", int " sig ,
31 .BI " siginfo_t *" uinfo );
35 There are no glibc wrappers for these system calls; see NOTES.
38 .BR rt_sigqueueinfo ()
40 .BR rt_tgsigqueueinfo ()
41 system calls are the low-level interfaces used to send a signal plus data
42 to a process or thread.
43 The receiver of the signal can obtain the accompanying data
44 by establishing a signal handler with the
49 These system calls are not intended for direct application use;
50 they are provided to allow the implementation of
53 .BR pthread_sigqueue (3).
56 .BR rt_sigqueueinfo ()
57 system call sends the signal
59 to the thread group with the ID
61 (The term "thread group" is synonymous with "process", and
63 corresponds to the traditional UNIX process ID.)
64 The signal will be delivered to an arbitrary member of the thread group
65 (i.e., one of the threads that is not currently blocking the signal).
69 argument specifies the data to accompany the signal.
70 This argument is a pointer to a structure of type
74 (and defined by including
76 The caller should set the following fields in this structure:
79 This must be one of the
81 codes in the kernel source file
82 .IR include/asm-generic/siginfo.h ,
83 with the restriction that the code must be negative
86 which is used by the kernel to indicate a signal sent by
88 and cannot (since Linux 2.6.39) be
90 (which is used by the kernel to indicate a signal sent using
95 This should be set to a process ID,
96 typically the process ID of the sender.
99 This should be set to a user ID,
100 typically the real user ID of the sender.
103 This field contains the user data to accompany the signal.
104 For more information, see the description of the last
105 .RI ( "union sigval" )
109 Internally, the kernel sets the
111 field to the value specified in
113 so that the receiver of the signal can also obtain
114 the signal number via that field.
117 .BR rt_tgsigqueueinfo ()
119 .BR rt_sigqueueinfo (),
120 but sends the signal and data to the single thread
121 specified by the combination of
126 a thread in that thread group.
128 On success, these system calls return 0.
129 On error, they return \-1 and
131 is set to indicate the error.
135 The limit of signals which may be queued has been reached.
138 for further information.)
148 The caller does not have permission to send the signal to the target.
149 For the required permissions, see
156 .BR rt_sigqueueinfo ():
157 No thread group matching
161 .BR rt_tgsigqueinfo ():
169 .BR rt_sigqueueinfo ()
170 system call was added to Linux in version 2.2.
172 .BR rt_tgsigqueueinfo ()
173 system call was added to Linux in version 2.6.31.
175 These system calls are Linux-specific.
177 Since these system calls are not intended for application use,
178 there are no glibc wrapper functions; use
180 in the unlikely case that you want to call them directly.
184 the null signal (0) can be used to check if the specified process
191 .BR pthread_sigqueue (3),