]> granicus.if.org Git - strace/commit
print_timespec.h: parametrize TIMESPEC_T.tv_nsec
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 17 May 2019 16:16:29 +0000 (16:16 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 17 May 2019 16:16:29 +0000 (16:16 +0000)
commit3f7ad363fb4eaf2239db3edaceba965a801636e7
treeda4431cdbeed7a408e0a37102ace68e93b95303b
parent6c3a7845eb45ad14af6f20087669a54c6c491f10
print_timespec.h: parametrize TIMESPEC_T.tv_nsec

This is going to be used to implement a parser of SO_TIMESTAMP_NEW
control message.

* print_timespec.h [!TIMESPEC_NSEC] (TIMESPEC_NSEC): Define to tv_sec.
(TIMESPEC_TO_SEC_NSEC, timespec_fmt, print_timespec_t_utime): Use
TIMESPEC_NSEC instead of tv_sec.
print_timespec.h