parser: accept trailing comma in enums; __restrict for arrays
[m6w6/ext-psi] / psi.d / uname.psi
index b7aed9652e7e26dbad3f4201465017165166e236..e5144da51026da4715322410c71a76c1c4ee4ec1 100644 (file)
@@ -1,6 +1,8 @@
+#include <sys/utsname.h>
+
 function psi\uname(array &$u = NULL) : int {
        let name = calloc(1, psi\SIZEOF_STRUCT_UTSNAME);
-       return to_int(uname);
+       return uname(name) as to_int(uname);
        set $u = to_array(*name,
                to_string(sysname),
                to_string(nodename),