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.
Showing the changes to include/uapi (1 of 10 files). Show all
Unified · Split
| @@ -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 | #endif | 127 | #endif |