flush
[m6w6/ext-psi] / psi.d / uname.psi
1 function psi\uname(array &$u = NULL) : int {
2 let name = calloc(1, psi\SIZEOF_STRUCT_UTSNAME);
3 return to_int(uname);
4 set $u = to_array(*name,
5 to_string(sysname),
6 to_string(nodename),
7 to_string(release),
8 to_string(version),
9 to_string(machine),
10 to_string(domainname));
11 }