From owner-freebsd-hackers Sat Mar 17 8:15:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from midget.dons.net.au (daniel.lnk.telstra.net [139.130.137.70]) by hub.freebsd.org (Postfix) with ESMTP id 0C3F837B719; Sat, 17 Mar 2001 08:15:17 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (guppy.dons.net.au [203.31.81.9]) by midget.dons.net.au (8.11.3/8.9.3) with ESMTP id f2HGF6i12988; Sun, 18 Mar 2001 02:45:06 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010317180055.A486@ringworld.oblivion.bg> Date: Sun, 18 Mar 2001 02:44:00 +1030 (CST) From: "Daniel O'Connor" To: Peter Pentchev Subject: Re: httpfs Cc: fs@FreeBSD.ORG, hackers@FreeBSD.ORG, Kris Kennaway , Duncan Barclay , Tony Finch , Dag-Erling Smorgrav Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 17-Mar-01 Peter Pentchev wrote: > Actually, I want socketpair(2). pipe(2) was what I used before, > and that's the reason I had a read-only file descriptor - the portalfs > architecture allows for only one fd to be returned, and pipe(2) > provides a one-way pipe. I dup2'd stdout and stderr of the executed > program to the child fd, and the parent could read its output, yet > not write to its stdin. pipe's are bidirectional in FreeBSD.. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message