Question:
In C/C++/C#. (I need it for C#, but C and C++ is also fine).
How can I do a mount -a on Linux. I mean programmatically, without st
getmntent can help you read /etc/fstab (and then use the mount function in the other answers).
/etc/fstab