Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site druca.UUCP Path: utzoo!linus!decvax!harpo!floyd!whuxlb!pyuxll!eisx!npoiv!npois!hogpc!houxm!ihnp4!drux3!druca!jt From: jt@druca.UUCP Newsgroups: net.sources Subject: dup2() Message-ID: <652@druca.UUCP> Date: Sun, 28-Aug-83 21:31:01 EDT Article-I.D.: druca.652 Posted: Sun Aug 28 21:31:01 1983 Date-Received: Tue, 30-Aug-83 01:26:25 EDT Organization: AT&T Information Systems, Denver Lines: 11 Thanks to everyone who answered my query about dup2(). Although some people had invented their own version of the function, the easiest solution seemed to be the following: dup2(arg1,arg2) is replaced by fcntl(arg1,F_DUPFD, agr2). You must use the header file fcntl.h for fcntl(). Thanks again, Jeff Turner AT&TIS Labs ihnp4!drux3!druca!jt