Skip to content

Commit b9f82f0

Browse files
committed
syscall: stub WaitStatus
1 parent f159573 commit b9f82f0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/syscall/syscall_libc.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,19 @@ func Pipe2(p []int, flags int) (err error) {
157157
return ENOSYS // TODO
158158
}
159159

160+
// TODO
161+
type WaitStatus uint32
162+
163+
func (w WaitStatus) Exited() bool { return false }
164+
func (w WaitStatus) ExitStatus() int { return 0 }
165+
func (w WaitStatus) Signaled() bool { return false }
166+
func (w WaitStatus) Signal() Signal { return 0 }
167+
func (w WaitStatus) CoreDump() bool { return false }
168+
func (w WaitStatus) Stopped() bool { return false }
169+
func (w WaitStatus) Continued() bool { return false }
170+
func (w WaitStatus) StopSignal() Signal { return 0 }
171+
func (w WaitStatus) TrapCause() int { return 0 }
172+
160173
func Getenv(key string) (value string, found bool) {
161174
data := cstring(key)
162175
raw := libc_getenv(&data[0])

0 commit comments

Comments
 (0)