linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* proc(5) fdinfo should mention O_CLOEXEC may be set in file flags
@ 2016-03-07 19:51 Patrick Donnelly
       [not found] ` <CACh33FqAXhMsJoFszxNkLG+MWoP6eXKjfaDb1XoDGGcXhdgZFA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Donnelly @ 2016-03-07 19:51 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The man page says this

"The flags field is an octal number that displays the file access mode
and file  status  flags  (see  open(2))."

flags may also include the file descriptor flags (F_GETFD). (Although
there is only the O_CLOEXEC flag and that is explicitly included [1])

[1] https://github.com/torvalds/linux/blob/master/fs/proc/fd.c#L41-L43

-- 
Patrick Donnelly
--
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: proc(5) fdinfo should mention O_CLOEXEC may be set in file flags
       [not found] ` <CACh33FqAXhMsJoFszxNkLG+MWoP6eXKjfaDb1XoDGGcXhdgZFA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-03-08 19:33   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-03-08 19:33 UTC (permalink / raw)
  To: Patrick Donnelly
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Patrick

On 03/07/2016 08:51 PM, Patrick Donnelly wrote:
> The man page says this
> 
> "The flags field is an octal number that displays the file access mode
> and file  status  flags  (see  open(2))."
> 
> flags may also include the file descriptor flags (F_GETFD). (Although
> there is only the O_CLOEXEC flag and that is explicitly included [1])
> 
> [1] https://github.com/torvalds/linux/blob/master/fs/proc/fd.c#L41-L43

Thanks. I added this detail.

Cheers,

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:[~2016-03-08 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-07 19:51 proc(5) fdinfo should mention O_CLOEXEC may be set in file flags Patrick Donnelly
     [not found] ` <CACh33FqAXhMsJoFszxNkLG+MWoP6eXKjfaDb1XoDGGcXhdgZFA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-08 19:33   ` 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).