Source file system_info.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
type t = {
sysname : string;
release : string;
version : string;
machine : string;
}
external get : unit -> t = "eio_unix_uname"
let dump =
Fmt.Dump.(record [
field "sysname" (fun t -> t.sysname) string;
field "release" (fun t -> t.release) string;
field "version" (fun t -> t.version) string;
field "machine" (fun t -> t.machine) string;
])