dup() system call (Cont’d)
dup() is guaranteed to return a file descriptorwith the lowest integer value available. It is
because of this feature of returning the lowest
unused file descriptor available that
processes accomplish I/O redirection.
int dup(file_descriptor)
int file_descriptor;
No comments:
Post a Comment