fd_move(3) debian man page | unix.com

Man Page: fd_move

Operating Environment: debian

Section: 3

fd_move(3)						     Library Functions Manual							fd_move(3)

NAME
fd_move - renumber a descriptor
SYNTAX
#include <fd.h> int fd_move(to,from); int to; int from;
DESCRIPTION
fd_move moves descriptor from to descriptor to. If to was already open, fd_move closes it. If the move is successful, fd_move closes from. Exception: if to and from are the same number, fd_move does nothing. fd_move returns 0 on success, -1 on error.
SEE ALSO
dup(2), fd_copy(3) fd_move(3)
Related Man Pages
dup(2) - mojave
dup2(2) - debian
dup2(2) - osx
dup(2) - sunos
dup2(2) - freebsd
Similar Topics in the Unix Linux Community
EOF checking the below