rename net* to f*, add fdup()