This is implementation-level header which defines struct timeval, and intended to be included by headers which need this structure. This implementation scheme is compatible with Newlib, and thus provides a step to use minlibc vs Newlib interchangeably. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
18 lines
344 B
C
18 lines
344 B
C
/*
|
|
* Copyright (c) 2019 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMEVAL_H_
|
|
#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMEVAL_H_
|
|
|
|
#include <sys/types.h>
|
|
|
|
struct timeval {
|
|
time_t tv_sec;
|
|
suseconds_t tv_usec;
|
|
};
|
|
|
|
#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMEVAL_H_ */
|