| Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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.
|
|
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.
|
|
Fix the format errors this exposed.
|
|
|