All of lore.kernel.org
 help / color / mirror / Atom feed
* rp should be ep in PTHREAD_COND_DESTROY(3P)
@ 2015-12-12  9:04 张海
       [not found] ` <CAFwAk1pF_cfbbD_+ao6K1sqZjcVF1Ck+TB=GQmNE6tRcLozCNQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: 张海 @ 2015-12-12  9:04 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

In the EXAMPLES section of PTHREAD_COND_DESTROY(3P), there are the
following piece of code:

(A) pthread_cond_broadcast(&ep->notbusy);
    pthread_mutex_unlock(&lp->lm);
(B) pthread_cond_destroy(&rp->notbusy);

However according to the context, the rp in (B) should be ep, as in
(A), and there are no other occurrence of rp within the page. Key e
and r are close to each other anyway.

I'm referring to a man-pages 4.02-4 on Arch Linux.

(I'm sending this again because vger.kernel.org rejected my previous
email sent from Google Inbox for having HTML content which cannot be
turned off within it.)
--
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

* Re: rp should be ep in PTHREAD_COND_DESTROY(3P)
       [not found] ` <CAFwAk1pF_cfbbD_+ao6K1sqZjcVF1Ck+TB=GQmNE6tRcLozCNQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-12-26  7:46   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-12-26  7:46 UTC (permalink / raw)
  To: 张海
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA

On 12/12/2015 10:04 AM, 张海 wrote:
> In the EXAMPLES section of PTHREAD_COND_DESTROY(3P), there are the
> following piece of code:
> 
> (A) pthread_cond_broadcast(&ep->notbusy);
>     pthread_mutex_unlock(&lp->lm);
> (B) pthread_cond_destroy(&rp->notbusy);
> 
> However according to the context, the rp in (B) should be ep, as in
> (A), and there are no other occurrence of rp within the page. Key e
> and r are close to each other anyway.
> 
> I'm referring to a man-pages 4.02-4 on Arch Linux.
> 
> (I'm sending this again because vger.kernel.org rejected my previous
> email sent from Google Inbox for having HTML content which cannot be
> turned off within it.)

Thanks. This is a bug in the text of the standard, which apparently
has already been fixed:

http://austingroupbugs.net/view.php?id=910

I probably won't fix this page, but one day in the future we'll 
upgrade the 3p pages to latest version from The Open Group.

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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:[~2015-12-26  7:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-12  9:04 rp should be ep in PTHREAD_COND_DESTROY(3P) 张海
     [not found] ` <CAFwAk1pF_cfbbD_+ao6K1sqZjcVF1Ck+TB=GQmNE6tRcLozCNQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-26  7:46   ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.