in reply to Re: working with files by number
in thread working with files by number

For the interested, dup and dup2 are located in POSIX.