@@ -275,6 +275,15 @@ HOOK_DEF(int, __statfs, __const char *__file, struct statfs *__buf) {
275275 return ret;
276276}
277277
278+ // int statfs64 (__const char *__file, struct statfs *__buf);
279+ HOOK_DEF (int , statfs64, __const char *__file, struct statfs *__buf) {
280+ int res;
281+ const char *redirect_path = relocate_path (__file, &res);
282+ int ret = syscall (__NR_statfs, redirect_path, __buf);
283+ FREE (redirect_path, __file);
284+ return ret;
285+ }
286+
278287int inline getArrayItemCount (char *const array[]) {
279288 int i;
280289 for (i = 0 ; array[i]; ++i);
@@ -520,9 +529,9 @@ void IOUniformer::startUniformer(const char *so_path, int api_level, int preview
520529 HOOK_SYMBOL (handle, unlinkat);
521530 HOOK_SYMBOL (handle, symlinkat);
522531 HOOK_SYMBOL (handle, utimensat);
523- // HOOK_SYMBOL(handle, __getdents64);
524532 HOOK_SYMBOL (handle, chdir);
525533 HOOK_SYMBOL (handle, execve);
534+ HOOK_SYMBOL (handle, statfs64);
526535 dlclose (handle);
527536 }
528537 // hook_dlopen(api_level);
0 commit comments