cancelling fdopen(3)

Stuart D. Gathman stuart at bms-at.UUCP
Fri Dec 12 12:33:05 AEST 1986


In article <88 at dcl-csvax.comp.lancs.ac.uk>, stephen at 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>



More information about the Comp.unix.wizards mailing list