Skip to content

Commit

Permalink
Added 3 more wrapped function, not exclusive to android after all
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jul 17, 2024
1 parent 4b20581 commit c5bccdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/wrapped/wrappedlibc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,7 @@ EXPORT int my_stat(char* path, void* buf)
UnalignStat64(&st, buf);
return r;
}
#endif

EXPORT int my_fstat(int fd, void* buf)
{
Expand All @@ -1299,7 +1300,6 @@ EXPORT int my_lstat(char* path, void* buf)
UnalignStat64(&st, buf);
return r;
}
#endif

EXPORT int my___fxstat(x86emu_t *emu, int vers, int fd, void* buf)
{
Expand Down
9 changes: 3 additions & 6 deletions src/wrapped/wrappedlibc_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -2292,17 +2292,14 @@ GO(dummy_safer_scalable_aligned_realloc, pFpLLp) // for mallochook.c

#ifdef ANDROID
GOM(__libc_init, vFEpppp)
GOM(stat, iFpp) //%noE
GOM(lstat, iFpp) //%noE
GOM(fstat, iFip) //%noE
GO(__errno, pFv)
#include "wrappedlibpthread_private.h"
#include "wrappedlibrt_private.h"
#else
// Those symbols don't exist in non-Android builds
//GOM(__libc_init,
//GOM(stat,
//GOM(lstat,
//GOM(fstat,
//GO(__errno,
#endif
GOM(stat, iFpp) //%noE
GOM(lstat, iFpp) //%noE
GOM(fstat, iFip) //%noE

0 comments on commit c5bccdf

Please sign in to comment.