Lines Matching refs:stbuf
45 static int hello_stat(fuse_ino_t ino, struct stat *stbuf)
47 stbuf->st_ino = ino;
50 stbuf->st_mode = S_IFDIR | 0755;
51 stbuf->st_nlink = 2;
55 stbuf->st_mode = S_IFREG | 0444;
56 stbuf->st_nlink = 1;
57 stbuf->st_size = strlen(hello_str);
69 struct stat stbuf;
73 memset(&stbuf, 0, sizeof(stbuf));
74 if (hello_stat(ino, &stbuf) == -1)
77 fuse_reply_attr(req, &stbuf, 1.0);
105 struct stat stbuf;
109 memset(&stbuf, 0, sizeof(stbuf));
110 stbuf.st_ino = ino;
111 fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf,