Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12384

linux syscall open() bitmask

$
0
0

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;
}

Viewing all articles
Browse latest Browse all 12384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>