fuse_misc.h

来自「file system in user space ! It s very go」· C头文件 代码 · 共 38 行

H
38
字号
/*    FUSE: Filesystem in Userspace    Copyright (C) 2001-2006  Miklos Szeredi <miklos@szeredi.hu>    This program can be distributed under the terms of the GNU LGPL.    See the file COPYING.LIB*/#include "config.h"#include <pthread.h>#ifndef USE_UCLIBC#define fuse_mutex_init(mut) pthread_mutex_init(mut, NULL)#elsestatic inline void fuse_mutex_init(pthread_mutex_t *mut){    pthread_mutexattr_t attr;    pthread_mutexattr_init(&attr);    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);    pthread_mutex_init(mut, &attr);    pthread_mutexattr_destroy(&attr);}#endif#ifdef HAVE_STRUCT_STAT_ST_ATIM/* Linux */#define ST_ATIM(stbuf) (stbuf)->st_atim#define ST_CTIM(stbuf) (stbuf)->st_ctim#define ST_MTIM(stbuf) (stbuf)->st_mtim#define FUSE_STAT_HAS_NANOSEC 1 #elif defined(HAVE_STRUCT_STAT_ST_ATIMESPEC)/* FreeBSD */#define ST_ATIM(stbuf) (stbuf)->st_atimespec#define ST_CTIM(stbuf) (stbuf)->st_ctimespec#define ST_MTIM(stbuf) (stbuf)->st_mtimespec#define FUSE_STAT_HAS_NANOSEC 1#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?