package ceph

  1. Overview
  2. Docs
module C : sig ... end
module S : sig ... end
exception Error of string * int
exception Enoent of string * string option
val check : ?path:string -> string -> int -> unit
val check1 : string -> ('a -> int) -> 'a -> unit
val check2 : string -> ('a -> 'b -> int) -> 'a -> 'b -> unit
val check3 : string -> ('a -> string -> 'b -> int) -> 'a -> string -> 'b -> unit
type fd = int
val version : unit -> string * (int * int * int)
val version_string : unit -> string
val version_number : unit -> int * int * int
val create : ?id:string -> unit -> C.mount_info Ctypes.structure Ctypes_static.ptr
val mount : ?root:string -> C.mount_info Ctypes.structure Ctypes_static.ptr -> unit
val conf_read_file : ?path:string -> C.mount_info Ctypes.structure Ctypes_static.ptr -> unit
val conf_parse_env : ?var:string -> C.mount_info Ctypes.structure Ctypes_static.ptr -> unit
val chdir : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> unit
val mkdir : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> int -> unit
val mkdirs : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> int -> unit
val rmdir : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> unit
val conf_set : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> string -> unit
val rename : C.mount_info Ctypes.structure Ctypes_static.ptr -> from:string -> target:string -> unit
val chmod : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> int -> unit
val chown : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> uid:int -> gid:int -> unit
val lchown : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> uid:int -> gid:int -> unit
type file_type =
  1. | BLK
    (*

    This is a block device.

    *)
  2. | CHR
    (*

    This is a character device.

    *)
  3. | DIR
    (*

    This is a directory.

    *)
  4. | FIFO
    (*

    This is a named pipe (FIFO).

    *)
  5. | LNK
    (*

    This is a symbolic link.

    *)
  6. | REG
    (*

    This is a regular file.

    *)
  7. | SOCK
    (*

    This is a UNIX domain socket.

    *)
  8. | UNKNOWN
    (*

    The file type could not be determined.

    *)
type dirent = {
  1. inode : int64;
  2. typ : file_type;
  3. name : string;
}
module Dirent : sig ... end
type open_flag =
  1. | O_RDONLY
  2. | O_WRONLY
  3. | O_RDWR
  4. | O_CREAT
  5. | O_EXCL
  6. | O_TRUNC
  7. | O_DIRECTORY
  8. | O_NOFOLLOW
val int_of_open_flag : open_flag -> int Structs_generated.const
val int_of_open_flags : open_flag list -> int
val openfile : C.mount_info Ctypes.structure Ctypes_static.ptr -> string -> open_flag list -> int -> int
val fallocate : C.mount_info Ctypes.structure Ctypes_static.ptr -> int -> int64 -> int64 -> unit
val fsync : C.mount_info Ctypes.structure Ctypes_static.ptr -> int -> dataonly:bool -> unit
type statx = {
  1. stx_type : file_type;
  2. stx_size : int64;
  3. stx_mtime : int;
  4. stx_btime : int;
}
module Statx : sig ... end
OCaml

Innovation. Community. Security.