summaryrefslogtreecommitdiff
path: root/kernel_timeval.h
blob: 7a3dc1b2cfca2189161d79aa5bee8cb3c5d2e3a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2019-2020 Dmitry V. Levin <ldv@altlinux.org>
 * All rights reserved.
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#ifndef STRACE_KERNEL_TIMEVAL_H
# define STRACE_KERNEL_TIMEVAL_H

# include "kernel_types.h"

typedef struct {
	long long tv_sec;
	long long tv_usec;
} kernel_timeval64_t;

typedef struct {
	kernel_long_t tv_sec;
# if defined __sparc__ && defined __arch64__
	int tv_usec;
# else
	kernel_long_t tv_usec;
# endif
} kernel_old_timeval_t;

#endif /* !STRACE_KERNEL_TIMEVAL_H */