If the opening of files is used the system call open, because there is another system call to open files directory (opendir), if a directory is a file type? Was not it just a call for all file types?
If the opening of files is used the system call open, because there is another system call to open files directory (opendir), if a directory is a file type? Was not it just a call for all file types?
As far as I know, open
opens all file types, less directories.
Now opendir
returns DIR * from the open directory that is passed to readdir()
to read its content.