Skip to content

Commit

Permalink
recent osx has *at functions
Browse files Browse the repository at this point in the history
  • Loading branch information
justincormack committed Sep 27, 2015
1 parent 18cd829 commit 9aeff88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions syscall/osx/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1109,5 +1109,17 @@ c.CLOCKTYPE = {

c.CLOCKTYPE.REALTIME = c.CLOCKTYPE.SYSTEM

-- AT constants only in recent versions, should check when added
c.AT_FDCWD = atflag {
FDCWD = -2,
}

c.AT = multiflags {
EACCESS = 0x0010,
SYMLINK_NOFOLLOW = 0x0020,
SYMLINK_FOLLOW = 0x0040,
REMOVEDIR = 0x0080,
}

return c

0 comments on commit 9aeff88

Please sign in to comment.