Lines Matching refs:stbuf
35 static int hello_stat(fuse_ino_t ino, struct stat *stbuf)
37 stbuf->st_ino = ino;
40 stbuf->st_mode = S_IFDIR | 0755;
41 stbuf->st_nlink = 2;
45 stbuf->st_mode = S_IFREG | 0444;
46 stbuf->st_nlink = 1;
47 stbuf->st_size = strlen(hello_str);
59 struct stat stbuf;
63 memset(&stbuf, 0, sizeof(stbuf));
64 if (hello_stat(ino, &stbuf) == -1)
67 fuse_reply_attr(req, &stbuf, 1.0);
95 struct stat stbuf;
99 memset(&stbuf, 0, sizeof(stbuf));
100 stbuf.st_ino = ino;
101 fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf,