1 While we do have stafs(2) it has a different signature, is deprecated and
2 undocumented, while statvfs() gives the behaviour we actually want.
4 --- a/test/jdk/java/io/File/libGetXSpace.c Wed Apr 5 22:54:38 2023
5 +++ b/test/jdk/java/io/File/libGetXSpace.c Thu Apr 6 14:28:43 2023
11 +#include <sys/statvfs.h>
13 #include <sys/statfs.h>
22 (*env)->ReleaseStringChars(env, root, strchars);
26 + int result = statvfs(chars, &buf);
29 int result = statfs(chars, &buf);
33 JNU_ThrowByNameWithLastError(env, "java/lang/RuntimeException",