c/os: Setrlimit/Getrlimit

This commit is contained in:
xushiwei
2024-07-18 17:56:49 +08:00
parent db8cc8eb7b
commit b51df25371
7 changed files with 189 additions and 16 deletions

View File

@@ -320,3 +320,11 @@ func Getgid() GidT
func Getegid() GidT
// -----------------------------------------------------------------------------
//go:linkname Getrlimit C.getrlimit
func Getrlimit(resource c.Int, rlp *syscall.Rlimit) c.Int
//go:linkname Setrlimit C.setrlimit
func Setrlimit(resource c.Int, rlp *syscall.Rlimit) c.Int
// -----------------------------------------------------------------------------