]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix RLIM_INFINITY on 64b
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 22 Sep 2025 00:28:14 +0000 (02:28 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 22 Sep 2025 00:30:14 +0000 (02:30 +0200)
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

index a42a338b445cc039c91a25eaea48b77e90153f47..6b4d6cc506e9983fac7ee9d25ea05deb740b7904 100644 (file)
@@ -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