Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Corinna Vinschen
On Mar 2 21:59, Christian Franke wrote: > Corinna Vinschen wrote: > >... > > > >> //printf("key `%s' value `%s'\n", n, value); > >> > > > >Why is this printf commented out? If it's not needed, please remove. > > > > cvs annotate regtool.cc > ... > 1.1 (cgf 17-Feb-00): } > 1.1

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
On 03 March 2006 09:46, Corinna Vinschen wrote: > > Btw., since you seem to be interested in hacking the registry... would > you also be interested to introduce registry write access below > /proc/registry inside of the Cygwin DLL? That would be extra cool. > I'm not quite sure how to handle th

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Corinna Vinschen
On Mar 3 13:12, Dave Korn wrote: > On 03 March 2006 09:46, Corinna Vinschen wrote: > > > > > Btw., since you seem to be interested in hacking the registry... would > > you also be interested to introduce registry write access below > > /proc/registry inside of the Cygwin DLL? That would be ext

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
> That's actually an interesting idea. I was always thinking along > the lines of using POSIX file types (plain,socket,pipe,...). > > However, file suffixes is something we're already suffering from > a lot (it's not by chance that SUFFix and SUFFer are so similar, IMHO). Heh, yeh, who could

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Igor Peshansky
On Fri, 3 Mar 2006, Corinna Vinschen wrote: > Btw., since you seem to be interested in hacking the registry... would > you also be interested to introduce registry write access below > /proc/registry inside of the Cygwin DLL? That would be extra cool. > I'm not quite sure how to handle the mappi

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Igor Peshansky
On Fri, 3 Mar 2006, Dave Korn wrote: > > That's actually an interesting idea. I was always thinking along > > the lines of using POSIX file types (plain,socket,pipe,...). > > > > What if a key "foo.sz" really exists and somebody wants to create > > a registry key "foo"? > > No problem. If you

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
> Now, what if you write a file as foo.sz, and then write it as foo.dw. Do > we change the key type? Absolutely. > Do we fail with ENOENT? What is the semantics there? Well, the semantics of the registry API is that you specify the type explicitly every time you set a value, and that do

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
On 03 March 2006 16:02, Igor Peshansky wrote: >> I'm not quite sure how to handle the mapping from file types to >> registry key types, but there might be some simple way which I'm just >> too blind to see. > > Hmm, there is currently no way for the programs to find out the registry > key type,

Re: Patch for silent crash with Cygwin1.dll v 1.5.19-4

2006-03-03 Thread Gary Zablackis
--- Christopher Faylor <[EMAIL PROTECTED]> wrote: > The "efault.faulted()" two lines above your change > is supposed to catch > NULL dereferences. I suspect that you were probably > misled by the fact > that gdb might show a SEGV in this function but that > is to be expected > (see lots of discus

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Yitzchak Scott-Thoennes
On Fri, Mar 03, 2006 at 01:12:01PM -, Dave Korn wrote: > On 03 March 2006 09:46, Corinna Vinschen wrote: > > > > > Btw., since you seem to be interested in hacking the registry... would > > you also be interested to introduce registry write access below > > /proc/registry inside of the Cygwi

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
On 03 March 2006 17:42, Yitzchak Scott-Thoennes wrote: >> Hey, how about using pseudo filename-extensions on the pseudo-files that >> represent registry keys? > > As long as we are how-bouting, I'm looking at > > http://search.cpan.org/~tyemq/Win32-TieRegistry-0.24/TieRegistry.pm > > as anoth

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Christian Franke
Corinna Vinschen wrote: I applied the patch. Thanks. I just had to reformat your ChangeLog slightly (a TAB before all lines, no extra indentation for lines which don't start with a '*'). SeaMonkey expands tabs to spaces... Will use attachment for ChangeLog next time. Btw., since you se

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Igor Peshansky
On Fri, 3 Mar 2006, Dave Korn wrote: > On 03 March 2006 16:02, Igor Peshansky wrote: > > >> I'm not quite sure how to handle the mapping from file types to > >> registry key types, but there might be some simple way which I'm just > >> too blind to see. > > > > Hmm, there is currently no way for t

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Igor Peshansky
On Fri, 3 Mar 2006, Christian Franke wrote: > In fact I had the idea to hack the registry, in particular fix the read > access to registry values starting with backslash: > > $ cd /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/MountedDevices > $ ls > ... > \DosDevices\C: > \DosDevices\D: > ... > $ cat \

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Christian Franke
Igor Peshansky wrote: What's wrong with using open() flags? Save/restore registry tree in/from file tree wont work. Suggest to start a new thread for this discussion Right, good idea, except not on this list (as Dave pointed out). What would be a good place -- cygwin-developers