From: Andi Kleen <andi-Vw/NltI1exuRpAAqCnN02g@public.gmane.org>
To: Andi Kleen <andi-Vw/NltI1exuRpAAqCnN02g@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH] Fix ppoll example
Date: Sun, 27 Dec 2009 01:44:22 +0100 [thread overview]
Message-ID: <20091227004422.GA8673@basil.fritz.box> (raw)
In-Reply-To: <20091227004007.GA8638-u0/ZJuX+froe6aEkudXLsA@public.gmane.org>
On Sun, Dec 27, 2009 at 01:40:07AM +0100, Andi Kleen wrote:
>
> The ppoll replacement example gets the timeout argument
> wrong. Fix that.
Sorry, the first version was still wrong. This one
should be correct.
-Andi
--- man-pages-3.23/man2/poll.2 2009-09-30 03:36:44.000000000 +0200
+++ man-pages-3.23-hacked/man2/poll.2 2009-12-27 01:43:31.000000000 +0100
@@ -27,6 +27,7 @@
.\" 2006-03-13, mtk, Added ppoll() + various other rewordings
.\" 2006-07-01, mtk, Added POLLRDHUP + various other wording and
.\" formatting changes.
+.\" 2009-12, ak, Fix ppoll example.
.\"
.TH POLL 2 2009-09-15 "Linux" "Linux Programmer's Manual"
.SH NAME
@@ -193,7 +194,7 @@
call:
.nf
- ready = ppoll(&fds, nfds, timeout, &sigmask);
+ ready = ppoll(&fds, nfds, ts, &sigmask);
.fi
is equivalent to
@@ -204,7 +205,7 @@
sigset_t origmask;
sigprocmask(SIG_SETMASK, &sigmask, &origmask);
- ready = poll(&fds, nfds, timeout);
+ ready = poll(&fds, nfds, ts ? ts.tv_sec : -1);
sigprocmask(SIG_SETMASK, &origmask, NULL);
.fi
.PP
--
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
next prev parent reply other threads:[~2009-12-27 0:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-27 0:40 [PATCH] Fix ppoll example Andi Kleen
[not found] ` <20091227004007.GA8638-u0/ZJuX+froe6aEkudXLsA@public.gmane.org>
2009-12-27 0:44 ` Andi Kleen [this message]
[not found] ` <20091227004422.GA8673-u0/ZJuX+froe6aEkudXLsA@public.gmane.org>
2010-06-12 15:19 ` Michael Kerrisk
[not found] ` <AANLkTimHnSfMtcsuG8lJ-MTLeMCA3f9XQkL26bEdth1F-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-01 21:49 ` Denis Barbier
[not found] ` <AANLkTimkwPS5_6yltbKsCFf-HeVVF5Ox1elT9R1rMcN--JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-02 5:10 ` Michael Kerrisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091227004422.GA8673@basil.fritz.box \
--to=andi-vw/nlti1exurpaaqcnn02g@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).