]> granicus.if.org Git - strace/commit
Honor xlat styles when decoding resource limits
authorShankara Pailoor <shankarapailoor@gmail.com>
Sat, 12 Jan 2019 03:07:33 +0000 (19:07 -0800)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 17 Feb 2019 22:28:31 +0000 (22:28 +0000)
commitab9944f03cbee7fa8326517bb9afe371f6241094
tree484042397ffbd169798792678dc95449145e6f96
parentce494f63d2a4de22a08b5ed807e6195ece8b9632
Honor xlat styles when decoding resource limits

* resource.c (sprint_rlim64, sprint_rlim32): Remove.
(print_rlim64_t, print_rlim32_t): New functions.
(print_rlimit64, print_rlimit32): Use them.
* tests/setrlimit-Xabbrev.c: New file.
* tests/setrlimit-Xraw.c: Likewise.
* tests/setrlimit-Xverbose.c: Likewise.
* tests/setrlimit.c (main): Handle XLAT_ABBREV, XLAT_RAW,
and XLAT_VERBOSE macros.
* tests/xgetrlimit.c (sprint_rlim): Likewise.
* tests/gen_tests.in (setrlimit-Xabbrev, setrlimit-Xraw,
setrlimit-Xverbose): New tests.
* tests/pure_executables.list: Add setrlimit-Xabbrev, setrlimit-Xraw,
and setrlimit-Xverbose.
* tests/.gitignore: Likewise.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
resource.c
tests/.gitignore
tests/gen_tests.in
tests/pure_executables.list
tests/setrlimit-Xabbrev.c [new file with mode: 0644]
tests/setrlimit-Xraw.c [new file with mode: 0644]
tests/setrlimit-Xverbose.c [new file with mode: 0644]
tests/setrlimit.c
tests/xgetrlimit.c