linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* typo in man pthread_sigqueue
@ 2013-09-12 21:40 Andrew Hunter
       [not found] ` <CANf_6TjALmwh=oLA99aTvNeabX6knei8dQvcDYt=LTW_ZtaQkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Hunter @ 2013-09-12 21:40 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The type of pthread_sigqueue is reported in the manpage (both online
and in any package I can find) as

       int pthread_sigqueue(pthread_t *thread, int sig,
                            const union sigval value);

I believe this is incorrect; thread is a pthread_t, not a pthread_t*.
This can be easily verified by looking at the source:
http://www.eglibc.org/cgi-bin/viewvc.cgi/trunk/libc/nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c?view=markup

(Or just by noting that throughout pthreads, pthread_ts are passed by
value.  The only other pthread_t * that comes to mind is the one
initialized by pthread_create.)

I'd send a patch myself but I'm not clear where the manpages sources
are and don't have time to go searching right now--my apologies.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-13  3:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-12 21:40 typo in man pthread_sigqueue Andrew Hunter
     [not found] ` <CANf_6TjALmwh=oLA99aTvNeabX6knei8dQvcDYt=LTW_ZtaQkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-13  3:49   ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).