search for: set_fil

Displaying 20 results from an estimated 20 matches for "set_fil".

Did you mean: set_file
2004 Sep 18
3
[LLVMdev] Files to lib/System/Win32
...still has a lot of code in common with Unix. This code should be pulled out into a common file. Second, some of the functions leave me scratching me head. What purpose does create_file serve? Is there really a need to create empty files? (It also leaks an open file handle, BTW). I would expect set_file to alter only the file name portion of the path and leave the directory portion unchanged, and the opposite for set_directory. set_directory obliterates the file name portion of the path (OK, I guess) but set_file doesn't make any sense at all. -------------- next part -------------- A non-te...
2015 Sep 01
3
[PATCH 1/3] get-kernel: split command line handling in own function
...fix = - let domain = ref None in - let file = ref None in - let libvirturi = ref "" in - let format = ref "" in - let output = ref "" in - let machine_readable = ref false in - let unversioned = ref false in - let prefix = ref None in - - let set_file arg = - if !file <> None then - error (f_"--add option can only be given once"); - let uri = - try URI.parse_uri arg - with Invalid_argument "URI.parse_uri" -> - error (f_"error parsing URI '%s'. Look for error messa...
2004 Sep 17
0
[LLVMdev] Files to lib/System/Win32
Jeff, Your patch has been committed. Thanks! Reid. Jeff Cohen wrote: > Alas, you missed a serious bug in that same function. Patch attached to > fix it and improve some comments. No more late night coding for me :) > > That leaves Path.cpp. Once that's done I can actually try and execute > this stuff. > > > On Thu, 16 Sep 2004 08:55:28 -0700 > Reid Spencer
2004 Sep 17
2
[LLVMdev] Files to lib/System/Win32
Alas, you missed a serious bug in that same function. Patch attached to fix it and improve some comments. No more late night coding for me :) That leaves Path.cpp. Once that's done I can actually try and execute this stuff. On Thu, 16 Sep 2004 08:55:28 -0700 Reid Spencer <reid at x10sys.com> wrote: > This version has been committed to CVS with one minor change: > I made the
2004 Sep 18
0
[LLVMdev] Files to lib/System/Win32
...n common with Unix. > This code should be pulled out into a common file. > > Second, some of the functions leave me scratching me head. What purpose > does create_file serve? Is there really a need to create empty files? > (It also leaks an open file handle, BTW). I would expect set_file to > alter only the file name portion of the path and leave the directory > portion unchanged, and the opposite for set_directory. set_directory > obliterates the file name portion of the path (OK, I guess) but set_file > doesn't make any sense at all. > > _________________...
2020 Feb 17
1
[PATCH] virt-get-kernel: add '--blocksize' option support
...() = + let blocksize = ref 0 in let domain = ref None in let file = ref None in let libvirturi = ref "" in @@ -52,14 +53,14 @@ let parse_cmdline () = prefix := Some p in let argspec = [ - [ S 'a'; L"add" ], Getopt.String (s_"file", set_file), s_"Add disk image file"; - [ S 'c'; L"connect" ], Getopt.Set_string (s_"uri", libvirturi), s_"Set libvirt URI"; - [ S 'd'; L"domain" ], Getopt.String (s_"domain", set_domain), s_"Set...
2015 Jun 11
2
[PATCH] (Almost) new tool: virt-get-kernel
...+open Printf + +(* Main program. *) +let main () = + let add, output = + let domain = ref None in + let file = ref None in + let libvirturi = ref "" in + let format = ref "" in + let output = ref "" in + let machine_readable = ref false in + + let set_file arg = + if !file <> None then + error (f_"--add option can only be given once"); + let uri = + try URI.parse_uri arg + with Invalid_argument "URI.parse_uri" -> + error (f_"error parsing URI '%s'. Look for error messa...
2012 Aug 16
5
[PATCH 0/4] Add customization capabilities to virt-sysprep
In the TODO file there's a discussion of perhaps writing a new 'virt-customize' tool. I think it's probably better (or at any rate, easier) to just add this functionality into virt-sysprep. That is what this small series of patches aims to achieve. Note these are not very well tested at the moment. The first patch adds a generic and useful '--firstboot' flag. The
2012 Apr 24
0
help with GUI interface
...{ out <- data.frame(nova="") } return(out) } dlg$model_value_changed <- function(.) { fname <- .$get_file() if(file.exists(fname)) { for(i in c("txt","csv")) { if(grepl(paste("\\.",i,sep=""), fname)) .$set_file.type(c(txt="table",csv="csv")[i]) } } switch(.$get_file.type(), "csv"={.$set_sep(","); .$set_quote('\"')}, "table"={}, {} ) .$set_output(.$do_call("read_file",.$to_R())) } dlg$OK_ha...
2015 Jun 12
0
[PATCH 2/3] get-kernel: add --unversioned-names
...= + let add, output, unversioned = let domain = ref None in let file = ref None in let libvirturi = ref "" in let format = ref "" in let output = ref "" in let machine_readable = ref false in + let unversioned = ref false in let set_file arg = if !file <> None then @@ -60,6 +61,8 @@ let main () = "--machine-readable", Arg.Set machine_readable, " " ^ s_"Make output machine readable"; "-o", Arg.Set_string output, s_"directory" ^ " " ^ s_&qu...
2015 Jun 12
1
[PATCH 3/3] get-kernel: add --prefix
...d, prefix = let domain = ref None in let file = ref None in let libvirturi = ref "" in @@ -33,6 +33,7 @@ let main () = let output = ref "" in let machine_readable = ref false in let unversioned = ref false in + let prefix = ref None in let set_file arg = if !file <> None then @@ -45,7 +46,11 @@ let main () = and set_domain dom = if !domain <> None then error (f_"--domain option can only be given once"); - domain := Some dom in + domain := Some dom + and set_prefix p = + if !...
2015 Aug 31
2
[PATCH 1/2] mllib: add and use set_standard_options
..._kernel.ml index 58193ab..8ca7ca0 100644 --- a/get-kernel/get_kernel.ml +++ b/get-kernel/get_kernel.ml @@ -53,7 +53,7 @@ let main () = prefix := Some p in let ditto = " -\"-" in - let argspec = Arg.align [ + let argspec = [ "-a", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; "--add", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; "-c", Arg.Set_string libvirturi, s_"uri" ^ " "...
2016 Jun 27
0
Re: [PATCH] RFC: OCaml tools: add and use a Getopt module
...b/get-kernel/get_kernel.ml > @@ -50,24 +50,18 @@ let parse_cmdline () = > error (f_"--prefix option can only be given once"); > prefix := Some p in > > - let ditto = " -\"-" in > let argspec = [ > - "-a", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; > - "--add", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; > - "-c", Arg.Set_string libvirturi, s_"uri" ^ "...
2016 Jul 18
0
[PATCH v2 2/3] mllib: Use L"..." and S '...' for long and short options.
...ernel.ml @@ -18,6 +18,7 @@ open Common_gettext.Gettext open Common_utils +open Getopt.OptionName module G = Guestfs @@ -51,15 +52,15 @@ let parse_cmdline () = prefix := Some p in let argspec = [ - [ "-a"; "--add" ], Getopt.String (s_"file", set_file), s_"Add disk image file"; - [ "-c"; "--connect" ], Getopt.Set_string (s_"uri", libvirturi), s_"Set libvirt URI"; - [ "-d"; "--domain" ], Getopt.String (s_"domain", set_domain), s_"...
2016 Jun 24
2
[PATCH] RFC: OCaml tools: add and use a Getopt module
...--- a/get-kernel/get_kernel.ml +++ b/get-kernel/get_kernel.ml @@ -50,24 +50,18 @@ let parse_cmdline () = error (f_"--prefix option can only be given once"); prefix := Some p in - let ditto = " -\"-" in let argspec = [ - "-a", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; - "--add", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; - "-c", Arg.Set_string libvirturi, s_"uri" ^ " " ^ s...
2016 Jul 11
2
[PATCH v2] OCaml tools: add and use a Getopt module
...--- a/get-kernel/get_kernel.ml +++ b/get-kernel/get_kernel.ml @@ -50,24 +50,18 @@ let parse_cmdline () = error (f_"--prefix option can only be given once"); prefix := Some p in - let ditto = " -\"-" in let argspec = [ - "-a", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; - "--add", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; - "-c", Arg.Set_string libvirturi, s_"uri" ^ " " ^ s...
2016 Jul 13
3
[PATCH v3 1/2] OCaml tools: add and use a Getopt module
...--- a/get-kernel/get_kernel.ml +++ b/get-kernel/get_kernel.ml @@ -50,24 +50,17 @@ let parse_cmdline () = error (f_"--prefix option can only be given once"); prefix := Some p in - let ditto = " -\"-" in let argspec = [ - "-a", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; - "--add", Arg.String set_file, s_"file" ^ " " ^ s_"Add disk image file"; - "-c", Arg.Set_string libvirturi, s_"uri" ^ " " ^ s...
2016 Jul 18
4
[PATCH v2 0/3] mllib: Various fixes and changes to Getopt module.
v1 -> v2: - Further fixes to Getopt int parsing. - Completed the L/S changes. - Fixed the test suite so it passes now. Also we don't need the special-case tests for 64 bit arch. Rich.
2016 Jul 18
3
[PATCH v4 0/2] mllib: Various fixes and changes to Getopt module.
v3 -> v4: - Pushed the first patch upstream since it was ACKed. - Prevent use of M except for the special virt-v2v options. - Sort the options after added --help etc. - Make corresponding fixes to the tests. Rich.
2016 Jul 18
4
[PATCH v3 0/3] mllib: Various fixes and changes to Getopt module.
v2 -> v3: - Add M variant and test it. Rich.