Monday, 14 January 2013

dup() system call (Cont’d)


dup() system call (Cont’d)

􀁺 dup() is guaranteed to return a file descriptor
with 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