Last active
September 14, 2020 17:49
-
-
Save tempelmann/65a8fab7c26a0b1bb638a384c5eb32c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://twitter.com/tempelorg/status/1305559310760644612?s=20 | |
// Turns out this is correct behavior. | |
// No more need for testing. | |
#include <stdio.h> | |
#include <sys/mount.h> | |
int main(int argc, const char * argv[]) { | |
struct statfs fsinfo; | |
statfs("/", &fsinfo); | |
printf("root device path: %s\n", fsinfo.f_mntfromname); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same result here for that code.