after read the fstab struct in fstab.h, the mntent struct in mntent.h, i started to know they are merely a string parser, so i implemented the parser in pure zig, and used /proc/mounts as the source.
If you can afford linking against libc (apparently you can, as you’re using @cImport()) then you can use getmntent(). That parses /etc/fstab for you, but of course you can just parse it yourself if you want and skip the dependency