From: cgf AT cygnus DOT com (Christopher Faylor) Subject: RE: FIFO 21 May 1998 11:40:19 -0700 Message-ID: <199805211757.NAA28176.cygnus.cygwin32.developers@kramden.cygnus.com> To: cgf AT cygnus DOT com, cygwin32-developers AT cygnus DOT com, sos AT prospect DOT com DOT ru >Christopher Faylor wrote: >> >Is anybody working on FIFO implementation? >> >> How could you do this in Windows? A fifo lives on a filesystem, right? > >Yes. > >> I guess you could do something like add an option to 'mount' which >> identifies a file as a pipe which could be connected to. Hmm... > >No :-) FIFO file is a "system" file with a magic cookie and a predefined >size (sizeof(cookie)+sizeof(control datas)+sizeof(fifo buffer)). fstat() >call will distinguish between ordinary files and fifoes. Yes. I was just "thinking out loud" that you could recognize the fifo during the mount -> native filename translation. You wouldn't really mount the file, but you could use the mount info to recognize it and point to the correct handler. mkfifo() could set this up. cgf