Re: /proc (was: Re: /dev/registry)
Is the source code for this functionality accessible for download somewhere ? Chris January wrote: 1. it's difficult to accidentally cat to a key considering the length of the names - /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/S hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a bit hard to type in by accident... At the moment, I have called the default key value, (default), the same as regedit. Does anyone have any objections to this (and if so a better suggestion)? The brackets can't be typed into bash without being quoted; this might become a bit of a pain. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
/proc (was: Re: /dev/registry)
Why can't this /dev/registry stuff be just an ioctl()? Open the /dev/registry node for the appropriate access, then use some ioctl()'s to read and write it. Put the /dev/null entry points for the read and write handlers for /dev/registry and you won't have that accidental corruption from cat. By the way, if you're using Cygwin, why can't you just call RegQueryValueExW and friends yourself? You're a Win32 process anyway, and no UNIX has such a thing - don't care about portability. 1. it's difficult to accidentally cat to a key considering the length of the names - /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/S hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a bit hard to type in by accident... 2. it makes scripting easier 3. ** adding /proc/registry means adding /proc and once a /proc virtual fs is established, other /proc entries can be added a lot more easily 4. it gives you an alternative to regedit and friends I almost have a read-only version of this working. I don't see why their should be objections to this since you can't screw your registry up in any way. I'll think about how to add write capabilities later. I'll probably add some entries to /proc - ones commonly found on UNIX platforms maybe. Anyone have any favourites they wish to see? Regards Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: /proc (was: Re: /dev/registry)
Why can't this /dev/registry stuff be just an ioctl()? Open the /dev/registry node for the appropriate access, then use some ioctl()'s to read and write it. Put the /dev/null entry points for the read and write handlers for /dev/registry and you won't have that accidental corruption from cat. By the way, if you're using Cygwin, why can't you just call RegQueryValueExW and friends yourself? You're a Win32 process anyway, and no UNIX has such a thing - don't care about portability. 1. it's difficult to accidentally cat to a key considering the length of the names - /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/S hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a bit hard to type in by accident... 2. it makes scripting easier 3. ** adding /proc/registry means adding /proc and once a /proc virtual fs is established, other /proc entries can be added a lot more easily This seems good to me :-) 4. it gives you an alternative to regedit and friends I almost have a read-only version of this working. I don't see why their should be objections to this since you can't screw your registry up in any way. I'll think about how to add write capabilities later. I'll probably add some entries to /proc - ones commonly found on UNIX platforms maybe. Anyone have any favourites they wish to see? Regards Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: /proc (was: Re: /dev/registry)
Chris January wrote: I'll probably add some entries to /proc - ones commonly found on UNIX platforms maybe. Anyone have any favourites they wish to see? I don't know about favorite, but the only one that's even close to standardized across Unices is /proc/pid. And even that is nonstandard everywhere: it's a bunch of text files on Linux, and a bunch of binary files by different names under recent SysVR4. (Or SVR5, as Caldera nee SCO insists on calling it.) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: /proc (was: Re: /dev/registry)
1. it's difficult to accidentally cat to a key considering the length of the names - /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/S hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a bit hard to type in by accident... At the moment, I have called the default key value, (default), the same as regedit. Does anyone have any objections to this (and if so a better suggestion)? The brackets can't be typed into bash without being quoted; this might become a bit of a pain. Regards Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: /proc (was: Re: /dev/registry)
Another suggestion (I won't presume to say better): .reg files refer to this value as @. E.g. REGEDIT4 [HKEY_CURRENT_USER\AppEvents\Schemes] @=.current stephan(); -Original Message- From: Chris January [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 4:56 PM To: [EMAIL PROTECTED] Subject: Re: /proc (was: Re: /dev/registry) 1. it's difficult to accidentally cat to a key considering the length of the names - /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersi on/S hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a bit hard to type in by accident... At the moment, I have called the default key value, (default), the same as regedit. Does anyone have any objections to this (and if so a better suggestion)? The brackets can't be typed into bash without being quoted; this might become a bit of a pain. Regards Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: /proc (was: Re: /dev/registry)
Just another log on the fire, the Perl registry modules use for the (default) value. Even so, I'd lean toward @ since it's hard to name a file . You may need to have an ioctl() to change the key separator. '\' would probably be ok, but difficult. The problem with '/' might make it hard to handle the cygwin mount tables. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. - Original Message - From: Stephan Mueller [EMAIL PROTECTED] To: Chris January [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 17:00 Subject: RE: /proc (was: Re: /dev/registry) Another suggestion (I won't presume to say better): .reg files refer to this value as @. E.g. REGEDIT4 [HKEY_CURRENT_USER\AppEvents\Schemes] @=.current stephan(); -Original Message- From: Chris January [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 4:56 PM To: [EMAIL PROTECTED] Subject: Re: /proc (was: Re: /dev/registry) 1. it's difficult to accidentally cat to a key considering the length of the names - /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersi on/S hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a bit hard to type in by accident... At the moment, I have called the default key value, (default), the same as regedit. Does anyone have any objections to this (and if so a better suggestion)? The brackets can't be typed into bash without being quoted; this might become a bit of a pain. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/