Initial revision
This commit is contained in:
14
mach/minix/libsys/pipe.c
Normal file
14
mach/minix/libsys/pipe.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "lib.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);
|
||||
}
|
||||
Reference in New Issue
Block a user