home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
minnie.tuhs.org
/
unixen.tar
/
unixen
/
PDP-11
/
Distributions
/
ucb
/
spencer_2bsd.tar.gz
/
2bsd.tar
/
src
/
pxp
/
wait.s
< prev
next >
Wrap
Text File
|
1980-02-17
|
243b
|
20 lines
/ C library -- wait
/ pid = wait(&status);
/
/ pid == -1 if error
/ status indicates fate of process
.globl _wait, cerror
_wait:
mov r5,-(sp)
mov sp,r5
sys wait
bec 1f
jmp cerror
1:
mov r1,*4(r5) / status return
mov (sp)+,r5
rts pc