pastebin - collaborative debugging tool
rovema.kpaste.net RSS


Enumerate clockids from <time.h>
Posted by Anonymous on Thu 15th Sep 2022 13:56
raw | new post

  1. rmainz@derfwpc5131:~$ clang -E -dM -m32  -include time.h - < /dev/null | egrep '#[[:space:]]*define[[:space:]]+CLOCK_.+[[:space:]]+[[:digit:]]+'
  2. #define CLOCK_BOOTTIME 7
  3. #define CLOCK_BOOTTIME_ALARM 9
  4. #define CLOCK_MONOTONIC 1
  5. #define CLOCK_MONOTONIC_COARSE 6
  6. #define CLOCK_MONOTONIC_RAW 4
  7. #define CLOCK_PROCESS_CPUTIME_ID 2
  8. #define CLOCK_REALTIME 0
  9. #define CLOCK_REALTIME_ALARM 8
  10. #define CLOCK_REALTIME_COARSE 5
  11. #define CLOCK_TAI 11
  12. #define CLOCK_THREAD_CPUTIME_ID 3

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at