|
|
1.1 root 1: //////////
2: / libc/sys/i386/pipe.s
3: / Copyright (c) Ciaran O'Donnell, Bievres (FRANCE), 1991.
4: //////////
5:
6: //////////
7: / pipe(fd) int fd[2];
8: //////////
9:
10: .text
11: .globl pipe
12: .globl .cerror
13:
14: pipe:
15: movl $42,%eax
16: lcall $0x7,$0
17: jc .cerror
18:
19: movl 4(%esp),%ecx
20: movl %eax,(%ecx) / fd[0] = fd1
21: movl %edx,4(%ecx) / fd[2] = fd2;
22: subl %eax,%eax
23: ret / return 0
24:
25: / end of libc/sys/i386/pipe.s
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.