Monday, 14 January 2013

dup() system call


dup() system call

􀁺 The dup() system call duplicates an open file
descriptor 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