* Move 'struct _timespec' into sys/_timespec.h as expected by <posix/time.h>. * Introduce 'struct timeval' in sys/_timeval.h as expected by <posix/time.h>. * Add mode_t to <sys/types.h> as expected by <posix/stat.h> Signed-off-by: Kumar Gala <kumar.gala@intel.com>
28 lines
528 B
C
28 lines
528 B
C
/*
|
|
* Copyright (c) 2023 Intel
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_SYS__TIMEVAL_H_
|
|
#define ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_SYS__TIMEVAL_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#if !defined(__time_t_defined)
|
|
#define __time_t_defined
|
|
typedef unsigned int time_t;
|
|
#endif
|
|
|
|
#if !defined(__suseconds_t_defined)
|
|
#define __suseconds_t_defined
|
|
typedef int32_t suseconds_t;
|
|
#endif
|
|
|
|
struct timeval {
|
|
time_t tv_sec;
|
|
suseconds_t tv_usec;
|
|
};
|
|
|
|
#endif /* ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_SYS__TIMEVAL_H_ */
|