From mint-bounce@lists.fishpool.fi Tue Jan 22 17:26:24 2008 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Date: Mon, 29 Oct 2007 15:34:49 +0100 (MET) From: Jo Even Skarstein To: Message-ID: <203616293.160111193668489141.JavaMail.adm-moff@moffice5.nsc.no> In-Reply-To: References: <44180264.137741193650999885.JavaMail.adm-moff@moffice5.nsc.no> Subject: [MiNT] SV: Redirecting stdio using Fforce/Fdup MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_16155_204682986.1193668489138" X-Priority: 3 (Normal) X-Mailer: Mobile Office v1.44 (Telenor Nordic) X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: joska@online.no Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00 X-Spam-Level: Status: X-Status: X-Keywords: ------=_Part_16155_204682986.1193668489138 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit > From: Frank Naumann [fnaumann@boerde.de] > Sent: 2007-10-29 14:17:58 CET > > Btw. I looked into the ATARI Compendium, both calls are documented there. Yes, but there are no programming examples. Also, there are contradicting information on whether the redirected files are closed when the child exits or not. > If you use the MiNTLib you can easily use dup or dup2 (following the UNIX > documentation). I'm not using MiNTLib for this project, I'm using PureC and find that MiNTlib adds too much size for these small programs. Anyway, I've followed your suggestion and read the man-pages for dup and dup2. It seems that Fdup and Fforce does about the same, so I guess I can use these. Jo Even ------=_Part_16155_204682986.1193668489138--