X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=tests%2Fstat%2Fstat.psi;fp=tests%2Fstat%2Fstat.psi;h=001756585ef782201567ed6e231b8b2ccd338b87;hp=0000000000000000000000000000000000000000;hb=7e4c03791c729bce5ebe6226a72786191bc67f8f;hpb=207ff7bc85e967235f0ad1ffbf47c0f85f375063 diff --git a/tests/stat/stat.psi b/tests/stat/stat.psi new file mode 100644 index 0000000..0017565 --- /dev/null +++ b/tests/stat/stat.psi @@ -0,0 +1,8 @@ +extern int __xstat64(int ver, char *path, struct stat *buf); +function psi\stat(string $path, array &$buf = NULL) : int { + let ver = NULL; + let path = strval($path); + let buf = calloc(1, struct stat); + return to_int(__xstat64); + set $buf = to_array(*buf); +}