Added wrapped stat64 and lstat64

This commit is contained in:
ptitSeb 2022-02-06 20:07:51 +01:00
parent 60078852bd
commit 5187b55a2e
2 changed files with 17 additions and 0 deletions

View File

@ -1253,6 +1253,21 @@ EXPORT int my___fxstat64(x86emu_t *emu, int vers, int fd, void* buf)
return r;
}
EXPORT int my_stat64(x86emu_t* emu, void* path, void* buf)
{
struct stat64 st;
int r = stat64(path, &st);
UnalignStat64(&st, buf);
return r;
}
EXPORT int my_lstat64(x86emu_t* emu, void* path, void* buf)
{
struct stat64 st;
int r = lstat64(path, &st);
UnalignStat64(&st, buf);
return r;
}
EXPORT int my___xstat(x86emu_t* emu, int v, void* path, void* buf)
{
if (v == 1)

View File

@ -1637,6 +1637,8 @@ GO2(sscanf, iFppV, vsscanf) // sscanf va_list is only pointer, no realign to
// ssignal // Weak
// sstk
GOM(__stack_chk_fail, vFEv) //%%
GOM(lstat64, iFpp) //%%,noE
GOM(stat64, iFpp) //%%,noE
GOW(statfs, iFpp)
// __statfs
GOWM(statfs64, iFpp) //%%,noE