minix/lib/posix/_pipe.c
2005-04-21 14:53:53 +00:00

14 lines
211 B
C
Executable file

#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);
}