From: Alejandro Colomar <alx@kernel.org>
To: Dorjoy Chowdhury <dorjoychy111@gmail.com>
Cc: linux-man@vger.kernel.org, brauner@kernel.org, jlayton@kernel.org
Subject: Re: [PATCH v2 2/2] man/man2/openat2.2: Document OPENAT2_REGULAR flag
Date: Sun, 26 Apr 2026 15:03:10 +0200 [thread overview]
Message-ID: <ae4MinC7edJZRGFF@devuan> (raw)
In-Reply-To: <20260426111707.36541-3-dorjoychy111@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]
Hi Dorjoy,
On 2026-04-26T17:14:26+0600, Dorjoy Chowdhury wrote:
> Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Thanks! Please ping when it's in Linus's tree, so that I'll merge.
Cheers,
Alex
> ---
> man/man2/openat2.2 | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/man/man2/openat2.2 b/man/man2/openat2.2
> index f0770f3a0..ea3d9ac7b 100644
> --- a/man/man2/openat2.2
> +++ b/man/man2/openat2.2
> @@ -133,6 +133,20 @@ argument,
> .BR openat2 ()
> returns an error if unknown or conflicting flags are specified in
> .IR how.flags .
> +.IP
> +.BR openat2 ()
> +also supports the below additional flags:
> +.RS
> +.TP
> +.BR OPENAT2_REGULAR " (since Linux 7.2)"
> +Only open the file specified by
> +.I path
> +if it is a regular file.
> +If it is not a regular file,
> +.BR openat2 ()
> +fails with the error
> +.BR EFTYPE .
> +.RE
> .TP
> .I mode
> This field specifies the
> @@ -471,6 +485,12 @@ and an escape from the root during path resolution was detected.
> contains
> .BR RESOLVE_NO_XDEV ,
> and a path component crosses a mount point.
> +.TP
> +.B EFTYPE
> +.I how.flags
> +contains
> +.B OPENAT2_REGULAR
> +flag and the path is not a regular file.
> .SH STANDARDS
> Linux.
> .SH HISTORY
> --
> 2.53.0
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-04-26 13:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-26 11:14 [PATCH v2 0/2] Document EFTYPE error code and OPENAT2_REGULAR flag Dorjoy Chowdhury
2026-04-26 11:14 ` [PATCH v2 1/2] man/man3/errno.3: Document EFTYPE error code Dorjoy Chowdhury
2026-04-26 12:59 ` Alejandro Colomar
2026-04-27 10:34 ` Florian Weimer
2026-04-27 13:13 ` Alejandro Colomar
2026-04-27 13:29 ` Florian Weimer
2026-04-27 13:33 ` Alejandro Colomar
2026-04-26 11:14 ` [PATCH v2 2/2] man/man2/openat2.2: Document OPENAT2_REGULAR flag Dorjoy Chowdhury
2026-04-26 13:03 ` Alejandro Colomar [this message]
2026-04-26 17:39 ` Dorjoy Chowdhury
2026-04-26 19:15 ` Alejandro Colomar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ae4MinC7edJZRGFF@devuan \
--to=alx@kernel.org \
--cc=brauner@kernel.org \
--cc=dorjoychy111@gmail.com \
--cc=jlayton@kernel.org \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox