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.
Unified · Split
| @@ -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 | #endif | 132 | #endif |
| @@ -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 | ||
| @@ -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 | #endif | 129 | #endif |
| @@ -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 | #endif | 122 | #endif |
| @@ -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 |
| @@ -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 | #endif | 132 | #endif |
| @@ -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 | ||
| @@ -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 | #endif | 129 | #endif |
| @@ -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 | #endif | 122 | #endif |
| @@ -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 |