flush
[m6w6/ext-psi] / tests / pipe / pipe.psi
index deb11d01711243d2787992287971386175780034..6fc9e89aee5b2f64760aa7b9e1781f1d07026129 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);
 
 function \pipe(array &$fds = null) : int {
        return to_int(pipe);
-       let fds = calloc(2, int);
-       set $fds = to_array(fds[2]);
+       let fildes = calloc(2, psi\SIZEOF_INT);
+       set $fds = to_array(fildes[2]);
 }
 }