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
127 127
128#define EHWPOISON 139 /* Memory page has hardware error */128#define EHWPOISON 139 /* Memory page has hardware error */
129 129
130#define EFTYPE 140 /* Wrong file type for the intended operation */
131
130#endif132#endif
arch/mips/include/uapi/asm/errno.h+2−0
@@ -126,6 +126,8 @@ · 125 unmodified lines
126 126
127#define EHWPOISON 168 /* Memory page has hardware error */127#define EHWPOISON 168 /* Memory page has hardware error */
128 128
129#define EFTYPE 169 /* Wrong file type for the intended operation */
130
129#define EDQUOT 1133 /* Quota exceeded */131#define EDQUOT 1133 /* Quota exceeded */
130 132
131 133
arch/parisc/include/uapi/asm/errno.h+2−0
@@ -124,4 +124,6 @@ · 123 unmodified lines
124 124
125#define EHWPOISON 257 /* Memory page has hardware error */125#define EHWPOISON 257 /* Memory page has hardware error */
126 126
127#define EFTYPE 258 /* Wrong file type for the intended operation */
128
127#endif129#endif
arch/sparc/include/uapi/asm/errno.h+2−0
@@ -117,4 +117,6 @@ · 116 unmodified lines
117 117
118#define EHWPOISON 135 /* Memory page has hardware error */118#define EHWPOISON 135 /* Memory page has hardware error */
119 119
120#define EFTYPE 136 /* Wrong file type for the intended operation */
121
120#endif122#endif
include/uapi/asm-generic/errno.h+2−0
@@ -122,4 +122,6 @@ · 121 unmodified lines
122 122
123#define EHWPOISON 133 /* Memory page has hardware error */123#define EHWPOISON 133 /* Memory page has hardware error */
124 124
125#define EFTYPE 134 /* Wrong file type for the intended operation */
126
125#endif127#endif
tools/arch/alpha/include/uapi/asm/errno.h+2−0
@@ -127,4 +127,6 @@ · 126 unmodified lines
127 127
128#define EHWPOISON 139 /* Memory page has hardware error */128#define EHWPOISON 139 /* Memory page has hardware error */
129 129
130#define EFTYPE 140 /* Wrong file type for the intended operation */
131
130#endif132#endif
tools/arch/mips/include/uapi/asm/errno.h+2−0
@@ -126,6 +126,8 @@ · 125 unmodified lines
126 126
127#define EHWPOISON 168 /* Memory page has hardware error */127#define EHWPOISON 168 /* Memory page has hardware error */
128 128
129#define EFTYPE 169 /* Wrong file type for the intended operation */
130
129#define EDQUOT 1133 /* Quota exceeded */131#define EDQUOT 1133 /* Quota exceeded */
130 132
131 133
tools/arch/parisc/include/uapi/asm/errno.h+2−0
@@ -124,4 +124,6 @@ · 123 unmodified lines
124 124
125#define EHWPOISON 257 /* Memory page has hardware error */125#define EHWPOISON 257 /* Memory page has hardware error */
126 126
127#define EFTYPE 258 /* Wrong file type for the intended operation */
128
127#endif129#endif
tools/arch/sparc/include/uapi/asm/errno.h+2−0
@@ -117,4 +117,6 @@ · 116 unmodified lines
117 117
118#define EHWPOISON 135 /* Memory page has hardware error */118#define EHWPOISON 135 /* Memory page has hardware error */
119 119
120#define EFTYPE 136 /* Wrong file type for the intended operation */
121
120#endif122#endif
tools/include/uapi/asm-generic/errno.h+2−0
@@ -122,4 +122,6 @@ · 121 unmodified lines
122 122
123#define EHWPOISON 133 /* Memory page has hardware error */123#define EHWPOISON 133 /* Memory page has hardware error */
124 124
125#define EFTYPE 134 /* Wrong file type for the intended operation */
126
125#endif127#endif