aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compat
AgeCommit message (Collapse)AuthorFilesLines
2017-06-21add fallback for missing __builtin_bswapXX()Luc Van Oostenryck1-0/+54
Older version of GCC (or clang) or some other compilers doesn't support the __builtin_bswap{16,32,64)(). Provides a fallback for them. Note: this patch allow the testsuite to run successfully on openbsd (its installed compiler is based on GCC 4.2). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2005-08-02Add DEBUG mode, which enables various expensive debug optionsLinus Torvalds1-0/+4
Right now it only makes 'blob_free()' mprotect(PROT_NONE) the buffer it free's instead of unmapping it, but that's already quite useful for figuring out when we've freed up memory that we later end up using after all. In particular, the multi-file mode ends up having different lifetime rules for the various objects, so it introduced some nasty MM bugs. With -DDEBUG we get some nice SIGSEGV's rather than just strange memory corruption.
2005-04-07Remove stat-based file identity tests.Linus Torvalds1-7/+0
Replace it with a simple pathname comparison instead. The pathname check is not only portable (no need for any compatibility helper functions), but we can do it much earlier, and thus make the check much cheaper by avoiding three extra system calls when it triggers (open/fstat/close). And the pathname test seems to match all the cases anyway.
2005-04-07Move declaration of "die()" to lib.h and check its format.Linus Torvalds1-2/+2
Fix the format errors this exposed.
2005-04-07Add compatibility file for solaris.welinder@troll.com3-0/+46