aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/syscall
diff options
context:
space:
mode:
authorDan Kegel <[email protected]>2022-03-19 13:21:54 -0700
committerRon Evans <[email protected]>2022-04-04 07:33:31 +0200
commit8823a934a320005d3c665b3a67ad42ced3814cbb (patch)
tree9d5edc9e94910df08f4107658a676b022389af09 /src/syscall
parent6ac02cc34cc43fbd5c0e8b17f80c7f4e0c9245a7 (diff)
downloadtinygo-8823a934a320005d3c665b3a67ad42ced3814cbb.tar.gz
tinygo-8823a934a320005d3c665b3a67ad42ced3814cbb.zip
syscall: stub WaitStatus
Diffstat (limited to 'src/syscall')
-rw-r--r--src/syscall/syscall_libc.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/syscall/syscall_libc.go b/src/syscall/syscall_libc.go
index c94c29cd1..bbc54888a 100644
--- a/src/syscall/syscall_libc.go
+++ b/src/syscall/syscall_libc.go
@@ -157,6 +157,19 @@ func Pipe2(p []int, flags int) (err error) {
return ENOSYS // TODO
}
+// TODO
+type WaitStatus uint32
+
+func (w WaitStatus) Exited() bool { return false }
+func (w WaitStatus) ExitStatus() int { return 0 }
+func (w WaitStatus) Signaled() bool { return false }
+func (w WaitStatus) Signal() Signal { return 0 }
+func (w WaitStatus) CoreDump() bool { return false }
+func (w WaitStatus) Stopped() bool { return false }
+func (w WaitStatus) Continued() bool { return false }
+func (w WaitStatus) StopSignal() Signal { return 0 }
+func (w WaitStatus) TrapCause() int { return 0 }
+
func Getenv(key string) (value string, found bool) {
data := cstring(key)
raw := libc_getenv(&data[0])