diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2011-09-18 05:56:03 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2011-09-19 17:32:49 +0200 |
| commit | 5b36ada0798803f8cbbf50674705ea69f45db9a5 (patch) | |
| tree | 1542b22a78b1fd72b54eb798dbe8e82e2a4a9f6a | |
| parent | 27b93dae243e31636a209783e53482757a4405df (diff) | |
| download | man-pages-5b36ada0798803f8cbbf50674705ea69f45db9a5.tar.gz | |
sigqueue.3: Update text in line with existence of new rt_sigqueueinfo.2 page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man3/sigqueue.3 | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/man3/sigqueue.3 b/man3/sigqueue.3 index 6cfa64673e..fdbe76e8db 100644 --- a/man3/sigqueue.3 +++ b/man3/sigqueue.3 @@ -23,7 +23,7 @@ .\" added note on self-signaling, aeb, 2002-06-07 .\" added note on CAP_KILL, mtk, 2004-06-16 .\" -.TH SIGQUEUE 2 2007-07-26 "Linux" "Linux Programmer's Manual" +.TH SIGQUEUE 3 2011-09-18 "Linux" "Linux Programmer's Manual" .SH NAME sigqueue, rt_sigqueueinfo \- queue a signal and data to a process .SH SYNOPSIS @@ -120,9 +120,10 @@ having it unblocked, or by waiting for it using then at least some signal must be delivered to this thread before this function returns. -On Linux, the underlying system call is actually named -.BR rt_sigqueueinfo (), -and differs in its third argument, which is the +On Linux, this function is implemented using the +.BR rt_sigqueueinfo (2) +system call. +The system call differs in its third argument, which is the .I siginfo_t structure that will be supplied to the receiving process's signal handler or returned by the receiving process's @@ -131,16 +132,16 @@ call. Inside the glibc .BR sigqueue () wrapper, this argument, -.IR info , +.IR uinfo , is initialized as follows: .in +4n .nf -info.si_signo = sig; /* argument supplied to sigqueue() */ -info.si_code = SI_QUEUE; -info.si_pid = getpid(); /* Process ID of sender */ -info.si_uid = getuid(); /* Real UID of sender */ -info.si_value = val; /* argument supplied to sigqueue() */ +uinfo.si_signo = sig; /* argument supplied to sigqueue() */ +uinfo.si_code = SI_QUEUE; +uinfo.si_pid = getpid(); /* Process ID of sender */ +uinfo.si_uid = getuid(); /* Real UID of sender */ +uinfo.si_value = val; /* argument supplied to sigqueue() */ .fi .in .SH "SEE ALSO" |
