1 /*
2  * Copyright (c) 2019 Peter Bigot Consulting, LLC
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <time.h>
8 #include <zephyr/sys/libc-hooks.h>
9 
10 #ifdef CONFIG_MINIMAL_LIBC_NON_REENTRANT_FUNCTIONS
11 static Z_LIBC_DATA struct tm gmtime_result;
12 
gmtime(const time_t * timep)13 struct tm *gmtime(const time_t *timep)
14 {
15 	return gmtime_r(timep, &gmtime_result);
16 }
17 #endif /* CONFIG_MINIMAL_LIBC_NON_REENTRANT_FUNCTIONS */
18