In this article we will study about the Linux open() system call that opens a file (or device). This system call can also be used for creating a file before opening it.
The prototype of the open() function is :
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
The argument 'pathname' (as the name suggests) is the complete (or relative) path of the file on system.
Since there is also a cap on maximum length of a file name or maximum length of file path in Linux. So, lets say if the... [More]