Re: [PATCH 1/1] fcntl: F_GETFL: return value contains additional internal flags

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

 



Hi Heinrich,

On Thu, Apr 24, 2014 at 10:05 PM, Heinrich Schuchardt
<xypron.glpk@xxxxxx> wrote:
> flags = fcntl(fd, F_GETFL);
>
> can return more flags than those defined in the open(2) manpage, e.g.
>   #define FMODE_NONOTIFY 0x1000000
>
> The manpage should point this out.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>

I think it might be good to mention a concrete example here. So, how
about explicitly mentioning the FMODE_NONOTIFY and the fanotify(7) man
page. Could you redraft?

Thanks,

Michael


> ---
>  man2/fcntl.2 | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/man2/fcntl.2 b/man2/fcntl.2
> index fc1d3b3..0fd2d0a 100644
> --- a/man2/fcntl.2
> +++ b/man2/fcntl.2
> @@ -180,6 +180,9 @@ The file status flags and their semantics are described in
>  Get the file access mode and the file status flags;
>  .I arg
>  is ignored.
> +The return value contains the file status flags as described in
> +.IR open (2).
> +It may additionally contain status flags that are only used internally.
>  .TP
>  .BR F_SETFL " (\fIint\fP)"
>  Set the file status flags to the value specified by
> --
> 1.9.2
>



-- 
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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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