aboutsummaryrefslogtreecommitdiff
path: root/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'ls.c')
-rw-r--r--ls.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/ls.c b/ls.c
index 0644cde87..e56e3bcfb 100644
--- a/ls.c
+++ b/ls.c
@@ -427,63 +427,6 @@ static int list_item(const char *name)
427 return 1; 427 return 1;
428} 428}
429 429
430static const char ls_usage[] = "ls [-1a"
431#ifdef BB_FEATURE_LS_TIMESTAMPS
432 "c"
433#endif
434 "d"
435#ifdef BB_FEATURE_LS_TIMESTAMPS
436 "e"
437#endif
438 "ln"
439#ifdef BB_FEATURE_LS_FILETYPES
440 "p"
441#endif
442#ifdef BB_FEATURE_LS_TIMESTAMPS
443 "u"
444#endif
445 "xAC"
446#ifdef BB_FEATURE_LS_FILETYPES
447 "F"
448#endif
449#ifdef BB_FEATURE_LS_RECURSIVE
450 "R"
451#endif
452 "] [filenames...]\n"
453#ifndef BB_FEATURE_TRIVIAL_HELP
454 "\nList directory contents\n\n"
455 "Options:\n"
456 "\t-a\tdo not hide entries starting with .\n"
457#ifdef BB_FEATURE_LS_TIMESTAMPS
458 "\t-c\twith -l: show ctime (the time of last\n"
459 "\t\tmodification of file status information)\n"
460#endif
461 "\t-d\tlist directory entries instead of contents\n"
462#ifdef BB_FEATURE_LS_TIMESTAMPS
463 "\t-e\tlist both full date and full time\n"
464#endif
465 "\t-l\tuse a long listing format\n"
466 "\t-n\tlist numeric UIDs and GIDs instead of names\n"
467#ifdef BB_FEATURE_LS_FILETYPES
468 "\t-p\tappend indicator (one of /=@|) to entries\n"
469#endif
470#ifdef BB_FEATURE_LS_TIMESTAMPS
471 "\t-u\twith -l: show access time (the time of last\n"
472 "\t\taccess of the file)\n"
473#endif
474 "\t-x\tlist entries by lines instead of by columns\n"
475 "\t-A\tdo not list implied . and ..\n"
476 "\t-C\tlist entries by columns\n"
477#ifdef BB_FEATURE_LS_FILETYPES
478 "\t-F\tappend indicator (one of */=@|) to entries\n"
479#endif
480#ifdef BB_FEATURE_LS_RECURSIVE
481 "\t-R\tlist subdirectories recursively\n"
482#endif
483#endif
484 ;
485
486
487#ifdef BB_FEATURE_LS_RECURSIVE 430#ifdef BB_FEATURE_LS_RECURSIVE
488static int dirAction(const char *fileName, struct stat *statbuf, void* junk) 431static int dirAction(const char *fileName, struct stat *statbuf, void* junk)
489{ 432{