summaryrefslogtreecommitdiff
path: root/src/libc-stdio.h
Commit message (Collapse)AuthorAge
* linker/libc: don't wrap variable symbolsJari Vetoniemi2018-04-19
| | | | | This is why the bionic_file_to_glibc_file did not work with just pointers. The input is actually pointer to our wrapper, doh.
* libc: Wrap more stdio funcsJari Vetoniemi2018-04-19
|
* libc: stdio must be wrappedJari Vetoniemi2018-04-18
Bionic libc does stupid stuff and defines standard streams as macros to reference of an array element. Thus we can't just point standard streams to their respective correct addresses. (Why does both glibc and bionic even expose the internal FILE structs??) So we have to wrap every function that takes FILE* as argument and mangle it with bionic_file_to_glibc_file. We can't just check addresses because gnu's libstdc++ copies the FILE*. I assume same thing happens with the c++ locale support, and we need to do more complex ctype wrapping.