Lines Matching defs:lsflags
254 #define VISIBLE(f) ((f)->level<=0||(!state.ignore||!strmatch((f)->name,state.ignore))&&(!(state.lsflags&LS_NOBACKUP)||(f)->name[(f)->namelen-1]!='~')&&((state.lsflags&LS_ALL)||(f)->name[0]!='.'||(state.lsflags&LS_MOST)&&((f)->name[1]&&(f)->name[1]!='.'||(f)->name[2])))
303 #define PRINTABLE(s) ((state.lsflags&LS_PRINTABLE)?printable(s):(s))
334 long lsflags; /* LS_* flags */
420 if (state.lsflags & LS_ESCAPE)
422 if (!(state.lsflags & LS_QUOTE))
424 if (state.lsflags & LS_SHELL)
425 return fmtquote(s, "$'", "'", strlen(s), (state.lsflags & LS_ALWAYS) ? FMT_ALWAYS : 0);
436 if (state.lsflags & LS_QUOTE)
453 if (state.lsflags & LS_QUOTE)
578 if (state.lsflags & LS_SEPARATE)
580 else if (state.lsflags & LS_LABEL)
823 if (!(state.lsflags & LS_COMMAS))
856 if (!(state.lsflags & LS_COLUMNS) || length <= 0)
873 if (state.lsflags & LS_COMMAS)
952 if ((state.lsflags & LS_ACROSS) && n > 1)
1150 if (!(state.lsflags & LS_DIRECTORY) && (state.ftwflags & FTW_MULTIPLE) && f1->level == 0)
1196 if (p->level == 0 && p->info == FTW_D && !(state.lsflags & LS_DIRECTORY))
1205 if (ftw->level < 0 || !(state.lsflags & LS_NOSTAT))
1222 if (!(state.lsflags & LS_RECURSIVE))
1236 state.lsflags |= LS_SEPARATE;
1274 if (state.lsflags & LS_DIRECTORY)
1279 if (state.lsflags & LS_DIRECTORY)
1285 if ((state.lsflags & LS_DIRECTORY) && ftw->level >= 0)
1287 if (!(state.lsflags & LS_RECURSIVE))
1293 if (ftw->level > 0 && !(state.lsflags & LS_NOSTAT))
1310 #define set(f) (opt_info.num?(state.lsflags|=(f)):((state.lsflags&=~(f)),0))
1311 #define clr(f) (opt_info.num?(state.lsflags&=~(f)):(state.lsflags|=(f)))
1321 long lsflags;
1342 state.lsflags |= LS_COLUMNS;
1344 state.lsflags |= LS_MARK;
1346 state.lsflags |= LS_LONG;
1348 state.lsflags |= LS_RECURSIVE;
1350 state.lsflags |= LS_ACROSS|LS_COLUMNS;
1353 state.lsflags |= LS_COLUMNS;
1355 state.lsflags |= LS_PRINTABLE;
1361 lsflags = state.lsflags;
1373 state.lsflags &= ~LS_ATIME;
1374 state.lsflags |= LS_CTIME;
1382 state.lsflags |= LS_LONG;
1386 state.lsflags |= LS_ALL;
1387 state.lsflags &= ~(LS_BLOCKS|LS_LONG|LS_TIME);
1394 state.lsflags |= LS_LONG|LS_NOUSER;
1396 state.lsflags |= LS_LONG|LS_NOGROUP;
1419 state.lsflags |= LS_LONG|LS_NOGROUP;
1421 state.lsflags |= LS_LONG|LS_NOUSER;
1440 state.lsflags &= ~LS_CTIME;
1441 state.lsflags |= LS_ATIME;
1533 state.lsflags |= LS_MOST;
1534 state.lsflags &= ~LS_ALL;
1562 state.lsflags |= LS_STAT;
1566 state.lsflags |= LS_LONG;
1579 state.lsflags &= ~(LS_ALWAYS|LS_ESCAPE|LS_PRINTABLE|LS_QUOTE|LS_SHELL);
1583 state.lsflags |= LS_ESCAPE|LS_PRINTABLE|LS_QUOTE;
1586 state.lsflags |= LS_ESCAPE|LS_PRINTABLE;
1591 state.lsflags |= LS_PRINTABLE;
1594 state.lsflags |= LS_ESCAPE|LS_PRINTABLE|LS_QUOTE|LS_SHELL;
1597 state.lsflags |= LS_ALWAYS|LS_ESCAPE|LS_PRINTABLE|LS_QUOTE|LS_SHELL;
1640 state.lsflags |= LS_STAT;
1664 state.lsflags |= LS_ACROSS|LS_COLUMNS;
1667 state.lsflags |= LS_COMMAS;
1670 state.lsflags |= LS_LONG;
1673 state.lsflags &= ~LS_ACROSS;
1674 state.lsflags |= LS_COLUMNS;
1677 state.lsflags &= ~(LS_ACROSS|LS_COLUMNS);
1683 state.lsflags &= ~LS_COLUMNS;
1724 if (state.lsflags == (lsflags|LS_TIME))
1726 if (state.lsflags & LS_DIRECTORY)
1727 state.lsflags &= ~LS_RECURSIVE;
1731 state.timeflags = state.lsflags;
1732 if (state.lsflags & (LS_COLUMNS|LS_COMMAS))
1734 if (state.lsflags & LS_LONG)
1735 state.lsflags &= ~(LS_COLUMNS|LS_COMMAS);
1748 if (state.lsflags & LS_STAT)
1749 state.lsflags &= ~LS_NOSTAT;
1750 else if (!(state.lsflags & (LS_DIRECTORY|LS_BLOCKS|LS_LONG|LS_MARK|LS_MARKDIR|LS_TIME
1756 state.lsflags |= LS_NOSTAT;
1761 if (state.lsflags & LS_INUMBER)
1763 if (state.lsflags & LS_BLOCKS)
1765 if (state.lsflags & LS_LONG)
1768 if (!(state.lsflags & LS_NOUSER))
1769 sfprintf(fmt, " %%-8(uid)%c", (state.lsflags & LS_NUMBER) ? 'd' : 's');
1770 if (!(state.lsflags & LS_NOGROUP))
1771 sfprintf(fmt, " %%-8(gid)%c", (state.lsflags & LS_NUMBER) ? 'd' : 's');
1776 if (state.lsflags & LS_MARK)
1778 else if (state.lsflags & LS_MARKDIR)
1780 if (state.lsflags & LS_LONG)
1801 state.lsflags |= LS_LABEL;