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


Stephen,

On May  4 22:36, Stephen Cleary wrote:
> Attached is a patch, ChangeLog, and one new file that allows Cygwin 
> programs to open Win32 named pipe instances (e.g., "\\.\pipe\pipename") 
> through an open() call. The resulting handle will appear like a FIFO to the 
> calling program.

while I really appreciate the effort, that's not what we expect from
an fhandler to do.  Cygwin is a POSIX layer.  An fhandler should at
least try to come up with a POSIX-like translation of a Windows
capability, in this case, converting Windows named pipes into POSIX
FIFOs on the API level.  What your code is doing is just allowing to
use Windows named pipes untranslated and treating them as FIFOs in
stat().

The ability to open/read/write/close WIndows named pipes should already
be available without much of a code change.  Paths like //./pipe/foo
should go through untranslated, just treated like normal files.  If that
doesn't work, feel free to fix the code snippets which accidentally disallow
that.

However, if you want to contribute code to Cygwin, we need a copyright
assignment from you, filled out and snail mailed to Red Hat.  Please
see http://cygwin.com/contrib.html for details.


I hope that's not too discouraging,
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]