package posix-uname

  1. Overview
  2. Docs
Bindings for posix uname

Install

Dune Dependency

Authors

Maintainers

Sources

v2.0.2.tar.gz
md5=03d384b20e46da8598a69942ef92b53e
sha512=6f5fa0fd5f3f0b845c2c9cd46a53e518dc5187f1ea7450fc04bbdc4c7b6fbcc427253e60847cc14f5bff895622e18aea404fbd8e14d4b50f52a7c0e682621ac8

doc/src/posix-uname.types/posix_uname_types.ml.html

Source file posix_uname_types.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Constants = Posix_uname_constants.Def (Posix_uname_generated_constants)
include Constants

module Def (S : Cstubs.Types.TYPE) = struct
  module Utsname = struct
    type t = unit

    let t = S.structure "utsname"
    let sysname = S.field t "sysname" (S.array sysname_len S.char)
    let nodename = S.field t "nodename" (S.array nodename_len S.char)
    let release = S.field t "release" (S.array release_len S.char)
    let version = S.field t "version" (S.array version_len S.char)
    let machine = S.field t "machine" (S.array machine_len S.char)
    let () = S.seal t
  end
end
OCaml

Innovation. Community. Security.