package hack_parallel
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=4ebcdd0c0b23735228d13bbf401799174771a747a5aeb4f35b64dcfc68079e29
md5=26aff6c969020c1d2f588c574dc7d08a
doc/hack_parallel.utils/Sys_utils/index.html
Module Sys_utils
* Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *
val open_in_no_fail : string -> in_channel
val open_in_bin_no_fail : string -> in_channel
val close_in_no_fail : string -> in_channel -> unit
val open_out_no_fail : string -> out_channel
val open_out_bin_no_fail : string -> out_channel
val close_out_no_fail : string -> out_channel -> unit
val nl_regexp : Str.regexp
Returns true if substring occurs somewhere inside str.
Deletes the file given by "path". If it is a directory, recursively * deletes all its contents then removes the directory itself.
val logname_ref : string option ref
val read_all : ?buf_size:int -> in_channel -> string
* Like Python's os.path.expanduser, though probably doesn't cover some cases. * Roughly follow's bash's tilde expansion: * http://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html * * ~/foo -> /home/bob/foo if $HOME = "/home/bob" * ~joe/foo -> /home/joe/foo if joe's home is /home/joe
val lines_of_in_channel : in_channel -> string list
val set_signal : int -> Sys.signal_behavior -> unit
val signal : int -> Sys.signal_behavior -> unit