Lines Matching defs:path
75 static int fioc_file_type(const char *path)
77 if (strcmp(path, "/") == 0)
79 if (strcmp(path, "/" FIOC_NAME) == 0)
84 static int fioc_getattr(const char *path, struct stat *stbuf,
92 switch (fioc_file_type(path)) {
109 static int fioc_open(const char *path, struct fuse_file_info *fi)
113 if (fioc_file_type(path) != FIOC_NONE)
131 static int fioc_read(const char *path, char *buf, size_t size,
136 if (fioc_file_type(path) != FIOC_FILE)
152 static int fioc_write(const char *path, const char *buf, size_t size,
157 if (fioc_file_type(path) != FIOC_FILE)
163 static int fioc_truncate(const char *path, off_t size,
167 if (fioc_file_type(path) != FIOC_FILE)
173 static int fioc_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
181 if (fioc_file_type(path) != FIOC_ROOT)
191 static int fioc_ioctl(const char *path, unsigned int cmd, void *arg,
198 if (fioc_file_type(path) != FIOC_FILE)