Commit 20f4be4cf9

reokodoku <reokodoku@lyboc.dns.navy>
2024-08-14 21:14:49
std.os.linux: add mseal syscall
1 parent 0f0f543
Changed files (1)
lib
std
lib/std/os/linux.zig
@@ -874,6 +874,11 @@ pub const MSF = struct {
     pub const SYNC = 4;
 };
 
+/// Can only be called on 64 bit systems.
+pub fn mseal(address: [*]const u8, length: usize, flags: usize) usize {
+    return syscall3(.mseal, @intFromPtr(address), length, flags);
+}
+
 pub fn msync(address: [*]const u8, length: usize, flags: i32) usize {
     return syscall3(.msync, @intFromPtr(address), length, @as(u32, @bitCast(flags)));
 }