fd_move(3) fd_move(3) NNAAMMEE fd_move - renumber a descriptor SSYYNNTTAAXX ##iinncclluuddee <> int ffdd__mmoovvee(_t_o,_f_r_o_m); int _t_o; int _f_r_o_m; DDEESSCCRRIIPPTTIIOONN ffdd__mmoovvee moves descriptor _f_r_o_m to descriptor _t_o. If _t_o was already open, ffdd__mmoovvee closes it. If the move is successful, ffdd__mmoovvee closes _f_r_o_m. Exception: if _t_o and _f_r_o_m are the same number, ffdd__mmoovvee does nothing. ffdd__mmoovvee returns 0 on success, -1 on error. SSEEEE AALLSSOO dup(2), fd_copy(3) fd_move(3)