Lines Matching defs:sb
24 struct stat sb;
31 if (stat(paths[i], &sb) != 0)
36 printf("%14s %6ld: %s%s%s %s %s %s %s\n", paths[i], sb.st_size,
38 printf("%14s %6lld: %s%s%s %s %s %s %s\n", paths[i], sb.st_size,
40 ((sb.st_mode & S_IRUSR)? "r" : " "),
41 ((sb.st_mode & S_IWUSR)? "w" : " "),
42 ((sb.st_mode & S_IXUSR)? "x" : " "),
43 (((sb.st_mode & S_IFMT) == S_IFREG)? "REG" : " "),
44 (((sb.st_mode & S_IFMT) == S_IFDIR)? "DIR" : " "),
45 (((sb.st_mode & S_IFMT) == S_IFLNK)? "LNK" : " "),
46 (((sb.st_mode & S_IFMT) == S_IFCHR)? "CHR" : " "));