Lines Matching refs:stbuf
80 struct stat stbuf; in walk_dir() local
126 if (lstat(path, &stbuf) == -1) in walk_dir()
129 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { in walk_dir()
149 S_ISDIR(stbuf.st_mode)) { in walk_dir()
158 inode_type(stbuf.st_mode), path, in walk_dir()
163 cur = create_fsnode(root, dir, name, &stbuf); in walk_dir()
184 if (stbuf.st_nlink > 1) { in walk_dir()
220 struct stat *stbuf) in create_fsnode() argument
229 cur->type = stbuf->st_mode & S_IFMT; in create_fsnode()
231 cur->inode->st = *stbuf; in create_fsnode()
404 struct stat stbuf; in apply_specdir() local
411 lstat(path, &stbuf) == -1) in apply_specdir()
434 memset(&stbuf, 0, sizeof(stbuf)); in apply_specdir()
435 stbuf.st_mode = nodetoino(curnode->type); in apply_specdir()
436 stbuf.st_nlink = 1; in apply_specdir()
437 stbuf.st_mtime = stbuf.st_atime = in apply_specdir()
438 stbuf.st_ctime = start_time.tv_sec; in apply_specdir()
440 stbuf.st_mtimensec = stbuf.st_atimensec = in apply_specdir()
441 stbuf.st_ctimensec = start_time.tv_nsec; in apply_specdir()
444 &stbuf); in apply_specdir()
452 &stbuf); in apply_specdir()