]> granicus.if.org Git - strace/commit
Use 64-bit versions of stat, readdir and setrlimit functions when available
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Mar 2013 21:40:15 +0000 (21:40 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Mar 2013 22:13:52 +0000 (22:13 +0000)
commitc8938e08ad06ae7bf0f50872ddbb0efbe7bf7560
tree924606cdd9871888757d9d212dd8a8ff8cf202b3
parent68f80e6d1af85336cf6cf89f48f700030bd94d86
Use 64-bit versions of stat, readdir and setrlimit functions when available

strace already has a mechanism to use fopen64 for output when the 64-bit
version of fopen is available on 32-bit architectures.  Apply this
mechanism for other three functions to make strace fully adopted for
64-bit types.

* strace.c (struct_stat, stat_file, struct_dirent, read_dir,
struct_rlimit, set_rlimit): New macros.
(startup_attach): Use read_dir.
(startup_child): Use struct_stat and stat_file.
(main): Use struct_rlimit and set_rlimit.
strace.c