ack/mach/minix/libsys/_pipe.c

17 lines
257 B
C
Raw Permalink Normal View History

#include <lib.h>
#define pipe _pipe
1991-09-19 12:46:16 +00:00
#include <unistd.h>
PUBLIC int pipe(fild)
int fild[2];
{
int k;
k = _callm1(FS, PIPE, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
if (k >= 0) {
fild[0] = _M.m1_i1;
fild[1] = _M.m1_i2;
return(0);
} else
return(k);
}