]> git.ipfire.org Git - thirdparty/linux.git/commit
openat2: introduce EFTYPE error code
authorDorjoy Chowdhury <dorjoychy111@gmail.com>
Sat, 28 Mar 2026 17:22:22 +0000 (23:22 +0600)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 May 2026 08:53:41 +0000 (10:53 +0200)
commitcf1b04aaef8b83f668fac10bfc4d4d76ba6e6fa1
tree64136b1523579106e30a2b19deeffaa1054be1e4
parent09e8b7a428b3f52b7625870edb4cd42e621fac07
openat2: introduce EFTYPE error code

Introduce a new error code EFTYPE for wrong file type operations.
EFTYPE is already used in BSD systems like FreeBSD and macOS.

This will be used by the upcoming OPENAT2_REGULAR flag support to
return a specific error when a path doesn't refer to a regular file.

Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
Link: https://patch.msgid.link/20260328172314.45807-2-dorjoychy111@gmail.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Aleksa Sarai <aleksa@amutable.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
arch/alpha/include/uapi/asm/errno.h
arch/mips/include/uapi/asm/errno.h
arch/parisc/include/uapi/asm/errno.h
arch/sparc/include/uapi/asm/errno.h
include/uapi/asm-generic/errno.h
tools/arch/alpha/include/uapi/asm/errno.h
tools/arch/mips/include/uapi/asm/errno.h
tools/arch/parisc/include/uapi/asm/errno.h
tools/arch/sparc/include/uapi/asm/errno.h
tools/include/uapi/asm-generic/errno.h