Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
_timespec.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMESPEC_H_
8#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMESPEC_H_
9
10#include <sys/_types.h>
11
12#if !defined(__time_t_defined)
13#define __time_t_defined
14typedef _TIME_T_ time_t;
15#endif
16
17#if !defined(__suseconds_t_defined)
18#define __suseconds_t_defined
19typedef _SUSECONDS_T_ suseconds_t;
20#endif
21
22struct timespec {
24 long tv_nsec;
25};
26
27#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMESPEC_H_ */
_TIME_T_ time_t
Definition: _timespec.h:14
_SUSECONDS_T_ suseconds_t
Definition: _timespec.h:19
Definition: _timespec.h:22
long tv_nsec
Definition: _timespec.h:24
time_t tv_sec
Definition: _timespec.h:23