uwt

libuv bindings
IN THIS PACKAGE
Module type Uwt . Fs_functions
type uv_open_flag = Fs_types.uv_open_flag =
| O_RDONLY
| O_WRONLY
| O_RDWR
| O_NONBLOCK
| O_CREAT
| O_EXCL
| O_TRUNC
| O_APPEND
| O_NOCTTY
| O_DSYNC
| O_SYNC
| O_RSYNC
| O_TEMPORARY
| O_SHORT_LIVED
| O_SEQUENTIAL
| O_RANDOM
| O_DIRECT
| O_EXLOCK
| O_NOATIME
| O_NOFOLLOW
| O_DIRECTORY
type file_kind = Fs_types.file_kind =
| S_REG
| S_DIR
| S_CHR
| S_BLK
| S_LNK
| S_FIFO
| S_SOCK
| S_UNKNOWN
type access_permission = Fs_types.access_permission =
| Read
| Write
| Exec
| Exists
type stats = Fs_types.stats = {
st_dev : int;
st_kind : file_kind;
st_perm : int;
st_uid : int;
st_gid : int;
st_rdev : int;
st_ino : int;
st_size : int64;
st_blksize : int;
st_blocks : int;
st_flags : int;
st_gen : int;
st_atime : int64;
st_atime_nsec : int;
st_mtime : int64;
st_mtime_nsec : int;
st_ctime : int64;
st_ctime_nsec : int;
st_birthtime : int64;
st_birthtime_nsec : int;
}
type clone_mode =
| No_clone
| Try_clone
| Force_clone
type 'a t
val openfile : ?perm:int -> mode:uv_open_flag list -> string -> file t
val read : ?pos:int -> ?len:int -> file -> buf:bytes -> int t
val read_ba : ?pos:int -> ?len:int -> file -> buf:buf -> int t
val pread : ?pos:int -> ?len:int -> file -> fd_offset:int64 -> buf:bytes -> int t
val pread_ba : ?pos:int -> ?len:int -> file -> fd_offset:int64 -> buf:buf -> int t
val write : ?pos:int -> ?len:int -> file -> buf:bytes -> int t
val write_string : ?pos:int -> ?len:int -> file -> buf:string -> int t
val write_ba : ?pos:int -> ?len:int -> file -> buf:buf -> int t
val pwrite : ?pos:int -> ?len:int -> file -> fd_offset:int64 -> buf:bytes -> int t
val pwrite_string : ?pos:int -> ?len:int -> file -> fd_offset:int64 -> buf:string -> int t
val pwrite_ba : ?pos:int -> ?len:int -> file -> fd_offset:int64 -> buf:buf -> int t
val writev : file -> Iovec_write.t list -> int t
val pwritev : file -> Iovec_write.t list -> int64 -> int t
val close : file -> unit t
val mkdir : ?perm:int -> string -> unit t
val rmdir : string -> unit t
val fsync : file -> unit t
val fdatasync : file -> unit t
val ftruncate : file -> len:int64 -> unit t
val stat : string -> stats t
val lstat : string -> stats t
val fstat : file -> stats t
val rename : src:string -> dst:string -> unit t
val mkdtemp : string -> string t
val sendfile : ?pos:int64 -> ?len:nativeint -> dst:file -> src:file -> unit -> nativeint t
val utime : string -> access:float -> modif:float -> unit t
val futime : file -> access:float -> modif:float -> unit t
val access : string -> access_permission list -> unit t
val chmod : string -> perm:int -> unit t
val fchmod : file -> perm:int -> unit t
val chown : string -> uid:int -> gid:int -> unit t
val fchown : file -> uid:int -> gid:int -> unit t
val lchown : string -> uid:int -> gid:int -> unit t
val scandir : string -> (file_kind * string) array t
val realpath : string -> string t
val copyfile : ?excl:bool -> ?clone:clone_mode -> src:string -> dst:string -> unit -> unit t