Lines Matching refs:stbuf
204 struct stat stbuf; in walk_dir() local
250 if (stat(path, &stbuf) == -1) in walk_dir()
253 if (lstat(path, &stbuf) == -1) in walk_dir()
260 if (S_ISLNK(stbuf.st_mode)) { in walk_dir()
261 stbuf.st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); in walk_dir()
262 stbuf.st_mode |= S_IRWXU in walk_dir()
268 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { in walk_dir()
277 if (fsnode_join(&cur, join, last, path, name, &stbuf, in walk_dir()
295 cur = create_fsnode(root, dir, name, &stbuf); in walk_dir()
317 if (stbuf.st_nlink > 1) { in walk_dir()
355 struct stat *stbuf) in create_fsnode() argument
364 cur->type = stbuf->st_mode & S_IFMT; in create_fsnode()
366 cur->inode->st = *stbuf; in create_fsnode()
549 struct stat stbuf; in apply_specdir() local
556 lstat(path, &stbuf) == -1) in apply_specdir()
579 memset(&stbuf, 0, sizeof(stbuf)); in apply_specdir()
580 stbuf.st_mode = nodetoino(curnode->type); in apply_specdir()
581 stbuf.st_nlink = 1; in apply_specdir()
582 stbuf.st_mtime = stbuf.st_atime = in apply_specdir()
583 stbuf.st_ctime = start_time.tv_sec; in apply_specdir()
585 stbuf.st_mtimensec = stbuf.st_atimensec = in apply_specdir()
586 stbuf.st_ctimensec = start_time.tv_nsec; in apply_specdir()
589 &stbuf); in apply_specdir()
597 &stbuf); in apply_specdir()