File System Level-2 Functions in Unix/Linux
Level-2 of the file system implements read and write operations of file contents. It consists of the following functions: open, close, lseek, read, write, opendir and readdir. 1. Open Operation In Unix/Linux, the system call int open(char *filename, int flags); opens a file for read or write, where flags is one of O_RDONLY, O_WRONLY, O_RDWR, [ [ ...]