delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/11/14:01:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.2.0.9.2.20021211103123.00ff7d18@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Wed, 11 Dec 2002 10:35:08 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: Looking for named pipe solution in cygwin
In-Reply-To: <002501c2a142$1d17d5d0$5388883e@pomello>
References: <3E2D8043936AD611AF7D00508B5E9F4B28D4FA AT server3 DOT mobilecom DOT com>
Mime-Version: 1.0

Max, Cary,

One nit. See below.


At 10:21 2002-12-11, Max Bowsher wrote:
>Cary Lewis <clewis AT mobilecom DOT com> wrote:
>
> > I have an existing unix application that makes extensive use of named 
> pipes:
> >
> > mknod pipe p
> >
> > and shell scripts and 'C' programs that read and write pipes.
> > Messages must be read in order that they were written to pipe. As
> > well many processes must be able to write to a pipe and not have
> > their messages intermingled.
> >
> > Does anyone have a solution for this for cygwin?
>
>Unix named pipes / FIFOs haven't been implemented for Cygwin. No one has 
>got around to it.
>
> > Any help would be appreciated.
> >
> > NOTE: The pipes don't have to be named (I can handle that separately).
>
>I don't believe there is any way to have multiple processes write to an 
>anonymous pipe.

They can if they have a process inheritance relationship whereby a 
descriptor to the pipe (or socket or plain file) was inherited.


> > BTW the other posix emulators like Interix now SFU and MKS support
> > these kinds of pipes, so it should be easy right?
>
>As I said above, no one has gotten round to it.
>
> > How does the /dev/ttyX file work.
>
>Cygwin notices access to certain 'files' and does clever things with them. 
>For more detail: "Use the source, Luke!".
>
> > In a bash window I can echo hello
> >> /dev/tty or /dev/ttyM, where M is my tty, and I get hello on my screen,
> >> but  I can't echo hello >/dev/ttyN where N is another terminal, I get
> > /dev/ttyN invalid argument.
>
>Strange - works for me.
>
>Max.


Randall Schulz
Mountain View, CA USA 


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019