Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!newstop!male!texsun!csccat!egsner!texrex!rmfowler From: rmfowler@texrex.uucp (Rex Fowler) Newsgroups: comp.sys.3b1 Subject: Re: want workaround for "dup2" Keywords: dup2 3b1 unix-pc Message-ID: <1991Mar18.024543.20223@texrex.uucp> Date: 18 Mar 91 02:45:43 GMT References: <1270@hico2.UUCP> Organization: texrex - Personal 3b1 System - Dallas, TX Lines: 21 In article <1270@hico2.UUCP> kak@hico2.westmark.com writes: > >Hummm... I don't seem to have "dup2" either. > ... >Is there an easy way to provide dup2? > > Kris A. Kugel > ( 908 ) 842-2707 > uunet!tsdiag.ccur.com!hico2!kak > {daver,ditka,zorch}!hico2!kak > internet: kak@hico2.westmark.com #include ... close(fd_to_dup); newfd=fcntl(fd, F_DUPFD, fd_to_dup); ... -- Rex Fowler UUCP: egsner!texrex!rmfowler