X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Funame.psi;h=b7aed9652e7e26dbad3f4201465017165166e236;hp=25abfcbbf48709f85b809e5de4fe945f9f39487f;hb=c9b3436bd51a4dcf7d6cc6817d4c7a8ad99538d4;hpb=6bdeeb7b332a272617814a4358d51bb07c872407 diff --git a/psi.d/uname.psi b/psi.d/uname.psi index 25abfcb..b7aed96 100644 --- a/psi.d/uname.psi +++ b/psi.d/uname.psi @@ -1,12 +1,11 @@ -extern int uname(struct utsname *u); function psi\uname(array &$u = NULL) : int { - let u = calloc(1, struct utsname); + let name = calloc(1, psi\SIZEOF_STRUCT_UTSNAME); return to_int(uname); - set $u = to_array(*u, + set $u = to_array(*name, to_string(sysname), to_string(nodename), to_string(release), to_string(version), to_string(machine), to_string(domainname)); -} \ No newline at end of file +}