repo.or.cz
/
minix3-old.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added lance entry to drivers.conf.
[minix3-old.git]
/
lib
/
posix
/
_pipe.c
blob
f59e89cf401366a0b09b088a5696f383c46def37
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
}