github.com/tetratelabs/wazero@v1.2.1/internal/gojs/custom/process.go (about) 1 package custom 2 3 const ( 4 NameProcess = "process" 5 NameProcessCwd = "cwd" 6 NameProcessChdir = "chdir" 7 NameProcessGetuid = "getuid" 8 NameProcessGetgid = "getgid" 9 NameProcessGeteuid = "geteuid" 10 NameProcessGetgroups = "getgroups" 11 NameProcessUmask = "umask" 12 ) 13 14 // ProcessNameSection are the functions defined in the object named NameProcess. 15 // Results here are those set to the current event object, but effectively are 16 // results of the host function. 17 var ProcessNameSection = map[string]*Names{ 18 NameProcessCwd: { 19 Name: NameProcessCwd, 20 ParamNames: []string{}, 21 ResultNames: []string{"cwd"}, 22 }, 23 NameProcessChdir: { 24 Name: NameProcessChdir, 25 ParamNames: []string{"path"}, 26 ResultNames: []string{"err"}, 27 }, 28 NameProcessGetuid: { 29 Name: NameProcessGetuid, 30 ParamNames: []string{}, 31 ResultNames: []string{"uid"}, 32 }, 33 NameProcessGetgid: { 34 Name: NameProcessGetgid, 35 ParamNames: []string{}, 36 ResultNames: []string{"gid"}, 37 }, 38 NameProcessGeteuid: { 39 Name: NameProcessGeteuid, 40 ParamNames: []string{}, 41 ResultNames: []string{"euid"}, 42 }, 43 NameProcessGetgroups: { 44 Name: NameProcessGetgroups, 45 ParamNames: []string{}, 46 ResultNames: []string{"groups"}, 47 }, 48 NameProcessUmask: { 49 Name: NameProcessUmask, 50 ParamNames: []string{"mask"}, 51 ResultNames: []string{"oldmask"}, 52 }, 53 }