]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getrlimit.2: Correct information about large limits on 32-bit architectures
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 19 Sep 2018 17:12:22 +0000 (19:12 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 25 Feb 2019 14:08:51 +0000 (15:08 +0100)
Signed-off-by: Eugene Syromyatnikov <evgsyr@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/getrlimit.2

index f488af488027b9ba99709cfe14e83f939e0b5233..de374f514f140bdba0d6413afed9c3351535d525 100644 (file)
@@ -734,7 +734,11 @@ and
 .BR setrlimit ()
 system calls is a (32-bit)
 .IR "unsigned long" .
-Furthermore, in Linux versions before 2.6.36,
+.\" Linux still uses long for limits internally:
+.\" c022a0acad534fd5f5d5f17280f6d4d135e74e81
+.\" kernel/sys.c:do_prlimit() still uses struct rlimit which
+.\" uses kernel_ulong_t for its members, i.e. 32-bit  on 32-bit kernel.
+Furthermore, in Linux,
 the kernel represents resource limits on 32-bit platforms as
 .IR "unsigned long" .
 However, a 32-bit data type is not wide enough.
@@ -760,15 +764,6 @@ wrapper function silently converted the limit value to
 .BR RLIM_INFINITY .
 In other words, the requested resource limit setting was silently ignored.
 .PP
-This problem was addressed in Linux 2.6.36 with two principal changes:
-.IP * 3
-the addition of a new kernel representation of resource limits that
-uses 64 bits, even on 32-bit platforms;
-.IP *
-the addition of the
-.BR prlimit ()
-system call, which employs 64-bit values for its resource limit arguments.
-.PP
 Since version 2.13,
 .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
 glibc works around the limitations of the