Path: utzoo!utgpu!water!watmath!clyde!att!alberta!ubc-cs!uw-beaver!cornell!batcomputer!itsgw!steinmetz!uunet!cbmvax!jesup
From: jesup@cbmvax.UUCP (Randell Jesup)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Is there a preferred way to do popen()?
Message-ID: <4530@cbmvax.UUCP>
Date: 22 Aug 88 01:04:20 GMT
References: <618@super.ORG> <601@faui44.informatik.uni-erlangen.de>
Reply-To: jesup@cbmvax.UUCP (Randell Jesup)
Organization: Commodore Technology, West Chester, PA
Lines: 22

In article <601@faui44.informatik.uni-erlangen.de> mlelstv@faui44.UUCP (Michael van Elst) writes:
>In AmigaDOS you have to determine which of the two file handles
>is for input and which of them is for output as no pipe-handler
>that I know of has the ability of writing to the input side
>and vice versa.

	AmigaDos per se doesn't care.  It's all the handlers business.

	It can be done, the internal implementation may well be two
pipe structures, one for each direction (this becomes more like a socket).
I did one such for my shell, though it has a few problems (like it
kills the CLI info command, due to not handling the packets correctly).

	When (or if) I ever release my shell, I'll fix it.  It also allows
specifying the buffer size on open, and allows multiple readers/writers
(if specified on the open).

	There are a nunber of PD pipes out there, grab one and modify to add
whatever you want.

-- 
Randell Jesup, Commodore Engineering {uunet|rutgers|allegra}!cbmvax!jesup