Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Ralf Habacker" To: "cygwin" Subject: RE: /proc (was: Re: /dev/registry) Date: Wed, 6 Feb 2002 13:22:09 +0100 Message-ID: <000a01c1af08$e61cf0a0$01000001@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <014c01c1af04$47343ba0$0100a8c0@advent02> > > > 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/