repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libc, libutil: remove compat hacks
[minix.git]
/
lib
/
libc
/
sys-minix
/
pipe.c
blob
9f883885ce79f7c966695672cec821a051f8a009
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <unistd.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
pipe
,
_pipe
)
9
#endif
10
11
int
pipe
(
fild
)
12
int
fild
[
2
];
13
{
14
message m
;
15
16
if
(
_syscall
(
VFS_PROC_NR
,
PIPE
, &
m
) <
0
)
return
(-
1
);
17
fild
[
0
] =
m
.
m1_i1
;
18
fild
[
1
] =
m
.
m1_i2
;
19
return
(
0
);
20
}