__time_to_tm: initialize tm_zone and tm_gmtoff
[musl] / src / time / clock_getcpuclockid.c
1 #include <time.h>
2 #include <errno.h>
3 #include <unistd.h>
4 #include "syscall.h"
5
6 int clock_getcpuclockid(pid_t pid, clockid_t *clk)
7 {
8         if (pid && pid != getpid()) return EPERM;
9         *clk = CLOCK_PROCESS_CPUTIME_ID;
10         return 0;
11 }