flush
[m6w6/ext-psi] / tests / pipe / pipe.psi
index 5bc3cd655184bd09bd12f9c7949218df328ef552..24c572381125c9108179c84c99f1c521c222e33c 100644 (file)
@@ -1,8 +1,8 @@
 
-extern int pipe(int fds[2]);
+// extern int pipe(int fildes[2]);
 
 function \pipe(array &$fds = null) : int {
        return to_int(pipe);
-       let fds = calloc(2, int);
-       set $fds = to_array(fds);
+       let fildes = calloc(2, psi\SIZEOF_INT);
+       set $fds = to_array(fildes[2]);
 }