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: <032a01c1af00$bde8dca0$a7eb0544@CX535256D> From: "Barubary" To: References: Subject: Re: /dev/registry Date: Wed, 6 Feb 2002 03:23:45 -0800 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. -- Barubary -- 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/