Browse Source

Introduce kernel_timeval64_t type

This type is going to be used to implement parsers of SO_TIMESTAMP*_NEW
control messages.

* kernel_timeval.h: New file.
* Makefile.am (strace_SOURCES): Add it.
Dmitry V. Levin 6 months ago
parent
commit
6d0e7c07cf
2 changed files with 17 additions and 0 deletions
  1. 1
    0
      Makefile.am
  2. 16
    0
      kernel_timeval.h

+ 1
- 0
Makefile.am View File

@@ -157,6 +157,7 @@ strace_SOURCES =	\
157 157
 	ipc_shmctl.c	\
158 158
 	kcmp.c		\
159 159
 	kernel_timespec.h \
160
+	kernel_timeval.h \
160 161
 	kernel_timex.h	\
161 162
 	kernel_types.h	\
162 163
 	kexec.c		\

+ 16
- 0
kernel_timeval.h View File

@@ -0,0 +1,16 @@
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_TIMEVAL_H
9
+# define STRACE_KERNEL_TIMEVAL_H
10
+
11
+typedef struct {
12
+	long long tv_sec;
13
+	long long tv_usec;
14
+} kernel_timeval64_t;
15
+
16
+#endif /* !STRACE_KERNEL_TIMEVAL_H */

Loading…
Cancel
Save