package posix-uname

  1. Overview
  2. Docs
Bindings for posix uname

Install

Dune Dependency

Authors

Maintainers

Sources

v2.0.0.tar.gz
md5=2c186aa5161b72208a870d5710fb6208
sha512=d583c3d386865eab7575fc4f1976c17294bad2ee5037327cb5c3075965788170e652b7b9b9f660ef25f71558553fbcc47734b971e3c9f41627cc573d75d2fb54

doc/src/posix-uname.stubs/posix_uname_stubs.ml.html

Source file posix_uname_stubs.ml

1
2
3
4
5
6
7
8
9
10
open Ctypes

module Def (F : Cstubs.FOREIGN) = struct
  open F
  module Types = Posix_uname_types.Def (Posix_uname_generated_types)
  open Types

  let uname = foreign "uname" (ptr Utsname.t @-> returning int)
  let strlen = foreign "strlen" (ptr char @-> returning int)
end
OCaml

Innovation. Community. Security.