Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
glibc/sysdeps/unix/sysv/linux/kernel-posix-cpu-timers.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (16 sloc)
677 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Parameters for the Linux kernel ABI for CPU clocks. */ | |
#define CPUCLOCK_PID(clock) ((pid_t) ~((clock) >> 3)) | |
#define CPUCLOCK_PERTHREAD(clock) \ | |
(((clock) & (clockid_t) CPUCLOCK_PERTHREAD_MASK) != 0) | |
#define CPUCLOCK_PID_MASK 7 | |
#define CPUCLOCK_PERTHREAD_MASK 4 | |
#define CPUCLOCK_WHICH(clock) ((clock) & (clockid_t) CPUCLOCK_CLOCK_MASK) | |
#define CPUCLOCK_CLOCK_MASK 3 | |
#define CPUCLOCK_PROF 0 | |
#define CPUCLOCK_VIRT 1 | |
#define CPUCLOCK_SCHED 2 | |
#define CPUCLOCK_MAX 3 | |
#define MAKE_PROCESS_CPUCLOCK(pid, clock) \ | |
((~(clockid_t) (pid) << 3) | (clockid_t) (clock)) | |
#define MAKE_THREAD_CPUCLOCK(tid, clock) \ | |
MAKE_PROCESS_CPUCLOCK((tid), (clock) | CPUCLOCK_PERTHREAD_MASK) |