hooks: add a hook for the __sF symbol (stdin, stdout, stderr)

The goal here is to catch the call to file methods where the FILE* pointer is either stdin, stdout or stderr, and translate that pointer to a valid glibc  pointer.

Limitation: Currently, only fputs is managed.


Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
hooks: use a constant to refer to the size of the FILE structure of bionic's libc.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Merge pull request #13 from foolab/master

Added implementation of my_pthread_mutex_lock_timeout_np()
hooks: redirect FILE* usage in all the stdio methods

 * All the methods of bionic's stdio that use a FILE* argument are now redirected, so that we can use the correct stdin,stdout or stderr if needed
 * fopen, fdopen, popen are hooked to the glibc version of the functions
 * __isthreaded symbol has been hooked to force the programs to use the thread-safe version of some stdio methods instead of an inline hard-coded implementation that uses the bionic FILE structure directly. See comments in hooks.c for details.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Merge pull request #5 from Tofee/master

Initial support for __sF hook
Drop old Makefile.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Fix paths in .gitignore for test binaries.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Initial .spec file for Mer.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Merge pull request #14 from saukko/master

Minor cleanups
hookup strftime from bionic