Lines Matching defs:stbuf
435 static int check_perm(const char **mntp, struct stat *stbuf, int *currdir_fd,
442 res = stat(mnt, stbuf);
453 if (S_ISDIR(stbuf->st_mode)) {
467 res = lstat(mnt, stbuf);
474 if ((stbuf->st_mode & S_ISVTX) && stbuf->st_uid != getuid()) {
486 } else if (S_ISREG(stbuf->st_mode)) {
494 res = fstat(*mountpoint_fd, stbuf);
500 if (!S_ISREG(stbuf->st_mode)) {
565 struct stat stbuf;
585 res = check_perm(&real_mnt, &stbuf, &currdir_fd, &mountpoint_fd);
587 res = do_mount(real_mnt, &type, stbuf.st_mode & S_IFMT, fd, opts, dev,