diff --git a/syscall/linux/constants.lua b/syscall/linux/constants.lua index 5f72cc2bcd..1b40abd160 100644 --- a/syscall/linux/constants.lua +++ b/syscall/linux/constants.lua @@ -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 @@ -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,