USING: accessors alien.c-types alien.syntax byte-arrays io
io.encodings.string io.encodings.utf8 io.streams.byte-array
libc kernel sequences splitting strings system system-info unix
-unix.linux.proc math ;
+unix.linux.proc math unix.users ;
IN: system-info.linux
FUNCTION-ALIAS: (uname)
: hyperthreads ( -- n ) parse-proc-cpuinfo sort-cpus cpu-counts 2nip ;
M: linux cpu-mhz parse-proc-cpuinfo first cpu-mhz>> 1,000,000 * ;
M: linux physical-mem parse-proc-meminfo mem-total>> ;
-M: linux computer-name nodename ;
\ No newline at end of file
+M: linux computer-name nodename ;
+M: linux username real-user-name ;