diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2018-01-05 20:34:10 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2018-01-05 20:34:10 +0100 |
commit | 19be56d8cef5c157f436234b3af4439437da259f (patch) | |
tree | 9318d3554ea4ce0f7ae43370e8db6431e7100352 /ChangeLog | |
parent | 24731685c89dbd2c4579234583c268b52d943d0b (diff) | |
download | glibc-19be56d8cef5c157f436234b3af4439437da259f.zip glibc-19be56d8cef5c157f436234b3af4439437da259f.tar.gz glibc-19be56d8cef5c157f436234b3af4439437da259f.tar.bz2 |
Add test for getrlimit/setrlimit/prlimit with infinity value
Add a test to check that the getrlimit, setrlimit and prlimit functions
and their 64-bit equivalent behave correctly with RLIM_INFINITY and
RLIM64_INFINITY. For that it assumes that the prlimit64 function calls
the syscall directly without translating the value and that the kernel
uses the -1 value to represent infinity.
It first finds a resource with the hard limit set to infinity so the
soft limit can be manipulated easily and check for the consistency
between the value set or get by the prlimit64 and the other functions.
It is Linux specific add it uses the prlimit and prlimit64 functions.
Changelog:
* sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
* sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4,6 +4,9 @@ * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate old_rlimit from RLIM64_INFINITY to RLIM_INFINITY. + * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file. + * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity. + 2018-01-05 Aurelien Jarno <aurelien@aurel32.net> Adhemerval Zanella <adhemerval.zanella@linaro.org> |