Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!vrdxhq!bms-at!stuart
From: stuart@bms-at.UUCP (Stuart D. Gathman)
Newsgroups: comp.unix.wizards
Subject: Re: cancelling fdopen(3)
Message-ID: <317@bms-at.UUCP>
Date: Thu, 11-Dec-86 21:33:05 EST
Article-I.D.: bms-at.317
Posted: Thu Dec 11 21:33:05 1986
Date-Received: Sun, 14-Dec-86 04:31:08 EST
References: <88@dcl-csvax.comp.lancs.ac.uk>
Organization: Business Management Systems, Inc., Fairfax, VA
Lines: 12
Summary: dup(fd)

In article <88@dcl-csvax.comp.lancs.ac.uk>, stephen@comp.lancs.ac.uk (Stephen J. Muir) writes:

> FILE *f_fd = fdopen (fd, "w");

> Now, what is the best way to release the FILE * structure to the free pool
> without closing the file attached to the original "fd"?

  sd = dup(fd)

either before or after the fdopen().
-- 
Stuart D. Gathman	<..!seismo!dgis!bms-at!stuart>