unix: add linux mseal system call

This commit is contained in:
Mauri de Souza Meneguzzo
2024-06-15 17:10:19 -03:00
parent 2313acfe68
commit 5a407f40c3
2 changed files with 11 additions and 0 deletions

View File

@@ -2592,3 +2592,4 @@ func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) {
}
//sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error)
//sys Mseal(addr uintptr, len int, flags uint) (err error)

View File

@@ -2229,3 +2229,13 @@ func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Mseal(addr uintptr, len int, flags uint) (err error) {
_, _, e1 := Syscall(SYS_MSEAL, uintptr(addr), uintptr(len), uintptr(flags))
if e1 != 0 {
err = errnoErr(e1)
}
return
}