Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!uwm.edu!bionet!agate!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR/AA) Newsgroups: comp.unix.wizards Subject: Re: dup2() system call Message-ID: <1991Apr20.174307.20637@NCoast.ORG> Date: 20 Apr 91 17:43:07 GMT References: <85@morwyn.UUCP> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR/AA) Followup-To: comp.unix.wizards Organization: North Coast Public Access Un*x (ncoast) Lines: 20 As quoted from <85@morwyn.UUCP> by forrie@morwyn.UUCP (Forrie Aldrich): +--------------- | Well, for reference's sake, here's another version that I caught off the net | a little while ago... hope it helps. +--------------- (Doug Gwyn's dup2() omitted) Reference's sake, yes --- but that was one that got some remarks about differing errno values. (Which is why I had that remark in my comments.) For almost every use of dup2() I've ever encountered, the macro does the job. If you absolutely NEED 100% V7 compatibility, use Doug's by all means. ++Brandon -- Me: Brandon S. Allbery Ham: KB8JRR/AA on 2m, 220, 440, 1200 Internet: allbery@NCoast.ORG (QRT on HF until local problems fixed) America OnLine: KB8JRR // Delphi: ALLBERY AMPR: kb8jrr.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery KB8JRR @ WA8BXN.OH