commit de20a9c7c3a0513d16236bf4e5626b55843eb50d Author: Alberto Bertogli Date: Thu Oct 15 19:51:32 2009 -0300 libfiu 0.13 Signed-off-by: Alberto Bertogli commit 02566dc0ad557e0deda6496db801333734b4c869 Author: Alberto Bertogli Date: Thu Oct 15 19:46:25 2009 -0300 Add libfiu.so.* to .gitignore Signed-off-by: Alberto Bertogli commit 594e5d164737c2db7bd6349f3887897b22da2dd4 Author: Alberto Bertogli Date: Thu Oct 15 19:44:12 2009 -0300 Add an uninstall target Signed-off-by: Alberto Bertogli commit 8b795ac3b065ed303b0cb739bf93faa667758051 Author: Alberto Bertogli Date: Wed Oct 14 23:21:08 2009 -0300 preload/posix: Fix initialization when building without constr. priorities When building without constructor priorities, the order in which they are called is not specified. This caused several strange bugs (segfaults and hangs) mostly because three issues: - Wrappers wanted to call the original libc version, but _fiu_init() hadn't performed the dlopen() yet. - _fiu_init() got called with _fiu_called > 0, but it resetted it back to 0, so the reference counter was left wrong. - Wrappers were called before their own constructor (i.e. from another constructor). This patch fixes those things by making the wrapper constructors to call _fiu_init() by hand if _fiu_libc == NULL, making _fiu_init() cope with that, and fixing the wrappers to call their own constructors if they haven't been called yet. Thanks to Stas Oskin for the detailed bug report. Signed-off-by: Alberto Bertogli commit 0a45ab3aa3660b3d7e9116336aa164ac28f21ece Author: Alberto Bertogli Date: Wed Oct 14 23:12:39 2009 -0300 preload/posix: Show more information in the debug prints Signed-off-by: Alberto Bertogli commit bb5976f03abff7ee3e163fb2444dc3ed1faf4d39 Author: Alberto Bertogli Date: Sun Aug 16 20:46:54 2009 -0300 Update license version This brings the license up to date with the latest version. Previously we only had some of the changes, which is confusing. It's ok to do this since it's in the public domain (and it obviously continues to be that way). Signed-off-by: Alberto Bertogli commit b1ec1a5cb7db980e8f827e4ed0c0c70b7ca28b1a Author: Alberto Bertogli Date: Fri Aug 7 12:47:41 2009 -0300 preload/posix: Add wrappers for strdup()/strndup() Signed-off-by: Alberto Bertogli commit 5c424a8375d86d2be4ddaf30215c36a67347f581 Author: Alberto Bertogli Date: Fri Aug 7 12:47:09 2009 -0300 preload/posix: Fix indentation Signed-off-by: Alberto Bertogli commit 389fc18c01894317d01b9422be5c2e6d9b98b28f Author: Tommi Rantala Date: Mon Jul 27 20:48:23 2009 +0300 preload/posix: constify read only data The valid_errnos arrays are read only, so make them static const. Signed-off-by: Tommi Rantala Signed-off-by: Alberto Bertogli commit 19c2ae6af1979cbb20d1ace6eff1e3911db189d5 Author: Chris Lamb Date: Fri Jul 24 18:57:49 2009 +0200 Allow installation of preload libraries into a non $(PREFIX)/lib directory The justification here is that Debian policy only allows libraries in the standard library paths if they are named according to their soname. We could do this, but it's easier just to allow fiu-run to look in a custom directory. Signed-off-by: Chris Lamb commit e7d1a46ad278e520ecf69d2095761ce3fee020e4 Author: Chris Lamb Date: Fri Jul 24 18:43:50 2009 +0200 Don't assume that we will use the library from the 'install' target's PREFIX This patch adds support for using the DESTDIR variable in the 'install' target to represent the "eventual" destination of the library, decoupling the installation directory and the run-time directory. I'm using this so the pkgconfig file gets created with a "prefix" value of my choice ("/usr") instead of somewhere under my home directory or wherever I happen to be generating the Debian package from. Signed-off-by: Chris Lamb commit 2b50abc3d52887bdef536038b03b4709f095e110 Author: Chris Lamb Date: Fri Jul 24 19:27:22 2009 +0200 Install manpages under $(PREFIX)/share/man/, not $(PREFIX)/man/ The Filesystem Hierarchy Standard dictates that we should place manpages under 'share', not under the prefix directly. Signed-off-by: Chris Lamb commit 7b8c94d9f7f4fb2401a18347c15314ca724e6b73 Author: Chris Lamb Date: Fri Jul 24 11:37:20 2009 +0200 Escape "-" to ensure interpretation as minus sign, not hyphen "-" chars are interpreted as hyphens (U+2010) by groff, not as minus signs (U+002D). Since options to programs use minus signs (U+002D), this means for example in UTF-8 locales that you cannot cut&paste options, nor search for them easily. "-" must be escaped ("\-") to be interpreted as minus. If we really intend a hyphen, we can write it as "\(hy" to emphasise that fact. See groff(7) and especially groff_char(7) for details. It might be possible to fix ths by jumping into a different context, but I don't know enough manpage stuff. Signed-off-by: Chris Lamb commit c16e44376dfdf6cabb8ccb68c9888b1716759d6a Author: Alberto Bertogli Date: Thu Jul 23 12:26:30 2009 -0300 libfiu: Remove unused code Signed-off-by: Alberto Bertogli commit 36eb5a862f13c6f6d623e94edf98b651359a7d7e Author: Alberto Bertogli Date: Thu Jul 23 12:24:57 2009 -0300 libfiu: Stop the remote control thread after too many (real) errors Otherwise, we might just get into an infinite loop, when open() succeeds but read() fails immediately. Signed-off-by: Alberto Bertogli commit 3e9735d6f5800697c563741dfbf83114a3f3d3fd Author: Alberto Bertogli Date: Thu Jul 23 12:23:28 2009 -0300 libfiu: Fix a minor style issue in the manpage Signed-off-by: Alberto Bertogli commit ba2ae97eb158dfb5df99cf87aa5733e8eff0a244 Author: Alberto Bertogli Date: Thu Jul 23 12:23:18 2009 -0300 libfiu: Do not abort if mkfifo() fails with EEXIST Signed-off-by: Alberto Bertogli commit a91be3eb0e0ad2fc891ae5d91151d3a821414eb4 Author: Alberto Bertogli Date: Thu Jul 23 12:05:06 2009 -0300 libfiu: Add soname to the shared object This patch adds soname to the generated shared object, so multiple incompatible versions of the library can be installed at the same time. This relies on the compiler using GNU ld, or other linker with a compatible syntax. Signed-off-by: Alberto Bertogli commit d5badedfb9c573be39fb85c60db1a9512d64f338 Author: Alberto Bertogli Date: Thu Jul 23 12:03:37 2009 -0300 libfiu: Put the version in the Makefile and use it to generate libfiu.pc In future commits we will make further use of $(LIB_VER). Signed-off-by: Alberto Bertogli commit 58df040ff5a56fb729461702f1f7fb5fc0c91501 Author: Alberto Bertogli Date: Wed Jul 15 14:14:56 2009 -0300 preload/posix: Wrap open() errnos around #ifdefs See commit 7db8847, which did the same for the generated code. Signed-off-by: Alberto Bertogli commit 6e63df0b565b833cbf2fb682fb82e9cc5625a67f Author: Alberto Bertogli Date: Wed Jul 15 14:11:59 2009 -0300 preload/posix: Simulate incomplete reads and writes This patch implements a generic way of adding a point of failure to reduce a given parameter in a random amount, which is then used to add points of failure to simulate incomplete reads and writes. Note that it will never make it 0, as that usually has a special meaning (EOF for reads). Signed-off-by: Alberto Bertogli commit fef533cfe2c79314727fa3f48f6a10d21408cb04 Author: Alberto Bertogli Date: Wed Jul 15 13:33:02 2009 -0300 preload/posix: Do not hard-code the number of possible errnos Since the errnos vary from platform to platform, do not use a hardcoded number but derive it from the size of valid_errnos. Signed-off-by: Alberto Bertogli