Path: utzoo!attcan!uunet!lll-winken!ncis.tis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!tut.cis.ohio-state.edu!unmvax!deimos.cis.ksu.edu!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: Question about dup() Message-ID: <10247@smoke.BRL.MIL> Date: 10 May 89 14:17:41 GMT References: <19538@adm.BRL.MIL> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <19538@adm.BRL.MIL> mark@spider.co.uk (Mark Valentine) writes: > dup(f1 | DUPFLG, f2); That was an early implementation of what we now know of as dup2(f1,f2) or close(f2),fcntl(f1,F_DUPFD,f2). dup2() is still sometimes actually implemented that way in the system call interface, but user code should use one of the officially approved methods.