You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
520 B
Plaintext
37 lines
520 B
Plaintext
package systeminfo
|
|
|
|
import c "core:c/libc"
|
|
|
|
Sys_statvfs :: struct {
|
|
f_bsize: c.ulong,
|
|
f_frsize: c.ulong,
|
|
f_blocks: c.ulong,
|
|
f_bfree: c.ulong,
|
|
f_bavail: c.ulong,
|
|
|
|
f_files: c.ulong,
|
|
f_ffree: c.ulong,
|
|
f_favail: c.ulong,
|
|
|
|
f_fsid: c.ulong,
|
|
f_flag: c.ulong,
|
|
f_namemax: c.ulong,
|
|
|
|
__f_spare: [6]c.int
|
|
}
|
|
|
|
Partition :: struct {
|
|
major: int,
|
|
minor: int,
|
|
blocks: f64,
|
|
name: string
|
|
}
|
|
|
|
Process :: struct {
|
|
name: string,
|
|
command: string,
|
|
pid: int,
|
|
cpu_usage: int,
|
|
memory_usage: int,
|
|
}
|