[libc-commits] [libc] 0980f71 - [libc][errno] Remove previously added errno numbers (#92163)

via libc-commits libc-commits at lists.llvm.org
Tue May 14 22:26:27 PDT 2024


Author: Robin Caloudis
Date: 2024-05-15T01:26:23-04:00
New Revision: 0980f715cf7c3d78be6ba64e902bd2dfad3ebc75

URL: https://github.com/llvm/llvm-project/commit/0980f715cf7c3d78be6ba64e902bd2dfad3ebc75
DIFF: https://github.com/llvm/llvm-project/commit/0980f715cf7c3d78be6ba64e902bd2dfad3ebc75.diff

LOG: [libc][errno] Remove previously added errno numbers (#92163)

Introduced in https://github.com/llvm/llvm-project/pull/91150. Not
needed anymore as https://github.com/llvm/llvm-project/pull/92041 fixed
the root cause. `ENAMETOOLONG` and `EOVERFLOW` are well defined in
`<linux/errno.h>`.

Post mortem: Due to the previously missing inclusion of
`<linux/errno.h>` (fixed with
https://github.com/llvm/llvm-project/pull/92041), I misinterpreted an
undefined macro issue during the development of
https://github.com/llvm/llvm-project/pull/91150 as being caused by a
missing definition rather than by the missing inclusion of the linux
header. I realized too late that `ENAMETOOLONG` and `EOVERFLOW` were
correctly defined in `<linux/errno.h>` and that it was my missing
inclusion that caused the problem.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libc/include/llvm-libc-macros/generic-error-number-macros.h b/libc/include/llvm-libc-macros/generic-error-number-macros.h
index cb4411fbac665..59b121ef1481f 100644
--- a/libc/include/llvm-libc-macros/generic-error-number-macros.h
+++ b/libc/include/llvm-libc-macros/generic-error-number-macros.h
@@ -43,7 +43,5 @@
 #define EPIPE 32
 #define EDOM 33
 #define ERANGE 34
-#define ENAMETOOLONG 36
-#define EOVERFLOW 75
 
 #endif // LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H


        


More information about the libc-commits mailing list