Skip to content

Commit

Permalink
Add more constants for fcntl, memfd
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Cormack <justin@specialbusservice.com>
  • Loading branch information
justincormack committed Feb 13, 2017
1 parent 8d3034c commit 7a73e8a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion syscall/linux/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ c.F = strflag(arch.F or {
SETLEASE = 1024,
GETLEASE = 1025,
NOTIFY = 1026,
CANCELLK = 1029,
DUPFD_CLOEXEC = 1030,
SETPIPE_SZ = 1031,
GETPIPE_SZ = 1032,
DUPFD_CLOEXEC = 1030,
ADD_SEALS = 1033,
GET_SEALS = 1034,
})

-- messy
Expand Down Expand Up @@ -208,6 +211,14 @@ c.LOCK = multiflags {
RW = 192,
}

-- for memfd
c.F_SEAL = multiflags {
SEAL 0x0001,
SHRINK 0x0002,
GROW 0x0004,
WRITE 0x0008,
}

--mmap
c.PROT = multiflags {
NONE = 0x0,
Expand Down

0 comments on commit 7a73e8a

Please sign in to comment.