File input/output

Code No
Skill Category No: 
2
Skill No: 
4
Topic No: 
6
Level: 
II
Objective: 

Understanding file control commands to control file and operations on files, including file locking.

  • Understanding and knowing to use fcntl() commands.
    •  F_DUPFD, F_SETFD/F_GETFD,
    •  F_GETFL,/F_SETFL, F_GETOWN/F_SETOWN
  • Knowing how to use file locking mechanism with fcntl()
    •  F_RDLCK, F_WRLCK, F_UNLCK
  • Understanding blocking, non-blocking operation