syscall_moxie.mx raw

   1  //go:build baremetal || moxie.wasm || nintendoswitch || wasm_unknown
   2  
   3  package syscall
   4  
   5  import (
   6  	"errors"
   7  )
   8  
   9  const (
  10  	MSG_DONTWAIT = 0x40
  11  	AF_INET      = 0x2
  12  	AF_INET6     = 0xa
  13  )
  14  
  15  func Exit(code int)
  16  
  17  type Rlimit struct {
  18  	Cur uint64
  19  	Max uint64
  20  }
  21  
  22  func Setrlimit(resource int, rlim *Rlimit) error {
  23  	return errors.New("Setrlimit not implemented")
  24  }
  25