Lines Matching defs:sb
80 static int ext2_getflag(int fd, struct stat *sb, unsigned long *flag)
82 if(!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) {
93 struct stat sb;
95 if (!stat(path, &sb) && !S_ISREG(sb.st_mode) && !S_ISDIR(sb.st_mode)) {
106 if (ext2_getflag(fd, &sb, &flag) < 0) perror_msg("reading flags '%s'", path);
170 struct stat sb;
172 if (lstat(*toys.optargs, &sb)) perror_msg("stat '%s'", *toys.optargs);
173 else if (S_ISDIR(sb.st_mode) && !(toys.optflags & FLAG_d))
196 static inline int ext2_setflag(int fd, struct stat *sb, unsigned long flag)
198 if (!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) {