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/