title: How to get file descriptor of buffer in memory?
body: <p>If I have a buffer which contains the data of a file, how can I get a file descriptor from it?
  This is a question derived from <a href="https://stackoverflow.com/questions/1553653/how-to-untar-file-in-memory-c-programming">how to untar file in memory</a></p>