support cputime clocks for processes/threads other than self
authorRich Felker <dalias@aerifal.cx>
Sat, 8 Jun 2013 15:36:41 +0000 (11:36 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 8 Jun 2013 15:36:41 +0000 (11:36 -0400)
commitea200e38bd79723054c7ad97cbf87911eac5b7f5
treeb4e065a5ed23be930dcf3ca33cf08d3f9a7ce023
parent0996faa3d789dd69e4c1c022757f0623908b0df5
support cputime clocks for processes/threads other than self

apparently these features have been in Linux for a while now, so it
makes sense to support them. the bit twiddling seems utterly illogical
and wasteful, especially the negation, but that's how the kernel folks
chose to encode pids/tids into the clock id.
src/thread/pthread_getcpuclockid.c
src/time/clock_getcpuclockid.c