[libc-commits] [libc] [libc] Clean up sysconf implementation and tests (PR #204130)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Wed Jun 17 05:53:56 PDT 2026


================
@@ -26,6 +26,6 @@
 #define RLIMIT_RTPRIO 14
 #define RLIMIT_RTTIME 15
 
-#define RLIM_INFINITY (~0UL)
+#define RLIM_INFINITY (~0ULL)
----------------
kaladron wrote:

It looks like we wind up with a fragile ordering problem in the generated headers:

```c++
#include "../llvm-libc-macros/sys-resource-macros.h"
#include "../llvm-libc-types/rlim_t.h"
```

and it could be easily broken.  FWIW. this is pretty similar to how the other libcs define it, so I'd like to keep it as it is.

https://github.com/llvm/llvm-project/pull/204130


More information about the libc-commits mailing list