public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: bidirectional named pipe?
Date: 8 Feb 2001 15:10:08 -0800	[thread overview]
Message-ID: <95v90g$ke6$1@cesium.transmeta.com> (raw)
In-Reply-To: <E14OxTz-0007yS-00@the-village.bc.nu> <3A81D5B4.9CBC9B0D@kasey.umkc.edu>

Followup to:  <3A81D5B4.9CBC9B0D@kasey.umkc.edu>
By author:    "David L. Nicol" <david@kasey.umkc.edu>
In newsgroup: linux.dev.kernel
> 
> How hard would it be to add? The limitation on fifos that you get the same
> one every time you open it makes some things tricky -- the server has to
> move the fifo and mkfifo a new one to replace its data with something else,
> for instance, which is not atomic.
> 
> I don't understand, in the original problem, how the server opens
> the named bipipe differently from the servers, to be on one end rather than
> the other.
> 
> A way to map a file name to a socket pair would be nice, the first to open
> it could get one end of it and everyone else would get the other end, or there
> would be a switch.
> 
> You could patch the file system code, I wonder how deep the changes would have
> to be, if you did it in terms of lots of fifos.
> 

I would really like it if open() on a socket would be the same thing
to connect to a socket as a client.  I don't think it's a good idea to
do that for the server side, though, since it would have to know about
accept() anyway.

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-02-08 23:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-03  0:33 bidirectional named pipe? Miller, Brendan
2001-02-03  0:47 ` J . A . Magallon
2001-02-03  2:41 ` Wakko Warner
2001-02-03  7:51 ` Alan Cox
2001-02-03 14:28   ` Jamie Lokier
2001-02-07 23:09   ` David L. Nicol
2001-02-08 23:10     ` H. Peter Anvin [this message]
2001-02-10  5:12       ` Chris Wedgwood
2001-02-11  1:38         ` H. Peter Anvin
2001-02-10  0:31     ` David L. Nicol
2001-02-10  1:37       ` Doug McNaught
  -- strict thread matches above, loose matches on Subject: below --
2001-02-03  0:49 Miller, Brendan
2001-02-03  4:55 Miller, Brendan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='95v90g$ke6$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox