tinygo/src/syscall/proc_emulated.go
Ayke van Laethem 75298bb84b os: implement process related functions
This commit implements various process related functions like
os.Getuid() and os.Getpid(). It also implements or improves this support
in the syscall package if it isn't available yet.
2021-06-25 16:14:47 +02:00

13 строки
358 Б
Go

// +build baremetal wasi wasm
// This file emulates some process-related functions that are only available
// under a real operating system.
package syscall
func Getuid() int { return -1 }
func Geteuid() int { return -1 }
func Getgid() int { return -1 }
func Getegid() int { return -1 }
func Getpid() int { return -1 }
func Getppid() int { return -1 }