Query: fd_copy
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
fd_copy(3) Library Functions Manual fd_copy(3)NAMEfd_copy - duplicate a descriptorSYNTAX#include <fd.h> int fd_copy(to,from); int to; int from;DESCRIPTIONfd_copy copies descriptor from to descriptor to. If to was already open, fd_copy closes it. fd_copy always leaves from intact; if to and from are the same number, fd_copy does nothing. fd_copy returns 0 on success, -1 on error. fd_copy does not guarantee that to will remain open, if it was open, in case of error.SEE ALSOdup(2), fd_move(3) fd_copy(3)
Related Man Pages |
---|
dup2(2) - mojave |
dup2(2) - redhat |
dup(2) - bsd |
dup2(2) - debian |
dup(2) - sunos |
Similar Topics in the Unix Linux Community |
---|
Introduction |
Detecting unused variables... |
A (ksh) Library For and From UNIX.com |
New UNIX and Linux History Sections |