projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
PHP 8 compatibility
[m6w6/ext-psi]
/
tests
/
pipe
/
pipe.psi
diff --git
a/tests/pipe/pipe.psi
b/tests/pipe/pipe.psi
index c7b2e73347d1a9760c28261bb961bff5a52058f6..aab776d379bfe7884026d7ab386dd03e2d5f03a4 100644
(file)
--- a/
tests/pipe/pipe.psi
+++ b/
tests/pipe/pipe.psi
@@
-1,8
+1,9
@@
+#pragma lib "crypt"
-// extern int pipe(int fildes[2]);
+#include <unistd.h>
function \pipe(array &$fds = null) : int {
return pipe(fildes) as to_int(pipe);
function \pipe(array &$fds = null) : int {
return pipe(fildes) as to_int(pipe);
- let fildes = calloc(2,
psi\SIZEOF_INT
);
+ let fildes = calloc(2,
sizeof(int)
);
set $fds = to_array(*fildes, 2, to_int(*fildes));
}
set $fds = to_array(*fildes, 2, to_int(*fildes));
}