Redirection of stderr
Blair P. Houghton
bhoughto at pima.intel.com
Fri Mar 22 13:44:10 AEST 1991
In article <536 at bria> uunet!bria!mike writes:
>In an article, torek at elf.ee.lbl.gov (Chris Torek) writes:
>>In article <524 at bria> uunet!bria!mike writes:
>>>#define fdup2(A,B) (memcpy(B,A,sizeof(FILE))) /* UGLY */
>>Not only that, it does not work---because there is no guarantee that
>>a FILE object holds the state. [...]
>works just swimmingly for me, though! :-)
You're lucky, and probably don't close either of them, which
closes both of them, regardless of whether a FILE object holds
the state, because the kernel is now free to unlink the file.
--Blair
"What I need is a real-time,
networked, 28 MIPS, tuna melt."
More information about the Comp.unix.internals
mailing list