projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
marshal: fix enum return value
[m6w6/ext-psi]
/
psi.d
/
stat.psi
diff --git
a/psi.d/stat.psi
b/psi.d/stat.psi
index 0b222250120dab30d2b2f791cb54689eefd6927e..dc89119624d37cc474ee60b3549d440ee74f1472 100644
(file)
--- a/
psi.d/stat.psi
+++ b/
psi.d/stat.psi
@@
-1,7
+1,7
@@
-extern int stat(char *path, struct stat *buf);
+
//
extern int stat(char *path, struct stat *buf);
function psi\stat(string $path, array &$buf = NULL) : int {
let path = strval($path);
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),
return to_int(stat);
set $buf = to_array(*buf,
to_int(st_dev),