Re: [PATCH] timerfd_create.2: tfix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Matthew,

On Sat, 1 Dec 2018 at 01:00, Matthew Leeds <matthew.leeds@xxxxxxxxxxxx> wrote:
>
> Signed-off-by: Matthew Leeds <matthew.leeds@xxxxxxxxxxxx>
> ---
>  man2/timerfd_create.2 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man2/timerfd_create.2 b/man2/timerfd_create.2
> index ac8940209..b986d2d14 100644
> --- a/man2/timerfd_create.2
> +++ b/man2/timerfd_create.2
> @@ -113,21 +113,21 @@ The current value of each of these clocks can be
> retrieved using
>  .BR clock_gettime (2).
>  .PP
>  Starting with Linux 2.6.27, the following values may be bitwise ORed in
>  .IR flags
>  to change the behavior of
>  .BR timerfd_create ():
>  .TP 14
>  .B TFD_NONBLOCK
>  Set the
>  .BR O_NONBLOCK
> -file status flag on the new open file description.
> +file status flag on the new open file descriptor.
>  Using this flag saves extra calls to
>  .BR fcntl (2)
>  to achieve the same result.
>  .TP
>  .B TFD_CLOEXEC
>  Set the close-on-exec
>  .RB ( FD_CLOEXEC )
>  flag on the new file descriptor.
>  See the description of the
>  .B O_CLOEXEC
> --
> 2.11.0

This patch isn't correct, but I applied the patch below which may
clarify things a little for you and other readers.

Thanks,

Michael

diff --git a/man2/timerfd_create.2 b/man2/timerfd_create.2
index ac8940209..b4e3672fb 100644
--- a/man2/timerfd_create.2
+++ b/man2/timerfd_create.2
@@ -120,7 +120,9 @@ to change the behavior of
 .B TFD_NONBLOCK
 Set the
 .BR O_NONBLOCK
-file status flag on the new open file description.
+file status flag on the open file description (see
+.BR open (2))
+referred to by the new file descriptor.
 Using this flag saves extra calls to
 .BR fcntl (2)
 to achieve the same result.





-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux