aboutsummaryrefslogtreecommitdiff
path: root/coreutils/ls.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-16 20:57:15 +0000
committerMatt Kraai <kraai@debian.org>2000-07-16 20:57:15 +0000
commitbf181b9338152759fd56c8009e9a962a84808e7c (patch)
treee8c416c791c690f661c513340662e4e98ff3464a /coreutils/ls.c
parent3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff)
downloadbusybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.gz
busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.bz2
busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.zip
Extract usage information into a separate file.
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 0644cde87..e56e3bcfb 100644
--- a/coreutils/ls.c
+++ b/coreutils/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{