package posix-uname

  1. Overview
  2. Docs
Bindings for posix uname

Install

Dune Dependency

Authors

Maintainers

Sources

v2.1.0.tar.gz
md5=0c6a8cd7b7f5e163160abb8a62f75a5b
sha512=735c6afd48e36af0a032f51217e7558629a198fd39a0484883831bdbff511b331033696b8ad73c6896fa9df0a0b1fd2f27336c2b0b7447dd10902e6bc64e4886

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.