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 Message-ID: <014c01c1af04$47343ba0$0100a8c0@advent02> From: "Chris January" To: References: <032a01c1af00$bde8dca0$a7eb0544 AT CX535256D> Subject: /proc (was: Re: /dev/registry) Date: Wed, 6 Feb 2002 11:49:03 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > 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/