|
|
1.1 root 1: //////////
2: / libc/sys/i386/fork.s
3: / Copyright (c) Ciaran O'Donnell, Bievres (FRANCE), 1991.
4: //////////
5:
6: .globl fork
7: .globl .cerror
8:
9: fork:
10: movl $2,%eax
11: lcall $0x7,$0
12: jc .cerror
13: orl %edx,%edx
14: jz ?L0 / return pid (parent)
15: xorl %eax,%eax / return 0 (child)
16: ?L0:
17: orl %eax,%eax
18: ret
19:
20: / end of libc/sys/i386/fork.s
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.