title: How do I get list of mounted filesystems
body: <p>I need to parse table of mounted filesystems without using /proc/mounts since I'm parsing it to determine where proc file system is mounted. How can I do it?</p>
  
  <p>I've googled it, but all answers was to use /proc</p>
  
  <p>And why people are so sure that procfs is mounted to default place?</p>
  
  <hr>
  
  <p>I'm asking out of curiosity. I understand that /proc is a standard de-facto, many tools use it and so /proc is anchored pretty good.</p>
  
  <p>Linux API is consistent towards filesystem paths, all really needed information is passed via environmental variables, making possible to alter library and executable files, configuration files and so on.</p>
  
  <p>I'm curios is it possible to detec <code>PROC_PATH</code> with no prior knowledge about it? I may do ftw with statvfs used as callback, but this is so ungraceful. There definetly should be more straight way.</p>