dduupp() -- System Call (libc)

Duplicate a file descriptor
#iinncclluuddee <uunniissttdd.hh>
iinntt dduupp(_f_d) iinntt _f_d;

dduupp()  duplicates the  existing  file descriptor  _f_d, and  returns the  new
descriptor.  The returned value is the smallest file descriptor that is not
already in use by the calling process.

_S_e_e _A_l_s_o
dduupp22(), ffooppeenn(), ffddooppeenn(), lliibbcc, ssttddiioo.hh, uunniissttdd.hh
POSIX Standard, section 6.2.1

_D_i_a_g_n_o_s_t_i_c_s
dduupp() returns a  number less than zero when an  error occurs, such as a bad
file descriptor or no file descriptor available.
