Lines 127-132
Link Here
|
127 |
int f_statustime; /* use time of last mode change */ |
127 |
int f_statustime; /* use time of last mode change */ |
128 |
static int f_stream; /* stream the output, separate with commas */ |
128 |
static int f_stream; /* stream the output, separate with commas */ |
129 |
static int f_timesort; /* sort by time vice name */ |
129 |
static int f_timesort; /* sort by time vice name */ |
|
|
130 |
static int f_sizesort; |
130 |
int f_type; /* add type character for non-regular files */ |
131 |
int f_type; /* add type character for non-regular files */ |
131 |
static int f_whiteout; /* show whiteout entries */ |
132 |
static int f_whiteout; /* show whiteout entries */ |
132 |
int f_label; /* show MAC label */ |
133 |
int f_label; /* show MAC label */ |
Lines 179-185
Link Here
|
179 |
f_listdot = 1; |
180 |
f_listdot = 1; |
180 |
|
181 |
|
181 |
fts_options = FTS_PHYSICAL; |
182 |
fts_options = FTS_PHYSICAL; |
182 |
while ((ch = getopt(argc, argv, "1ABCFGHLPRTWZabcdfghiklmnopqrstuwx")) |
183 |
while ((ch = getopt(argc, argv, "1ABCFGHLPRSTWZabcdfghiklmnopqrstuwx")) |
183 |
!= -1) { |
184 |
!= -1) { |
184 |
switch (ch) { |
185 |
switch (ch) { |
185 |
/* |
186 |
/* |
Lines 298-303
Link Here
|
298 |
case 't': |
299 |
case 't': |
299 |
f_timesort = 1; |
300 |
f_timesort = 1; |
300 |
break; |
301 |
break; |
|
|
302 |
case 'S': |
303 |
f_sizesort = 1; |
304 |
break; |
301 |
case 'W': |
305 |
case 'W': |
302 |
f_whiteout = 1; |
306 |
f_whiteout = 1; |
303 |
break; |
307 |
break; |
Lines 360-370
Link Here
|
360 |
#endif |
364 |
#endif |
361 |
|
365 |
|
362 |
/* |
366 |
/* |
363 |
* If not -F, -i, -l, -s or -t options, don't require stat |
367 |
* If not -F, -i, -l, -s, -S or -t options, don't require stat |
364 |
* information, unless in color mode in which case we do |
368 |
* information, unless in color mode in which case we do |
365 |
* need this to determine which colors to display. |
369 |
* need this to determine which colors to display. |
366 |
*/ |
370 |
*/ |
367 |
if (!f_inode && !f_longform && !f_size && !f_timesort && !f_type |
371 |
if (!f_inode && !f_longform && !f_size && !f_timesort && !f_sizesort && !f_type |
368 |
#ifdef COLORLS |
372 |
#ifdef COLORLS |
369 |
&& !f_color |
373 |
&& !f_color |
370 |
#endif |
374 |
#endif |
Lines 405-410
Link Here
|
405 |
sortfcn = revstatcmp; |
409 |
sortfcn = revstatcmp; |
406 |
else /* Use modification time. */ |
410 |
else /* Use modification time. */ |
407 |
sortfcn = revmodcmp; |
411 |
sortfcn = revmodcmp; |
|
|
412 |
if (f_sizesort) sortfcn = revsizecmp; |
408 |
} else { |
413 |
} else { |
409 |
if (!f_timesort) |
414 |
if (!f_timesort) |
410 |
sortfcn = namecmp; |
415 |
sortfcn = namecmp; |
Lines 414-419
Link Here
|
414 |
sortfcn = statcmp; |
419 |
sortfcn = statcmp; |
415 |
else /* Use modification time. */ |
420 |
else /* Use modification time. */ |
416 |
sortfcn = modcmp; |
421 |
sortfcn = modcmp; |
|
|
422 |
if (f_sizesort) sortfcn = sizecmp; |
417 |
} |
423 |
} |
418 |
|
424 |
|
419 |
/* Select a print function. */ |
425 |
/* Select a print function. */ |