Skip to content

Commit a71e2b9

Browse files
[libc][errno] Remove non asm generic error number (llvm#92172)
The following small thing caught my eye: 1) `EILSEQ` is not part of the generic asm error number macros. See the [full list of generic asm errno codes](https://github.com/torvalds/linux/blob/4b95dc87362aa57bdd0dcbad109ca5e5ef3cbb6c/include/uapi/asm-generic/errno-base.h). AFAIK the generic asm errno numbers are common between different operating systems and architectures. `EILSEQ` is not part of this common set of errno's. 2) `EILSEQ`'s value is wrong. During the addition of `EILSEQ` in https://reviews.llvm.org/D151129, the value `35` was probably chosen as its the consecutive number. This is not correct. The actual values can be looked up for example here: * [For Linux kernel](https://github.com/search?q=repo%3Atorvalds%2Flinux+EILSEQ&type=code&p=1): `EILSEQ = 84` (uapi; i.e. x86_64), `EILSEQ = 88` (mips), `EILSEQ = 47` (parisc) * [For Darwin kernel](https://github.com/apple-oss-distributions/xnu/blob/main/bsd/sys/errno.h#L237): `EILSEQ = 92`
1 parent 1a58e88 commit a71e2b9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libc/include/llvm-libc-macros/generic-error-number-macros.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#define EPIPE 32
4444
#define EDOM 33
4545
#define ERANGE 34
46-
#define EILSEQ 35
4746
#define ENAMETOOLONG 36
4847
#define EOVERFLOW 75
4948

0 commit comments

Comments
 (0)