Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/26/83; site ihuxa.UUCP Path: utzoo!linus!decvax!harpo!gummo!whuxlb!pyuxll!eisx!npoiv!npois!hogpc!houxm!hocda!spanky!burl!sb1!ll1!otuxa!we13!ihnp4!ihuxa!dixon From: dixon@ihuxa.UUCP Newsgroups: net.sources Subject: Re: Re: program to print table of contents Message-ID: <266@ihuxa.UUCP> Date: Tue, 9-Aug-83 11:40:40 EDT Article-I.D.: ihuxa.266 Posted: Tue Aug 9 11:40:40 1983 Date-Received: Wed, 10-Aug-83 19:52:22 EDT Organization: BTL Naperville, Il. Lines: 11 Last week in this newsgroup I asked about the function dup2() and a Unix 5.0 equivalent. I would like to thank the many people who replied to my request. To summarize their replies: 1.) For dup2(arg1, arg2) use fcntl(arg1, F_DUPFD, arg2) in Unix 5.0. Note that fcntl() requires the header file fcntl.h. 2.) dup2() is NOT a feature of Berkeley Unix but rather was in USG Unix V7. (It has been some years since V7 has been used here at IH BTL.) d a dixon ihuxa!dixon