mirror of
https://github.com/ptitSeb/box86.git
synced 2024-11-27 08:50:28 +00:00
Added wrapped stat64 and lstat64
This commit is contained in:
parent
60078852bd
commit
5187b55a2e
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user