commit | e61086ff777e392998c136492d2bf9052d9b1aed | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Fri Feb 27 21:46:42 2015 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Sat Feb 28 12:10:39 2015 +0000 |
tree | e7ca85b4bdc58c64ccfbeda46cbe5978f2db1bf7 | |
parent | 4ed340bae64c84897fa7e42f6142592ef899f0cd [diff] |
x32: fix decoding of timeval, timespec, and timex structures As time_t is a 64-bit type in x32 personality, it is not correct to treat it as a long int type. * time.c (current_time_t_is_compat): New macro. (sprinttv, sprint_timespec, printitv_bitness, tprint_timex): Use it. (tprint_timeval, do_sprinttv, sprint_timespec): Use j and uintmax_t when printing tv_sec/tv_usec. (tprint_timex): Use j and intmax_t/uintmax_t when printing struct timex members of type kernel_long_t.