minix/lib/libc/posix/_pipe.c

15 lines
211 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include <lib.h>
#define pipe _pipe
#include <unistd.h>
PUBLIC int pipe(fild)
int fild[2];
{
message m;
if (_syscall(FS, PIPE, &m) < 0) return(-1);
fild[0] = m.m1_i1;
fild[1] = m.m1_i2;
return(0);
}