Alien-Libjio
view release on metacpan or search on metacpan
libjio/INSTALL view on Meta::CPAN
library cache.
If the default "make" is not GNU make (like in BSD systems), use "gmake"
instead. If the default "install" is not GNU/BSD compatible (like in Solaris
systems), use "gmake INSTALL=ginstall".
Special builds
--------------
- To build with debugging information: "make DEBUG=1".
- To build with profiling support: "make PROFILE=1".
- To build with fault injection support, if you have libfiu: "make FI=1".
Python bindings
---------------
The library comes with bindings for Python 2 and Python 3. In order to build
them, you should have libjio already installed.
libjio/bindings/preload/libjio_preload.c view on Meta::CPAN
/* file descriptor table, to translate fds to jfs */
struct fd_entry {
int fd;
unsigned int *refcount;
jfs_t *fs;
pthread_mutex_t lock;
};
static struct fd_entry fd_table[MAXFD];
/* useful macros, mostly for debugging purposes */
#if 1
#define rec_inc() do { called++; } while(0)
#define rec_dec() do { called--; } while(0)
#define printd(...) do { } while(0)
#else
/* debug variants */
#define rec_inc() \
do { \
called++; \
fprintf(stderr, "I: %d\n", called); \
fflush(stderr); \
} while (0)
#define rec_dec() \
do { \
( run in 1.275 second using v1.01-cache-2.11-cpan-49f99fa48dc )