title: Linux open file table - mode and status flags
body: <p>Referring this <a href="https://man7.org/training/download/lusp_fileio_slides.pdf" rel="nofollow noreferrer">link</a>.</p>
  <p><a href="https://i.stack.imgur.com/H3Htz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H3Htz.png" alt="enter image description here" /></a></p>
  <p>In the open file table, we have file status flags and file mode. The link states them received from <code>open()</code>.</p>
  <p>(Referring <a href="http://codewiki.wikidot.com/c:system-calls:open" rel="nofollow noreferrer">link</a>):</p>
  <p><a href="https://i.stack.imgur.com/a0Hlf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a0Hlf.png" alt="enter image description here" /></a></p>
  <p>Is the file status in open file table the <code>oflags</code> argument in <code>open()</code> and file access mode the <code>mode</code> argument &amp; ~umask ?</p>