mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
std.os.linux: add F_SEAL constants to F struct
Add the missing F_SEAL_SEAL, F_SEAL_SHRINK, F_SEAL_GROW, F_SEAL_WRITE, F_SEAL_FUTURE_WRITE, and F_SEAL_EXEC constants used with F.ADD_SEALS/F.GET_SEALS for memfd file sealing. These are defined in the Linux kernel at include/uapi/linux/fcntl.h. The FreeBSD equivalents already exist in std.c (freebsd.F), but the Linux side was missing them.
This commit is contained in:
parent
703df73f38
commit
52a6242443
1 changed files with 8 additions and 0 deletions
|
|
@ -1862,6 +1862,14 @@ pub const F = struct {
|
|||
pub const GETPIPE_SZ = LINUX_SPECIFIC_BASE + 8;
|
||||
pub const ADD_SEALS = LINUX_SPECIFIC_BASE + 9;
|
||||
pub const GET_SEALS = LINUX_SPECIFIC_BASE + 10;
|
||||
|
||||
pub const SEAL_SEAL = 0x0001;
|
||||
pub const SEAL_SHRINK = 0x0002;
|
||||
pub const SEAL_GROW = 0x0004;
|
||||
pub const SEAL_WRITE = 0x0008;
|
||||
pub const SEAL_FUTURE_WRITE = 0x0010;
|
||||
pub const SEAL_EXEC = 0x0020;
|
||||
|
||||
pub const GET_RW_HINT = LINUX_SPECIFIC_BASE + 11;
|
||||
pub const SET_RW_HINT = LINUX_SPECIFIC_BASE + 12;
|
||||
pub const GET_FILE_RW_HINT = LINUX_SPECIFIC_BASE + 13;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue