package b0

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module B0_std.OsSource

Operating system interaction.

File system

Sourcemodule Path : sig ... end

File system path operations.

Sourcemodule File : sig ... end

Regular file operations.

Sourcemodule Dir : sig ... end

Directory operations.

File descriptors and sockets

Sourcemodule Fd : sig ... end

File descriptors operations.

Sourcemodule Socket : sig ... end

Socket operations.

Processes

Sourcemodule Env : sig ... end

Environment variables.

Sourcemodule Cmd : sig ... end

Executing commands.

Sourcemodule Exit : sig ... end

Program exit.

Sleeping and timing

sleep dur sleeps for duration dur and returns the duration slept. The latter may be smaller than dur if the call was interrupted by a signal. This becomes imprecise if dur is greater than ~104 days.

Sourceval relax : unit -> unit

relax sleeps for a very small duration. Can be used for relaxed busy waiting.

Sourcemodule Cpu : sig ... end

CPU time and information.

Sourcemodule Mtime : sig ... end

Monotonic time clock and sleep.

Sourceval exn_don't_catch : exn -> bool

exn_don't_cath exn is true iff exn is Stack_overflow, Out_of_memory or Sys.Break.

FIXME find a place for that.