int pipe(int fds[2]);
Creates a new pipe. The first file handle is the "read" end, and the second file handle is the "write" end.
close, dup, dup2