Displaying 7 results from an estimated 7 matches for "chan_out".
Did you mean:
chan_oss
2017 Mar 13
0
[PATCH 1/2] v2v: -i ova: Hoist utility functions to the top of the file.
...s in
+ files @ loop (rest @ dirs)
+ in
+ loop [dir]
+
+(* Uncompress the first few bytes of [file] and return it as
+ * [(bytes, len)]. [zcat] is the command to use (eg. zcat or xzcat).
+ *)
+let uncompress_head zcat file =
+ let cmd = sprintf "%s %s" zcat (quote file) in
+ let chan_out, chan_in, chan_err = Unix.open_process_full cmd [||] in
+ let b = Bytes.create 512 in
+ let len = input chan_out b 0 (Bytes.length b) in
+ (* We're expecting the subprocess to fail because we close
+ * the pipe early, so:
+ *)
+ ignore (Unix.close_process_full (chan_out, chan_in, chan_e...
2019 Aug 13
0
[PATCH 3/3] generator: improve pod2text invocation
...->
- sprintf "pod2text -w %d %s" width (Filename.quote filename)
+ sprintf "pod2text -w %d" width
| None ->
- sprintf "pod2text %s" (Filename.quote filename) in
- let chan = open_process_in cmd in
+ "pod2text" in
+ let chan_out, chan_in = open_process cmd in
+ output_string chan_in "=encoding utf8\n\n";
+ output_string chan_in (sprintf "=head1 %s\n\n%s\n" name longdesc);
+ close_out chan_in;
let lines = ref [] in
- let rec loop i =
- let line = input_line chan in
- if i = 1 && disc...
2017 May 08
3
[PATCH 0/3] v2v: -i ova: Prefer pigz or pxz for uncompressing OVA
https://bugzilla.redhat.com/show_bug.cgi?id=1448739
2017 Mar 13
4
[PATCH 0/2] v2v: -i ova: A couple of cleanup patches.
A couple of patches cleaning up the -i ova code. These are
both just refactoring (or should be at any rate).
The second patch is best viewed with 'git show -w' to exclude
whitespace changes.
Rich.
2016 Jun 15
3
[PATCH 2/3] Convert source so it can be compiled with OCaml '-safe-string' option.
OCaml 4.02 introduced the 'bytes' type, a mutable string intended to
replace the existing 'string' type for those cases where the byte
array can be mutated. In future the 'string' type will become
immutable. This is not the default now, but it can be forced using
the '-safe-string' compile option.
I tested this on Fedora 24 (OCaml 4.02) & RHEL 7 (OCaml 4.01).
2019 Aug 13
5
[PATCH 0/3] generator: pod2text-related improvements
- refactor memoization code
- pass pod as stdin rather than files
Pino Toscano (3):
generator: isolate memoized cache in own module
generator: adjust variable names
generator: improve pod2text invocation
generator/Makefile.am | 3 ++
generator/memoized_cache.ml | 62 +++++++++++++++++++++
generator/memoized_cache.mli | 29 ++++++++++
generator/utils.ml | 101
2018 Apr 25
9
[PATCH v2 0/9] v2v: -i ova: Handle OVAs containing snapshots.
https://bugzilla.redhat.com/show_bug.cgi?id=1570407
This turned into quite an in-depth refactoring of how we handle OVAs.
It also fixes a potential security issue.
Rich.