This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Patch to handle Win32 named pipes as file names
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 7 May 2004 10:12:54 +0200
- Subject: Re: Patch to handle Win32 named pipes as file names
- References: <BAY9-F7x9DBFoxhYaf70000ae59@hotmail.com>
- Reply-to: cygwin-patches at cygwin dot com
On May 6 13:45, Stephen Cleary wrote:
> It is a bit more complex than first appears. The problem is that some
> functions (e.g., SetFilePointer, GetFileInformationByHandle) have undefined
> behavior when used on pipes (or other special Win32 files). Further, there
> is no way to determine the type of HANDLE after the fact (GetFileType may
> work "well enough", but it may not be specific enough for future use).
Keep in mind that supporting Win32 devices untranslated is not our major
concern. We're fine with supporting them barely. As I said, as long
as open/read/write/close works, we're "done" (tm). Lseek and stat are
not exactly important.
> What do you think is the best way to go?
Actually I would rather see an fhandler which implements POSIX FIFOs.
It's not even important if it uses Win32 FIFOs or sockets or any other
underlying transport.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Co-Project Leader mailto:cygwin@cygwin.com
Red Hat, Inc.