diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-12 21:03:50 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-12 21:03:50 +0200 |
| commit | f26c2f08122f93c3dcba88360d975f5c22335f36 (patch) | |
| tree | deb0126251bac0ccc5093cead8a769a45dfc4b42 /src/wrapped/wrappedlibc.c | |
| parent | 6573476ea259d3b1fe2b6ed311af44736af7901e (diff) | |
| download | box64-f26c2f08122f93c3dcba88360d975f5c22335f36.tar.gz box64-f26c2f08122f93c3dcba88360d975f5c22335f36.zip | |
Added a few more libc wrapped function, and fixed glob64 wrapping
Diffstat (limited to 'src/wrapped/wrappedlibc.c')
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index e9298f06..09b52edd 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1437,23 +1437,13 @@ EXPORT int32_t my_epoll_wait(x64emu_t* emu, int32_t epfd, void* events, int32_t } #endif -EXPORT int32_t my_glob(x64emu_t *emu, void* pat, int32_t flags, void* errfnc, void* pglob) -{ - static iFpipp_t f = NULL; - if(!f) { - library_t* lib = my_lib; - if(!lib) return 0; - f = (iFpipp_t)dlsym(lib->priv.w.lib, "glob"); - } - - return f(pat, flags, findgloberrFct(errfnc), pglob); -} - #endif EXPORT int32_t my_glob64(x64emu_t *emu, void* pat, int32_t flags, void* errfnc, void* pglob) { return glob64(pat, flags, findgloberrFct(errfnc), pglob); } +EXPORT int32_t my_glob(x64emu_t *emu, void* pat, int32_t flags, void* errfnc, void* pglob) __attribute__((alias("my_glob64"))); + EXPORT int my_scandir64(x64emu_t *emu, void* dir, void* namelist, void* sel, void* comp) { return scandir64(dir, namelist, findfilter64Fct(sel), findcompare64Fct(comp)); |