int dup2(int fdA, int fdB);
Closes file with descriptor fdB if it was open
Copies pointer at fdA to entry at index fdB.