libc: minimal: Introduce sys/_timeval.h
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>
This commit is contained in:
parent
d79d3eb725
commit
c896f87d5d
17
lib/libc/minimal/include/sys/_timeval.h
Normal file
17
lib/libc/minimal/include/sys/_timeval.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* 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_ */
|
Loading…
Reference in a new issue