8bc0f8ee40f497df6c5450cde9bcaa5fa2c2f9d3
[m6w6/ext-psi] / tests / pipe / pipe.psi
1 #pragma lib "crypt";
2
3 #include <unistd.h>
4
5 function \pipe(array &$fds = null) : int {
6 return pipe(fildes) as to_int(pipe);
7 let fildes = calloc(2, sizeof(int));
8 set $fds = to_array(*fildes, 2, to_int(*fildes));
9 }