commit 87cea8a8fbcc967af1bbd82a2fddbf14b66d31b8 Author: Alberto Bertogli Date: Mon Jul 11 22:53:38 2011 +0100 libfiu 0.14 Signed-off-by: Alberto Bertogli commit dcd8b0f9a971548736379df809521ed5732755ba Author: Alberto Bertogli Date: Mon Jul 11 22:50:31 2011 +0100 preload/posix: Disable the stat() family The stat() family is usually defined within one of the standard headers, which (besides being ugly) makes them difficult to override in the way we do. This patch comments them out for the time being. Signed-off-by: Alberto Bertogli commit 3dcaa5ae908e27283381904891eecd55ff3a6bd1 Author: Alberto Bertogli Date: Sat Oct 16 23:01:51 2010 -0300 preload/run: Use rm -f for files that may not be there Signed-off-by: Alberto Bertogli commit 4d4877045b028d1a6adcae7310ce574fb30327a9 Author: Alberto Bertogli Date: Sat Oct 16 22:57:49 2010 -0300 preload/posix: Use limits.h instead of features.h for portability reasons We want to know if we're building against glibc. glibc defines __GLIBC__ for those purposes, and to get it defined we must include features.h. The problem is features.h is NOT standard, and not available on some platforms. So we include limits.h, because we know it includes features.h, and we get the define indirectly. This is UGLY but sadly the other choices are not much more attractive. This may get better if we used some script like autotools to detect features.h availability, and we may do that in the future. Signed-off-by: Alberto Bertogli commit ddd73f0c12197fc3361db4c6fe548d55191b57f0 Author: Alberto Bertogli Date: Wed Oct 13 13:04:23 2010 -0300 preload/posix: FreeBSD does not have waitid() Signed-off-by: Alberto Bertogli commit c30d735f432c1fee25b4b4258b0bb2b9ddca0b4f Author: Alberto Bertogli Date: Wed Oct 13 12:44:31 2010 -0300 preload/posix: Handle glibc's prototype of mprotect() glibc's mprotect() does not take a const as its first argument, while the standard says it should. Our prototype did not have the const, which caused problems on some platforms that have it (FreeBSD 8.1, for example). Signed-off-by: Alberto Bertogli commit 3b9e348a9d6af5c37e2e9a9d4ed4156e68710f11 Author: Alberto Bertogli Date: Wed Oct 13 12:39:34 2010 -0300 preload/posix: Use rm -f for files that may not be there Signed-off-by: Alberto Bertogli commit fe3756923bd0500179e7508e39515f65c609a19c Author: Alberto Bertogli Date: Wed Oct 13 12:36:39 2010 -0300 preload/posix: Make ldd invocation work in FreeBSD Some ldd versions, specifically the one in FreeBSD 8.1, require that the shared library given as an argument start with "./" if it's in the current working directory, otherwise it won't find it. Signed-off-by: Alberto Bertogli commit c18d9ff24a5236f8e3830e06a51e8cfbeab3580e Author: Alberto Bertogli Date: Sun Oct 10 23:22:35 2010 -0300 libfiu: Simplify variable initialization Signed-off-by: Alberto Bertogli commit e87390e79949133ad2abfa90e61ac18fe470e996 Author: Alberto Bertogli Date: Sun Oct 10 23:21:39 2010 -0300 preload: Pass the -L flag to the compiler only when needed Caught by clang. Signed-off-by: Alberto Bertogli commit 4aad97c5ac2aa8e9f12e01b55a2bf3dee3f22827 Author: Alberto Bertogli Date: Sun Oct 10 23:09:13 2010 -0300 preload: Make detection of libc's soname and -ldl more robust This patch turns the detection of libc's soname and -ldl requirement from a make macro into a target, which is slightly more robust. It also avoids invoking the linker directly, but uses the compiler instead. This is used to avoid problems when the way we invoke the linker is not the same way the compiler does, which can cause troubles. Specifically, on Fedora 14 Beta, running ld by hand did not pass the requirement of a non-executable stack, which broke ldd's processing of the resulting shared library (because of selinux). It's still not the nicest thing to do, but it's better than using autoconf. Signed-off-by: Alberto Bertogli commit 418652ec8c19d31dc88006c1909b64c50e91d9d5 Author: Alberto Bertogli Date: Sun Oct 10 22:41:50 2010 -0300 libfiu: Add a thread-safety section in the manpage Signed-off-by: Alberto Bertogli commit 1fd29abe296f02239e16ba69e4e0277c87d016e7 Author: Alberto Bertogli Date: Sun Oct 10 20:05:39 2010 -0300 doc: Minor miscellaneous improvements Signed-off-by: Alberto Bertogli commit 37f6a98110e3bb59bbb4971241baa3a385c3f724 Author: Alberto Bertogli Date: Sun Mar 21 15:43:43 2010 -0300 preload/posix: Pass an appropriate promoted type to va_arg() va_arg() can only take a promoted type, which that means just an int in this case. On some platforms passing mode_t works, but on others (like Debian's kFreeBSD amd64) causes a compile-time warning and a run-time error, as reported by Serafeim Zanikolas on Debian bug 574752. This patch fixes this by passing int as the argument to va_arg(), instead of mode_t. It also fixes the "mode" variable's type, which was int when it should have been mode_t. Signed-off-by: Alberto Bertogli commit 1862bedc03daf55418c7a91119ee796ba72e4cb8 Author: Alberto Bertogli Date: Sun Mar 21 15:17:19 2010 -0300 preload/posix: Lift the platform restriction for constructor priorities According to gcc's documentation, constructor priorities are supported on all platforms, so lift the Linux-only restriction. Signed-off-by: Alberto Bertogli commit 2bfeeff936ac263c9e2abc85758a7d64c9c8a91c Author: Alberto Bertogli Date: Wed Mar 17 21:10:42 2010 -0300 preload/posix: Get libc's soname from the build environment ia64 and alpha use a different libc soname, libc.so.6.1, instead of the usual libc.so.6. This patch makes the build system find which one is in use, so the constant used for dlopen() has the right value. Thanks to Serafeim Zanikolas for the bug report (via Debian's BTS). Signed-off-by: Alberto Bertogli commit 4d8d9cdd157947ce27d8baa9bbb2d274a2760d1f Author: Alberto Bertogli Date: Tue Mar 16 16:41:16 2010 -0300 preload/posix: clang supports constructor priorities The clang compiler supports constructor priorities. This patch adds a check for it, so we build with constructor priorities when it is being used. Signed-off-by: Alberto Bertogli