I want to know which purpose has the following line of code in linux syscall int open(const char *pathname, int flags);
if (flags & ~(O_RDONLY | O_WRONLY | O_CREAT | O_RDWR | O_TRUNC | O_APPEND))
{
return -1;
}
I want to know which purpose has the following line of code in linux syscall int open(const char *pathname, int flags);
if (flags & ~(O_RDONLY | O_WRONLY | O_CREAT | O_RDWR | O_TRUNC | O_APPEND))
{
return -1;
}