]> granicus.if.org Git - strace/blob - kernel_timespec.h
tests: fix format warnings on x32
[strace] / kernel_timespec.h
1 /*
2  * Copyright (c) 2019 Dmitry V. Levin <ldv@altlinux.org>
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: LGPL-2.1-or-later
6  */
7
8 #ifndef STRACE_KERNEL_TIMESPEC_H
9 # define STRACE_KERNEL_TIMESPEC_H
10
11 typedef struct {
12         long long tv_sec;
13         long long tv_nsec;
14 } kernel_timespec64_t;
15
16 # if HAVE_ARCH_TIME32_SYSCALLS
17
18 typedef struct {
19         int tv_sec;
20         int tv_nsec;
21 } kernel_timespec32_t;
22
23 # endif /* HAVE_ARCH_TIME32_SYSCALLS */
24
25 #endif /* !STRACE_KERNEL_TIMESPEC_H */