History

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.

Dorjoy Chowdhury committed 7 months ago

Commit cf1b04a1 parent 09e8b7a10 files · +20 −0Browse files

Showing the changes to include/uapi (1 of 10 files). Show all

Unified · Split

include/uapi/asm-generic/errno.h+2−0
@@ -122,4 +122,6 @@ · 121 unmodified lines
122122
123123 #define EHWPOISON 133 /* Memory page has hardware error */
124124
125+#define EFTYPE 134 /* Wrong file type for the intended operation */
126+
125127 #endif