projects
/
unix-history
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
BSD 2 development
[unix-history]
/
src
/
pxp
/
wait.s
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
1
/ C library -- wait
2
3
/ pid = wait(&status);
4
/
5
/ pid == -1 if error
6
/ status indicates fate of process
7
8
.globl _wait, cerror
9
10
_wait:
11
mov r5,-(sp)
12
mov sp,r5
13
sys wait
14
bec 1f
15
jmp cerror
16
1:
17
mov r1,*4(r5) / status return
18
mov (sp)+,r5
19
rts pc