[libc-commits] [libc] [libc] Clean up sysconf implementation and tests (PR #204130)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Tue Jun 16 06:37:43 PDT 2026
================
@@ -26,6 +26,6 @@
#define RLIMIT_RTPRIO 14
#define RLIMIT_RTTIME 15
-#define RLIM_INFINITY (~0UL)
+#define RLIM_INFINITY (~0ULL)
----------------
labath wrote:
What would you say to `(rlim_t)-1` (or something to that effect)? The thing I'm trying to achieve is to make the type of the constant match the rlim_t type (which we define as uint64_t, which will be an `unsigned long` on 64-bit machines).
https://github.com/llvm/llvm-project/pull/204130
More information about the libc-commits
mailing list