[hurd,commited] hurd: Fix RLIM_INFINITY on 64b
Samuel Thibault
samuel.thibault@ens-lyon.org
Mon Sep 22 00:31:07 GMT 2025
rlim_t is 64b on 64b systems, so we should extend RLIM_INFINITY to that,
not only RLIM64_INFINITY or requiring 64b offsets.
This is similar to Linux headers.
---
bits/resource.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bits/resource.h b/bits/resource.h
index a42a338b44..6b4d6cc506 100644
--- a/bits/resource.h
+++ b/bits/resource.h
@@ -77,7 +77,7 @@ enum __rlimit_resource
/* Value to indicate that there is no limit. */
#ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY 0x7fffffff
+# define RLIM_INFINITY ((__rlim_t) -1)
#else
# define RLIM_INFINITY 0x7fffffffffffffffLL
#endif
--
2.51.0
More information about the Libc-alpha
mailing list