X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fstat.psi;h=dc89119624d37cc474ee60b3549d440ee74f1472;hp=82d624976162301b1687dd8d90c5183209aa4232;hb=0e6d6d0bdaf5cca59d04a8f4e9fcca8a65f341d8;hpb=b4508f6b917660970f887894a6aaed6c220a2c72 diff --git a/psi.d/stat.psi b/psi.d/stat.psi index 82d6249..dc89119 100644 --- a/psi.d/stat.psi +++ b/psi.d/stat.psi @@ -1,6 +1,7 @@ +// extern int stat(char *path, struct stat *buf); function psi\stat(string $path, array &$buf = NULL) : int { let path = strval($path); - let buf = calloc(1, struct stat); + let buf = calloc(1, psi\SIZEOF_STRUCT_STAT); return to_int(stat); set $buf = to_array(*buf, to_int(st_dev),