16 #if (!defined(__UCLIBC__) && !defined(__APPLE__)) 17 # if HAVE_SYMVER_ATTRIBUTE 18 # define FUSE_SYMVER(sym1, sym2) __attribute__ ((symver (sym2))) 20 # define FUSE_SYMVER(sym1, sym2) __asm__("\t.symver " sym1 "," sym2); 23 #define FUSE_SYMVER(sym1, sym2) 27 #define fuse_mutex_init(mut) pthread_mutex_init(mut, NULL) 30 static inline void fuse_mutex_init(pthread_mutex_t *mut)
32 pthread_mutexattr_t attr;
33 pthread_mutexattr_init(&attr);
34 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
35 pthread_mutex_init(mut, &attr);
36 pthread_mutexattr_destroy(&attr);
40 #ifdef HAVE_STRUCT_STAT_ST_ATIM 42 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec) 43 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctim.tv_nsec) 44 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtim.tv_nsec) 45 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atim.tv_nsec = (val) 46 #define ST_CTIM_NSEC_SET(stbuf, val) (stbuf)->st_ctim.tv_nsec = (val) 47 #define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtim.tv_nsec = (val) 48 #elif defined(HAVE_STRUCT_STAT_ST_ATIMESPEC) 50 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atimespec.tv_nsec) 51 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctimespec.tv_nsec) 52 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtimespec.tv_nsec) 53 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atimespec.tv_nsec = (val) 54 #define ST_CTIM_NSEC_SET(stbuf, val) (stbuf)->st_ctimespec.tv_nsec = (val) 55 #define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtimespec.tv_nsec = (val) 57 #define ST_ATIM_NSEC(stbuf) 0 58 #define ST_CTIM_NSEC(stbuf) 0 59 #define ST_MTIM_NSEC(stbuf) 0 60 #define ST_ATIM_NSEC_SET(stbuf, val) do { } while (0) 61 #define ST_CTIM_NSEC_SET(stbuf, val) do { } while (0) 62 #define ST_MTIM_NSEC_SET(stbuf, val) do { } while (0)