1 #ifndef LIBATALK_ADOUBLE_AD_PRIVATE_H
2 #define LIBATALK_ADOUBLE_AD_PRIVATE_H 1
4 #include <atalk/adouble.h>
7 #define MAP_FAILED ((void *) -1)
14 /* this is so that we can keep lists of fds referencing the same file
15 * around. that way, we can honor locks created by the same process
16 * with the same file. */
17 #ifdef USE_FLOCK_LOCKS
18 #define adf_lock_init(a)
19 #define adf_lock_free(a)
22 #define adf_lock_init(a) do { \
23 (a)->adf_lockmax = (a)->adf_lockcount = 0; \
24 (a)->adf_lock = NULL; \
27 #define adf_lock_free(a) do { \
30 free((a)->adf_lock); \
35 #endif /* libatalk/adouble/ad_private.h */