summaryrefslogblamecommitdiff
path: root/src/time/clock_getcpuclockid.c
blob: 723840b00830c22517fd00224feb55544e50e916 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                  
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include "syscall.h"

int clock_getcpuclockid(pid_t pid, clockid_t *clk)
{
	if (pid && pid != getpid()) return EPERM;
	*clk = CLOCK_PROCESS_CPUTIME_ID;
	return 0;
}