projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cheap trick to further optimize locking normal mutexes
[oweals/musl.git]
/
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
}