From 8bbd9abd27947d9dfcf7abdd24470b611ca93148 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 30 Mar 2021 21:15:06 +0200 Subject: Added wrapped fts_* function (FTS struct seems aligned on 64bits) --- src/wrapped/wrappedlibc.c | 6 ++++++ src/wrapped/wrappedlibc_private.h | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 82b06656..9262060b 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #undef LOG_INFO #undef LOG_DEBUG @@ -990,6 +991,11 @@ EXPORT void* my_lfind(x64emu_t* emu, void* key, void* base, size_t* nmemb, size_ { return lfind(key, base, nmemb, size, findcompareFct(fnc)); } + +EXPORT void* my_fts_open(x64emu_t* emu, void* path, int options, void* c) +{ + return fts_open(path, options, findcompareFct(c)); +} #if 0 diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h index 3bf45803..880d8561 100755 --- a/src/wrapped/wrappedlibc_private.h +++ b/src/wrapped/wrappedlibc_private.h @@ -438,11 +438,11 @@ GOW(ftruncate64, iFiI) //GOW(fts64_open, //GOW(fts64_read, //GOW(fts64_set, -//GO(fts_children, -//GO(fts_close, -//GO(fts_open, -//GO(fts_read, -//GO(fts_set, +GO(fts_children, pFpi) +GO(fts_close, iFp) +GO(fts_open, pFEpip) +GO(fts_read, pFp) +GO(fts_set, iFppi) //GO(ftw, GOM(ftw64, iFEppi) //GOW(funlockfile, -- cgit 1.4.1