This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to handle Win32 named pipes as file names


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]