🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9566

Re: Is there a preferred way to do popen()?

#9566
From: Randell Jesup
Date: Mon, 22 Aug 1988 01:04
22 lines
1501 bytes
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
Technical Details
Message-ID: <4530@cbmvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!alberta!ubc-cs!uw-beaver!cornell!batcomputer!itsgw!steinmetz!uunet!cbmvax!jesup
References: <618@super.ORG> <601@faui44.informatik.uni-erlangen.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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