Question about dup()
Doug Gwyn
gwyn at smoke.BRL.MIL
Thu May 11 00:17:41 AEST 1989
In article <19538 at adm.BRL.MIL> mark at spider.co.uk (Mark Valentine) writes:
> dup(f1 | DUPFLG, f2);
That was an early implementation of what we now know of as dup2(f1,f2)
or close(f2),fcntl(f1,F_DUPFD,f2). dup2() is still sometimes actually
implemented that way in the system call interface, but user code should
use one of the officially approved methods.
More information about the Comp.unix.questions
mailing list