* Re: BUG report for Linux man-pages, about PRCTL(2)
[not found] ` <CADUNBOnX0kDN4+CDBw3o2ebpDNW1saafMN1U-n0CHjcFN=6Pow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-02-22 8:49 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; only message in thread
From: Michael Kerrisk (man-pages) @ 2014-02-22 8:49 UTC (permalink / raw)
To: Xiawei Chen
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
On 02/19/2014 08:29 AM, Xiawei Chen wrote:
> http://man7.org/linux/man-pages/man2/prctl.2.html
>
> release *3.60* of the Linux man-pages project
>
> I am confused by the description of section RETURN VALUE
>
> "On success, *PR_GET_DUMPABLE, PR_GET_KEEPCAPS, PR_GET_NO_NEW_PRIVS,
> PR_CAPBSET_READ, PR_GET_TIMING, PR_GET_SECUREBITS, PR_MCE_KILL_GET*,
> and (if it returns) *PR_GET_SECCOMP *return the nonnegative values
> described above. All other option values return 0 on success."
>
> when i use "prctl(PR_GET_TIMERSLACK, 0, 0, 0, 0)" in my code, then it return 50000.
> i guess the value 50000 is the correct result,
> whether or not, the description section RETURN VALUE is lack of this option (*PR_GET_TIMERSLACK*)?
>
> I am looking forward to your response. .
Thanks. Yes, you're right of course. I applied the patch below.
Cheers,
Michael
diff --git a/man2/prctl.2 b/man2/prctl.2
index 0ccfe0b..0271a73 100644
--- a/man2/prctl.2
+++ b/man2/prctl.2
@@ -510,7 +510,8 @@ The timer slack values are preserved across
.BR execve (2).
.TP
.BR PR_GET_TIMERSLACK " (since Linux 2.6.28)"
-Return the current timer slack value of the calling thread.
+Return (as the function result)
+the current timer slack value of the calling thread.
.TP
.BR PR_SET_TIMING " (since Linux 2.6.0-test4)"
Set whether to use (normal, traditional) statistical process timing or
@@ -782,6 +783,7 @@ On success,
.BR PR_GET_NO_NEW_PRIVS ,
.BR PR_CAPBSET_READ ,
.BR PR_GET_TIMING ,
+.BR PR_GET_TIMERSLACK ,
.BR PR_GET_SECUREBITS ,
.BR PR_MCE_KILL_GET ,
and (if it returns)
--
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 related [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-22 8:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CADUNBOnX0kDN4+CDBw3o2ebpDNW1saafMN1U-n0CHjcFN=6Pow@mail.gmail.com>
[not found] ` <CADUNBOnX0kDN4+CDBw3o2ebpDNW1saafMN1U-n0CHjcFN=6Pow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-22 8:49 ` BUG report for Linux man-pages, about PRCTL(2) 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).