Lines Matching refs:stbuf
82 struct stat stbuf; in walk_dir() local
128 if (lstat(path, &stbuf) == -1) in walk_dir()
131 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { in walk_dir()
151 S_ISDIR(stbuf.st_mode)) { in walk_dir()
160 inode_type(stbuf.st_mode), path, in walk_dir()
165 cur = create_fsnode(root, dir, name, &stbuf); in walk_dir()
186 if (stbuf.st_nlink > 1) { in walk_dir()
222 struct stat *stbuf) in create_fsnode() argument
231 cur->type = stbuf->st_mode & S_IFMT; in create_fsnode()
233 cur->inode->st = *stbuf; in create_fsnode()
406 struct stat stbuf; in apply_specdir() local
413 lstat(path, &stbuf) == -1) in apply_specdir()
436 memset(&stbuf, 0, sizeof(stbuf)); in apply_specdir()
437 stbuf.st_mode = nodetoino(curnode->type); in apply_specdir()
438 stbuf.st_nlink = 1; in apply_specdir()
439 stbuf.st_mtime = stbuf.st_atime = in apply_specdir()
440 stbuf.st_ctime = start_time.tv_sec; in apply_specdir()
442 stbuf.st_mtimensec = stbuf.st_atimensec = in apply_specdir()
443 stbuf.st_ctimensec = start_time.tv_nsec; in apply_specdir()
446 &stbuf); in apply_specdir()
454 &stbuf); in apply_specdir()