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

Unified · Split

10 files
  1. arch/alpha/include/uapi/asm/errno.h +2 −0
  2. arch/mips/include/uapi/asm/errno.h +2 −0
  3. arch/parisc/include/uapi/asm/errno.h +2 −0
  4. arch/sparc/include/uapi/asm/errno.h +2 −0
  5. include/uapi/asm-generic/errno.h +2 −0
  6. tools/arch/alpha/include/uapi/asm/errno.h +2 −0
  7. tools/arch/mips/include/uapi/asm/errno.h +2 −0
  8. tools/arch/parisc/include/uapi/asm/errno.h +2 −0
  9. tools/arch/sparc/include/uapi/asm/errno.h +2 −0
  10. tools/include/uapi/asm-generic/errno.h +2 −0
arch/alpha/include/uapi/asm/errno.h+2−0
@@ -127,4 +127,6 @@ · 126 unmodified lines
127127
128128 #define EHWPOISON 139 /* Memory page has hardware error */
129129
130+#define EFTYPE 140 /* Wrong file type for the intended operation */
131+
130132 #endif
arch/mips/include/uapi/asm/errno.h+2−0
@@ -126,6 +126,8 @@ · 125 unmodified lines
126126
127127 #define EHWPOISON 168 /* Memory page has hardware error */
128128
129+#define EFTYPE 169 /* Wrong file type for the intended operation */
130+
129131 #define EDQUOT 1133 /* Quota exceeded */
130132
131133
arch/parisc/include/uapi/asm/errno.h+2−0
@@ -124,4 +124,6 @@ · 123 unmodified lines
124124
125125 #define EHWPOISON 257 /* Memory page has hardware error */
126126
127+#define EFTYPE 258 /* Wrong file type for the intended operation */
128+
127129 #endif
arch/sparc/include/uapi/asm/errno.h+2−0
@@ -117,4 +117,6 @@ · 116 unmodified lines
117117
118118 #define EHWPOISON 135 /* Memory page has hardware error */
119119
120+#define EFTYPE 136 /* Wrong file type for the intended operation */
121+
120122 #endif
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
tools/arch/alpha/include/uapi/asm/errno.h+2−0
@@ -127,4 +127,6 @@ · 126 unmodified lines
127127
128128 #define EHWPOISON 139 /* Memory page has hardware error */
129129
130+#define EFTYPE 140 /* Wrong file type for the intended operation */
131+
130132 #endif
tools/arch/mips/include/uapi/asm/errno.h+2−0
@@ -126,6 +126,8 @@ · 125 unmodified lines
126126
127127 #define EHWPOISON 168 /* Memory page has hardware error */
128128
129+#define EFTYPE 169 /* Wrong file type for the intended operation */
130+
129131 #define EDQUOT 1133 /* Quota exceeded */
130132
131133
tools/arch/parisc/include/uapi/asm/errno.h+2−0
@@ -124,4 +124,6 @@ · 123 unmodified lines
124124
125125 #define EHWPOISON 257 /* Memory page has hardware error */
126126
127+#define EFTYPE 258 /* Wrong file type for the intended operation */
128+
127129 #endif
tools/arch/sparc/include/uapi/asm/errno.h+2−0
@@ -117,4 +117,6 @@ · 116 unmodified lines
117117
118118 #define EHWPOISON 135 /* Memory page has hardware error */
119119
120+#define EFTYPE 136 /* Wrong file type for the intended operation */
121+
120122 #endif
tools/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