X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=psi.d%2Funame.psi;h=404399cfdf458ccb014d6ea4072d47ac9119dd29;hb=a0f437f26cd0f121ee911a55327a68a3544bf15f;hp=b7aed9652e7e26dbad3f4201465017165166e236;hpb=cfebc76ed7426836f21296cca9a14b422bfa04cf;p=m6w6%2Fext-psi diff --git a/psi.d/uname.psi b/psi.d/uname.psi index b7aed96..404399c 100644 --- a/psi.d/uname.psi +++ b/psi.d/uname.psi @@ -1,6 +1,8 @@ +#include + function psi\uname(array &$u = NULL) : int { - let name = calloc(1, psi\SIZEOF_STRUCT_UTSNAME); - return to_int(uname); + let name = calloc(1, sizeof(struct utsname)); + return uname(name) as to_int(uname); set $u = to_array(*name, to_string(sysname), to_string(nodename),