1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _PICO_LLVM_LIBC_SYS_TIME_H
8 #define _PICO_LLVM_LIBC_SYS_TIME_H
9 
10 #include <__llvm-libc-common.h>
11 
12 #include <llvm-libc-types/time_t.h>
13 #include <llvm-libc-types/struct_timespec.h>
14 
15 typedef long suseconds_t;
16 
17 struct timeval {
18   time_t tv_sec;
19   suseconds_t tv_usec;
20 };
21 
22 struct timezone {
23   int tz_minuteswest;
24   int tz_dsttime;
25 };
26 
27 __BEGIN_C_DECLS
28 
29 int gettimeofday(struct timeval *tv, struct timezone *tz);
30 int settimeofday(const struct timeval *tv, const struct timezone *tz);
31 
32 __END_C_DECLS
33 
34 #endif // _PICO_LLVM_LIBC_SYS_TIME_H
35