Lines Matching defs:mode
107 mode_t mode = st->st_mode;
108 if ((FLAG(F)||FLAG(p)) && S_ISDIR(mode)) return '/';
110 if (S_ISLNK(mode)) return '@';
111 if (S_ISREG(mode) && (mode&0111)) return '*';
112 if (S_ISFIFO(mode)) return '|';
113 if (S_ISSOCK(mode)) return '=';
281 static int color_from_mode(mode_t mode)
285 if (S_ISDIR(mode)) color = 256+34;
286 else if (S_ISLNK(mode)) color = 256+36;
287 else if (S_ISBLK(mode) || S_ISCHR(mode)) color = 256+33;
288 else if (S_ISREG(mode) && (mode&0111)) color = 256+32;
289 else if (S_ISFIFO(mode)) color = 33;
290 else if (S_ISSOCK(mode)) color = 256+35;
340 // This reads/saves contents to display later, except for in "ls -1f" mode.
418 mode_t mode = st->st_mode;
425 if (S_ISDIR(mode) && !indir->parent && !(flags & FLAG_d)) continue;
456 mode_to_string(mode, tmp);
515 if ((flags & (FLAG_l|FLAG_o|FLAG_n|FLAG_g)) && S_ISLNK(mode)) {