[Bug 284353] [patch] Remind about additional mode_t argument for open(2).

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Jan 2025 22:25:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284353

            Bug ID: 284353
           Summary: [patch] Remind about additional mode_t argument for
                    open(2).
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: artembunichev@zohomail.com
                CC: doc@FreeBSD.org

Created attachment 256995
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256995&action=edit
Patch for open(2) manual.

It's quite easy to forget about additional argument mode_t mode for open(2),
when the O_CREAT flag is specified. This argument itself is not in the
synopsis, so when referencing the manual page just to recall flag names, it's
not that easy to spot it.

I think that a small reminder about it in the description for O_CREAT flag will
be good.

A patch that adds it is attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.