@@ -61,7 +61,7 @@ int z_vrfy___posix_clock_get_base(clockid_t clock_id, struct timespec *ts)
61
61
#include <zephyr/syscalls/__posix_clock_get_base_mrsh.c>
62
62
#endif
63
63
64
- int clock_gettime (clockid_t clock_id , struct timespec * ts )
64
+ int z_clock_gettime (clockid_t clock_id , struct timespec * ts )
65
65
{
66
66
struct timespec base ;
67
67
@@ -97,6 +97,10 @@ int clock_gettime(clockid_t clock_id, struct timespec *ts)
97
97
98
98
return 0 ;
99
99
}
100
+ int clock_gettime (clockid_t clock_id , struct timespec * ts )
101
+ {
102
+ return z_clock_gettime (clock_id , ts );
103
+ }
100
104
101
105
int clock_getres (clockid_t clock_id , struct timespec * res )
102
106
{
@@ -128,7 +132,7 @@ int clock_getres(clockid_t clock_id, struct timespec *res)
128
132
* Note that only the `CLOCK_REALTIME` clock can be set using this
129
133
* call.
130
134
*/
131
- int clock_settime (clockid_t clock_id , const struct timespec * tp )
135
+ int z_clock_settime (clockid_t clock_id , const struct timespec * tp )
132
136
{
133
137
struct timespec base ;
134
138
k_spinlock_key_t key ;
@@ -156,6 +160,10 @@ int clock_settime(clockid_t clock_id, const struct timespec *tp)
156
160
157
161
return 0 ;
158
162
}
163
+ int clock_settime (clockid_t clock_id , const struct timespec * tp )
164
+ {
165
+ return z_clock_settime (clock_id , tp );
166
+ }
159
167
160
168
/*
161
169
* Note: usleep() was removed in Issue 7.
@@ -192,7 +200,7 @@ int usleep(useconds_t useconds)
192
200
*
193
201
* See IEEE 1003.1
194
202
*/
195
- static int __z_clock_nanosleep (clockid_t clock_id , int flags , const struct timespec * rqtp ,
203
+ int z_clock_nanosleep (clockid_t clock_id , int flags , const struct timespec * rqtp ,
196
204
struct timespec * rmtp )
197
205
{
198
206
uint64_t ns ;
@@ -255,13 +263,13 @@ static int __z_clock_nanosleep(clockid_t clock_id, int flags, const struct times
255
263
256
264
int nanosleep (const struct timespec * rqtp , struct timespec * rmtp )
257
265
{
258
- return __z_clock_nanosleep (CLOCK_MONOTONIC , 0 , rqtp , rmtp );
266
+ return z_clock_nanosleep (CLOCK_MONOTONIC , 0 , rqtp , rmtp );
259
267
}
260
268
261
269
int clock_nanosleep (clockid_t clock_id , int flags , const struct timespec * rqtp ,
262
270
struct timespec * rmtp )
263
271
{
264
- return __z_clock_nanosleep (clock_id , flags , rqtp , rmtp );
272
+ return z_clock_nanosleep (clock_id , flags , rqtp , rmtp );
265
273
}
266
274
267
275
/**
0 commit comments