ls.c
1112 int
1113 main (int argc, char **argv)
1114 {
1115 int i;
1116 struct pending *thispend;
1117 int n_files;
1118
1119 /* The signals that are trapped, and the number of such signals. */
1120 static int const sig[] = { SIGHUP, SIGINT, SIGPIPE,
1121 SIGQUIT, SIGTERM, SIGTSTP };
1122 enum { nsigs = sizeof sig / sizeof sig[0] };
1123
1124 #if ! SA_NOCLDSTOP
1125 bool caught_sig[nsigs];
1126 #endif
1127
1128 initialize_main (&argc, &argv);
1129 program_name = argv[0];
1130 setlocale (LC_ALL, "");
1131 bindtextdomain (PACKAGE, LOCALEDIR);
1132 textdomain (PACKAGE);
1133
1134 initialize_exit_failure (LS_FAILURE);
1135 atexit (close_stdout);
1136
1137 #define N_ENTRIES(Array) (sizeof Array / sizeof *(Array))
1138 assert (N_ENTRIES (color_indicator) + 1 == N_ENTRIES (indicator_name));
1139
1140 exit_status = EXIT_SUCCESS;
1141 print_dir_name = true;
1142 pending_dirs = NULL;
1143
1144 i = decode_switches (argc, argv);
最終更新:2011年06月26日 10:29