1 #ifndef QEMU_BASE_BUILD
2 #include "android/utils/file_io.h"
3 
4 // Set of redefines for posix file calls. These redirects
5 // will make the windows posix calls unicode compliant.
6 //
7 // Note this is disabled when were a building qemu.
8 //
9 #define fopen(path, mode) android_fopen( (path), (mode) )
10 #define popen(path, mode) android_popen( (path), (mode) )
11 #define stat(path, buf) android_stat( (path), (buf))
12 #define lstat(path, buf) android_lstat ( (path), (buf) )
13 #define access(path, mode) android_access( (path), (mode))
14 #define mkdir(path, mode) android_mkdir( (path), (mode))
15 #define mkdir(path) android_mkdir( (path), 0755)
16 #define creat(path, mode) android_creat( (path), (mode))
17 #define unlink(path) android_unlink((path))
18 #define chmod(path, mode) android_chmod( (path), (mode))
19 #define rmdir(path) android_rmdir((path))
20 #else
21 // So we are in the qemu build..
22 #endif
23