In C,
Name and explain three things that would cause the open() system call to return an error.
There are many scenarios in which open() system call returns an error. Three of such errors are:
1) Name: EACCES -> This error occurs when the file to which we have requested the access, we are not allowed to access that file or we are not allowed to search in the directories in which the requested file is present.
2) Name: ENOMEM -> This error occurs when during the open() call , there is insufficient kernel memory available.
3) Name: ENAMETOOLONG -> This error occurs when the pathname that we have specified is too long.
Get Answers For Free
Most questions answered within 1 hours.