dup2

Steven Sargent sbs at ciara.Frame.COM
Wed Feb 20 23:58:38 AEST 1991


dup2(old, new)
{
	return dup(old+64, new);
}

... depends on an undocumented interface; your mileage may
vary; guaranteed to lose in SunOS 4.1 (but you can use real
dup2 there); doubtless will lose other places that have wide
u.u_ofile; but amusing nonetheless.
-- 
Steven Sargent sbs at frame.com	"Frame's phone bill, my opinions."



More information about the Comp.unix.wizards mailing list