title: How to check if a file has been opened by another application in C++?
body: <p>I know, that there's the <code>is_open()</code> function in C++, but I want one program to check if a file hasn't been opened by another application. Is there any way to do it using standard library?</p>
  
  <p>EDIT - Clarified in the answers that this is for a Linux application.</p>