|
|
1.1 root 1: # C library -- wait3
2:
3: # pid = wait3(&status, flags, &vmstat);
4: #
5: # pid == -1 if error
6: # status indicates fate of process, if given
7: # flags may indicate process is not to hang or
8: # that untraced stopped children are to be reported.
9: # vmstat optionally returns detailed resource usage information
10: #
11:
12: wait3 = 7 | same as wait!
13: .globl _wait3
14: .globl cerror
15:
16: _wait3:
17: movl sp@(8),d0 | make it easy for system to get
18: movl sp@(12),d1 | these extra arguments
19: pea wait3
20: orb #0x1f,cc | flags wait3()
21: trap #0
22: bcc noerror
23: jmp cerror
24: noerror:
25: tstl sp@(4) | status desired?
26: beql nostatus | no
27: movl sp@(4),a1
28: movl d1,a1@ | store child's status
29: nostatus:
30: rts
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.