Skip to content

Commit

Permalink
add Rlimit and Setrlimit()
Browse files Browse the repository at this point in the history
  • Loading branch information
qizhou committed Aug 17, 2023
1 parent d01d859 commit b2c1c33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/syscall/syscall_libc_wasi.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,15 @@ func Getpagesize() int {
return 65536
}

type Rlimit struct {
Cur uint64
Max uint64
}

func Setrlimit(resource int, rlim *Rlimit) error {
return nil
}

type Utsname struct {
Sysname [65]int8
Nodename [65]int8
Expand Down

0 comments on commit b2c1c33

Please sign in to comment.