Use 64-bit versions of stat, readdir and setrlimit functions when available
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.

TeamExodus/external_strace,lizh06/strace-plus,xin3liang/platform_external_strace,MonkeyZZZZ/platform_external_strace,bnoordhuis/strace,lkundrak/strace,bnoordhuis/strace,vrastogi/strace,TeamExodus/external_strace,geekboxzone/lollipop_external_strace,MonkeyZZZZ/platform_external_strace,pgbovine/strace-plus,pombredanne/strace,CyanogenMod/android_external_strace,MonkeyZZZZ/platform_external_strace,pgbovine/strace-plus,android-ia/platform_external_strace,lkundrak/strace,Infinitive-OS/platform_external_strace,DirtyUnicorns/android_external_strace,lizh06/strace-plus,gcode-mirror/strace-plus,MonkeyZZZZ/platform_external_strace,bigzz/strace_android,lkundrak/strace,geofft/strace,kapdop/android_external_strace,geofft/strace,Distrotech/strace,TeamExodus/external_strace,geekboxzone/mmallow_external_strace,Infinitive-OS/platform_external_strace,geekboxzone/lollipop_external_strace,Infinitive-OS/platform_external_strace,lizh06/strace-plus,kapdop/android_external_strace,CyanogenMod/android_external_strace,MonkeyZZZZ/platform_external_strace,DirtyUnicorns/android_external_strace,bigzz/strace_android,geekboxzone/mmallow_external_strace,Infinitive-OS/platform_external_strace,Yu-AndroidM/android_external_strace,Yu-AndroidM/android_external_strace,Yu-AndroidM/android_external_strace,DirtyUnicorns/android_external_strace,Infinitive-OS/platform_external_strace,pombredanne/strace,vrastogi/strace,pgbovine/strace-plus,lizh06/strace-plus,geofft/strace,geekboxzone/lollipop_external_strace,geofft/strace,vrastogi/strace,CyanogenMod/android_external_strace,AOSP-YU/platform_external_strace,geekboxzone/lollipop_external_strace,CyanogenMod/android_external_strace,YUPlayGodDev/platform_external_strace,pgbovine/strace-plus,TeamExodus/external_strace,AOSP-YU/platform_external_strace,xin3liang/platform_external_strace,Saruta/strace,geekboxzone/mmallow_external_strace,pombredanne/strace,kapdop/android_external_strace,DirtyUnicorns/android_external_strace,Yu-AndroidM/android_external_strace,geofft/strace,YUPlayGodDev/platform_external_strace,Saruta/strace,vrastogi/strace,cuviper/strace,android-ia/platform_external_strace,jamel/strace-plus,geekboxzone/mmallow_external_strace,Yu-AndroidM/android_external_strace,AOSP-YU/platform_external_strace,geekboxzone/lollipop_external_strace,DirtyUnicorns/android_external_strace,lkundrak/strace,jamel/strace-plus,pombredanne/strace,pgbovine/strace-plus,cuviper/strace,cuviper/strace,Distrotech/strace,geekboxzone/mmallow_external_strace,xin3liang/platform_external_strace,CyanogenMod/android_external_strace,jamel/strace-plus,Saruta/strace,gcode-mirror/strace-plus,AOSP-YU/platform_external_strace,lizh06/strace-plus,Saruta/strace,xin3liang/platform_external_strace,cuviper/strace,bnoordhuis/strace,YUPlayGodDev/platform_external_strace,gcode-mirror/strace-plus,kapdop/android_external_strace,bigzz/strace_android,gcode-mirror/strace-plus,Distrotech/strace,Saruta/strace,android-ia/platform_external_strace,Distrotech/strace,gcode-mirror/strace-plus,android-ia/platform_external_strace,YUPlayGodDev/platform_external_strace,kapdop/android_external_strace,cuviper/strace,bigzz/strace_android,bnoordhuis/strace,bigzz/strace_android,jamel/strace-plus,YUPlayGodDev/platform_external_strace,vrastogi/strace,TeamExodus/external_strace,AOSP-YU/platform_external_strace,Distrotech/strace,jamel/strace-plus,android-ia/platform_external_strace