dup() system call
The dup() system call duplicates an open filedescriptor and returns the new file descriptor.
The new file descriptor has the following
properties in common with the original file
descriptor:
refers to the same open file or pipe.
has the same file pointer -- that is, both file
descriptors share one file pointer.
has the same access mode, whether read, write,
or read and write.
No comments:
Post a Comment