github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/syscall/syscall.go (about) 1 package syscall 2 3 import ( 4 "errors" 5 "sync/atomic" 6 ) 7 8 const ( 9 MSG_DONTWAIT = 0x40 10 AF_INET = 0x2 11 AF_INET6 = 0xa 12 ) 13 14 func Exit(code int) 15 16 type Rlimit struct { 17 Cur uint64 18 Max uint64 19 } 20 21 // origRlimitNofile, if not {0, 0}, is the original soft RLIMIT_NOFILE. 22 // When we can assume that we are bootstrapping with Go 1.19, 23 // this can be atomic.Pointer[Rlimit]. 24 var origRlimitNofile atomic.Value // of Rlimit 25 26 func Setrlimit(resource int, rlim *Rlimit) error { 27 return errors.New("Setrlimit not implemented") 28 }