1

duplicate the file descriptor and display both descriptors.

view story
linux-howto

http://unix.stackexchange.com – Can anyone help me on below question? Write a program to open the file “college”, duplicate the file descriptor and display both descriptors. Display 20 bytes of the file using original file descriptor and move the read pointer to start offset. Display 20 bytes of the file using duplicate file descriptor and move the read pointer to start offset. Again display 20 bytes of the file using duplicate file descriptor after closing original file descriptor (HowTos)