Skip to content

Commit

Permalink
Merge pull request snabbco#209 from justincormack/osx_clock
Browse files Browse the repository at this point in the history
Add CLOCK_ constants for OSX
  • Loading branch information
justincormack authored Mar 7, 2017
2 parents 178d244 + ee17863 commit ee90324
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion syscall/osx/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,17 @@ c.CLOCKTYPE = {

c.CLOCKTYPE.REALTIME = c.CLOCKTYPE.SYSTEM

c.CLOCK = strflag {
REALTIME = 0,
MONOTONIC_RAW = 4,
MONOTONIC_RAW_APPROX = 5,
MONOTONIC = 6,
UPTIME_RAW = 8,
UPTIME_RAW_APPROX = 9,
PROCESS_CPUTIME_ID = 12,
THREAD_CPUTIME_ID = 16,
}

-- AT constants only in recent versions, should check when added
c.AT_FDCWD = atflag {
FDCWD = -2,
Expand All @@ -1122,4 +1133,3 @@ c.AT = multiflags {
}

return c

0 comments on commit ee90324

Please sign in to comment.