1

I'm writing an application for Linux-based systems that makes intense use of temporary files for IPC purposes (locks, pipes, ...) and I would like to know if there is any canonical way to get a path to the temporary file system residing in RAM memory (such as /run). So far my solution is to default to /run unless a particular environment variable is set containing the path to that location, but I wonder whether there exists any API that could be used for getting such information. Otherwise, what is your most common approach?

Thank you.

Claudi
  • 5,224
  • 17
  • 30

0 Answers0