rework langinfo code for ABI compat and for use by time code
[musl] / time / clock_gettime.c
1 #include <time.h>
2 #include "syscall.h"
3
4 int clock_gettime(clockid_t clk, struct timespec *ts)
5 {
6         return syscall2(__NR_clock_gettime, clk, (long)ts);
7 }