summaryrefslogtreecommitdiff
path: root/arch/parisc/include/uapi/asm
diff options
context:
space:
mode:
authorDorjoy Chowdhury <dorjoychy111@gmail.com>2026-03-28 23:22:22 +0600
committerChristian Brauner <brauner@kernel.org>2026-05-21 10:53:41 +0200
commitcf1b04aaef8b83f668fac10bfc4d4d76ba6e6fa1 (patch)
tree64136b1523579106e30a2b19deeffaa1054be1e4 /arch/parisc/include/uapi/asm
parent09e8b7a428b3f52b7625870edb4cd42e621fac07 (diff)
downloadlwn-cf1b04aaef8b83f668fac10bfc4d4d76ba6e6fa1.tar.gz
lwn-cf1b04aaef8b83f668fac10bfc4d4d76ba6e6fa1.zip
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>
Diffstat (limited to 'arch/parisc/include/uapi/asm')
-rw-r--r--arch/parisc/include/uapi/asm/errno.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/include/uapi/asm/errno.h b/arch/parisc/include/uapi/asm/errno.h
index 8cbc07c1903e..93194fbb0a80 100644
--- a/arch/parisc/include/uapi/asm/errno.h
+++ b/arch/parisc/include/uapi/asm/errno.h
@@ -124,4 +124,6 @@
#define EHWPOISON 257 /* Memory page has hardware error */
+#define EFTYPE 258 /* Wrong file type for the intended operation */
+
#endif