mirror of
https://github.com/ziglang/zig.git
synced 2026-01-05 04:53:17 +00:00
std.os.linux: add mseal syscall
This commit is contained in:
parent
0f0f543a9a
commit
20f4be4cf9
@ -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)));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user