source:
trunk/minix/lib/posix/_pipe.c@
22
| Last change on this file since 22 was 9, checked in by , 15 years ago | |
|---|---|
| File size: 211 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | #include <lib.h> |
| 2 | #define pipe _pipe | |
| 3 | #include <unistd.h> | |
| 4 | ||
| 5 | PUBLIC int pipe(fild) | |
| 6 | int fild[2]; | |
| 7 | { | |
| 8 | message m; | |
| 9 | ||
| 10 | if (_syscall(FS, PIPE, &m) < 0) return(-1); | |
| 11 | fild[0] = m.m1_i1; | |
| 12 | fild[1] = m.m1_i2; | |
| 13 | return(0); | |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.