Lines Matching refs:sb
335 struct stat sb;
345 if (lstat(f, &sb)) {
347 sb.st_mode = S_IFWHT|S_IWUSR|S_IRUSR;
361 if (S_ISDIR(sb.st_mode) && !dflag) {
366 if (!fflag && !S_ISWHT(sb.st_mode) && !check(f, f, &sb))
370 (sb.st_flags & (UF_APPEND|UF_IMMUTABLE)) &&
371 !(sb.st_flags & (SF_APPEND|SF_IMMUTABLE)))
372 rval = chflags(f, sb.st_flags & ~(UF_APPEND|UF_IMMUTABLE));
374 if (S_ISWHT(sb.st_mode))
376 else if (S_ISDIR(sb.st_mode))
387 rm_overwrite(f, &sb);
417 struct stat sb;
424 if (lstat(file, &sb))
426 sbp = &sb;