mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
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.
This commit is contained in:
committed by
Ron Evans
parent
e65592599c
commit
75298bb84b
@@ -0,0 +1,13 @@
|
||||
// +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 }
|
||||
Reference in New Issue
Block a user