diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/basename.c | 1 | ||||
-rw-r--r-- | src/cat.c | 1 | ||||
-rw-r--r-- | src/chgrp.c | 1 | ||||
-rw-r--r-- | src/chmod.c | 1 | ||||
-rw-r--r-- | src/chown.c | 1 | ||||
-rw-r--r-- | src/chroot.c | 1 | ||||
-rw-r--r-- | src/cksum.c | 1 | ||||
-rw-r--r-- | src/comm.c | 1 | ||||
-rw-r--r-- | src/cp.c | 1 | ||||
-rw-r--r-- | src/csplit.c | 1 | ||||
-rw-r--r-- | src/cut.c | 1 | ||||
-rw-r--r-- | src/date.c | 1 | ||||
-rw-r--r-- | src/dd.c | 1 | ||||
-rw-r--r-- | src/df.c | 1 | ||||
-rw-r--r-- | src/dircolors.c | 1 | ||||
-rw-r--r-- | src/dirname.c | 1 | ||||
-rw-r--r-- | src/du.c | 1 | ||||
-rw-r--r-- | src/echo.c | 1 | ||||
-rw-r--r-- | src/env.c | 1 | ||||
-rw-r--r-- | src/expand.c | 1 | ||||
-rw-r--r-- | src/expr.c | 1 | ||||
-rw-r--r-- | src/factor.c | 1 | ||||
-rw-r--r-- | src/fmt.c | 1 | ||||
-rw-r--r-- | src/fold.c | 1 | ||||
-rw-r--r-- | src/head.c | 1 | ||||
-rw-r--r-- | src/hostid.c | 1 | ||||
-rw-r--r-- | src/hostname.c | 1 | ||||
-rw-r--r-- | src/id.c | 1 | ||||
-rw-r--r-- | src/install.c | 1 | ||||
-rw-r--r-- | src/join.c | 1 | ||||
-rw-r--r-- | src/kill.c | 1 | ||||
-rw-r--r-- | src/link.c | 1 | ||||
-rw-r--r-- | src/ln.c | 1 | ||||
-rw-r--r-- | src/logname.c | 1 | ||||
-rw-r--r-- | src/ls.c | 1 | ||||
-rw-r--r-- | src/md5sum.c | 1 | ||||
-rw-r--r-- | src/mkdir.c | 1 | ||||
-rw-r--r-- | src/mkfifo.c | 1 | ||||
-rw-r--r-- | src/mknod.c | 1 | ||||
-rw-r--r-- | src/mv.c | 1 | ||||
-rw-r--r-- | src/nice.c | 1 | ||||
-rw-r--r-- | src/nl.c | 1 | ||||
-rw-r--r-- | src/od.c | 1 | ||||
-rw-r--r-- | src/paste.c | 1 | ||||
-rw-r--r-- | src/pathchk.c | 1 | ||||
-rw-r--r-- | src/pinky.c | 1 | ||||
-rw-r--r-- | src/pr.c | 1 | ||||
-rw-r--r-- | src/printenv.c | 1 | ||||
-rw-r--r-- | src/printf.c | 1 | ||||
-rw-r--r-- | src/ptx.c | 1 | ||||
-rw-r--r-- | src/pwd.c | 1 | ||||
-rw-r--r-- | src/readlink.c | 1 | ||||
-rw-r--r-- | src/rm.c | 1 | ||||
-rw-r--r-- | src/rmdir.c | 1 | ||||
-rw-r--r-- | src/seq.c | 1 | ||||
-rw-r--r-- | src/shred.c | 1 | ||||
-rw-r--r-- | src/sleep.c | 1 | ||||
-rw-r--r-- | src/sort.c | 1 | ||||
-rw-r--r-- | src/split.c | 1 | ||||
-rw-r--r-- | src/stat.c | 1 | ||||
-rw-r--r-- | src/stty.c | 1 | ||||
-rw-r--r-- | src/su.c | 1 | ||||
-rw-r--r-- | src/sum.c | 1 | ||||
-rw-r--r-- | src/sync.c | 1 | ||||
-rw-r--r-- | src/tac.c | 1 | ||||
-rw-r--r-- | src/tail.c | 1 | ||||
-rw-r--r-- | src/tee.c | 1 | ||||
-rw-r--r-- | src/test.c | 1 | ||||
-rw-r--r-- | src/touch.c | 1 | ||||
-rw-r--r-- | src/tr.c | 1 | ||||
-rw-r--r-- | src/true.c | 1 | ||||
-rw-r--r-- | src/tsort.c | 1 | ||||
-rw-r--r-- | src/tty.c | 1 | ||||
-rw-r--r-- | src/uname.c | 1 | ||||
-rw-r--r-- | src/unexpand.c | 1 | ||||
-rw-r--r-- | src/uniq.c | 1 | ||||
-rw-r--r-- | src/unlink.c | 1 | ||||
-rw-r--r-- | src/uptime.c | 1 | ||||
-rw-r--r-- | src/users.c | 1 | ||||
-rw-r--r-- | src/wc.c | 1 | ||||
-rw-r--r-- | src/who.c | 1 | ||||
-rw-r--r-- | src/whoami.c | 1 | ||||
-rw-r--r-- | src/yes.c | 1 |
83 files changed, 83 insertions, 0 deletions
diff --git a/src/basename.c b/src/basename.c index 1f0d682ef..f76defb91 100644 --- a/src/basename.c +++ b/src/basename.c @@ -92,6 +92,7 @@ main (int argc, char **argv) { char *name; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -563,6 +563,7 @@ main (int argc, char **argv) {NULL, 0, NULL, 0} }; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/chgrp.c b/src/chgrp.c index 5727b2720..1bcc85ed3 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -162,6 +162,7 @@ main (int argc, char **argv) int optc; struct Chown_option chopt; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/chmod.c b/src/chmod.c index be8262b85..7059b863e 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -278,6 +278,7 @@ main (int argc, char **argv) int thisind; int c; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/chown.c b/src/chown.c index b38a62f77..10273bd42 100644 --- a/src/chown.c +++ b/src/chown.c @@ -153,6 +153,7 @@ main (int argc, char **argv) int errors = 0; int optc; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/chroot.c b/src/chroot.c index 421e5212d..8be5fe6a0 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -64,6 +64,7 @@ If no command is given, run ``${SHELL} -i'' (default: /bin/sh).\n\ int main (int argc, char **argv) { + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/cksum.c b/src/cksum.c index 0bbba3a3c..7291ad437 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -301,6 +301,7 @@ main (int argc, char **argv) int i, c; int errors = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/comm.c b/src/comm.c index 1ee2ea833..02066ec91 100644 --- a/src/comm.c +++ b/src/comm.c @@ -222,6 +222,7 @@ main (int argc, char **argv) { int c; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -837,6 +837,7 @@ main (int argc, char **argv) int copy_contents = 0; char *target_directory = NULL; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/csplit.c b/src/csplit.c index 0009d04fc..e17b4a7b9 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1369,6 +1369,7 @@ main (int argc, char **argv) struct sigaction oldact, newact; #endif + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -637,6 +637,7 @@ main (int argc, char **argv) int optc, exit_status = 0; int delim_specified = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/date.c b/src/date.c index 4f5a11208..6e18b825f 100644 --- a/src/date.c +++ b/src/date.c @@ -302,6 +302,7 @@ main (int argc, char **argv) ? COMMON_SHORT_OPTIONS "I::" : COMMON_SHORT_OPTIONS "I:"); + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -1141,6 +1141,7 @@ main (int argc, char **argv) int i; int exit_status; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -755,6 +755,7 @@ main (int argc, char **argv) struct stat *stats IF_LINT (= 0); int n_valid_args = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/dircolors.c b/src/dircolors.c index 73362e864..97e34628e 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -426,6 +426,7 @@ main (int argc, char **argv) enum Shell_syntax syntax = SHELL_SYNTAX_UNKNOWN; int print_database = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/dirname.c b/src/dirname.c index e88e6a21c..5670ec6c2 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -67,6 +67,7 @@ main (int argc, char **argv) char const *result; size_t len; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -574,6 +574,7 @@ main (int argc, char **argv) cwd_only[0] = "."; cwd_only[1] = NULL; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/echo.c b/src/echo.c index 3538ed503..9ce8547ad 100644 --- a/src/echo.c +++ b/src/echo.c @@ -117,6 +117,7 @@ main (int argc, char **argv) int display_return = 1, do_v9 = 0; int allow_options = 1; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -142,6 +142,7 @@ main (register int argc, register char **argv, char **envp) int optc; int ignore_environment = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/expand.c b/src/expand.c index bd558fff9..530b1d4fd 100644 --- a/src/expand.c +++ b/src/expand.c @@ -342,6 +342,7 @@ main (int argc, char **argv) convert_entire_line = 1; tab_list = NULL; first_free_tab = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/expr.c b/src/expr.c index b39b73f17..bfc8dc545 100644 --- a/src/expr.c +++ b/src/expr.c @@ -156,6 +156,7 @@ main (int argc, char **argv) { VALUE *v; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/factor.c b/src/factor.c index fc2a407a8..6c01d3964 100644 --- a/src/factor.c +++ b/src/factor.c @@ -190,6 +190,7 @@ main (int argc, char **argv) { int fail; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -321,6 +321,7 @@ main (register int argc, register char **argv) int optchar; int fail; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/fold.c b/src/fold.c index cf8867369..5787810ad 100644 --- a/src/fold.c +++ b/src/fold.c @@ -238,6 +238,7 @@ main (int argc, char **argv) int optc; int errs = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/head.c b/src/head.c index 7d58aefa9..5a4943f32 100644 --- a/src/head.c +++ b/src/head.c @@ -937,6 +937,7 @@ main (int argc, char **argv) static char const *const default_file_list[] = {"-", NULL}; char const *const *file_list; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/hostid.c b/src/hostid.c index d27207baf..6eec1c3b0 100644 --- a/src/hostid.c +++ b/src/hostid.c @@ -64,6 +64,7 @@ main (int argc, char **argv) { long int id; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/hostname.c b/src/hostname.c index ed6d59252..540310115 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -83,6 +83,7 @@ main (int argc, char **argv) { char *hostname; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -120,6 +120,7 @@ main (int argc, char **argv) /* If nonzero, output only the user ID(s). -u */ int just_user = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/install.c b/src/install.c index 8e4dd98ea..bcad6b662 100644 --- a/src/install.c +++ b/src/install.c @@ -187,6 +187,7 @@ main (int argc, char **argv) int n_files; char **file; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/join.c b/src/join.c index 668c34b60..c04a69ccd 100644 --- a/src/join.c +++ b/src/join.c @@ -737,6 +737,7 @@ main (int argc, char **argv) FILE *fp1, *fp2; int optc, prev_optc = 0, nfiles; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/kill.c b/src/kill.c index cd33366d1..92d23be0d 100644 --- a/src/kill.c +++ b/src/kill.c @@ -290,6 +290,7 @@ main (int argc, char **argv) int signum = -1; char signame[SIG2STR_MAX]; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/link.c b/src/link.c index 760ad945b..20cf42b53 100644 --- a/src/link.c +++ b/src/link.c @@ -64,6 +64,7 @@ Usage: %s FILE1 FILE2\n\ int main (int argc, char **argv) { + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -406,6 +406,7 @@ main (int argc, char **argv) char **file; int dest_is_dir; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/logname.c b/src/logname.c index ac2e8b300..52c3baae3 100644 --- a/src/logname.c +++ b/src/logname.c @@ -64,6 +64,7 @@ main (int argc, char **argv) register char *cp; int c; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -1033,6 +1033,7 @@ main (int argc, char **argv) register struct pending *thispend; unsigned int n_files; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/md5sum.c b/src/md5sum.c index 41962f333..43c1ef79f 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -553,6 +553,7 @@ main (int argc, char **argv) #endif /* Setting values of global variables. */ + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/mkdir.c b/src/mkdir.c index 382d8027b..3527e1073 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -88,6 +88,7 @@ main (int argc, char **argv) int errors = 0; int optc; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/mkfifo.c b/src/mkfifo.c index 0cdb0b635..0739c3619 100644 --- a/src/mkfifo.c +++ b/src/mkfifo.c @@ -80,6 +80,7 @@ main (int argc, char **argv) int errors = 0; int optc; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/mknod.c b/src/mknod.c index 8156fae69..01b11f47b 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -93,6 +93,7 @@ main (int argc, char **argv) int optc; mode_t node_type; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -378,6 +378,7 @@ main (int argc, char **argv) unsigned int n_files; char **file; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/nice.c b/src/nice.c index f8b5b85f2..1af3b33c4 100644 --- a/src/nice.c +++ b/src/nice.c @@ -88,6 +88,7 @@ main (int argc, char **argv) int adjustment_given = 0; int i; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -468,6 +468,7 @@ main (int argc, char **argv) size_t len; int fail = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -1626,6 +1626,7 @@ main (int argc, char **argv) after any true address. */ uintmax_t pseudo_start IF_LINT (= 0); + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/paste.c b/src/paste.c index 336e15bf4..3ce91f066 100644 --- a/src/paste.c +++ b/src/paste.c @@ -430,6 +430,7 @@ main (int argc, char **argv) int optc, exit_status; char default_delims[2], zero_delims[3]; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/pathchk.c b/src/pathchk.c index d84b4b620..4fd2ba0ce 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -163,6 +163,7 @@ main (int argc, char **argv) int check_portability = 0; int optc; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/pinky.c b/src/pinky.c index c2bbd6eab..ce5e03bfe 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -500,6 +500,7 @@ main (int argc, char **argv) int optc, longind; int n_users; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -860,6 +860,7 @@ main (int argc, char **argv) ? COMMON_SHORT_OPTIONS "S::" : COMMON_SHORT_OPTIONS "S:"); + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/printenv.c b/src/printenv.c index 73c431fe6..276869e26 100644 --- a/src/printenv.c +++ b/src/printenv.c @@ -84,6 +84,7 @@ main (int argc, char **argv) int c; int exit_status; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/printf.c b/src/printf.c index f0825e1e0..361334acc 100644 --- a/src/printf.c +++ b/src/printf.c @@ -553,6 +553,7 @@ main (int argc, char **argv) char *format; int args_used; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -1951,6 +1951,7 @@ main (int argc, char **argv) /* Decode program options. */ + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -60,6 +60,7 @@ main (int argc, char **argv) { char *wd; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/readlink.c b/src/readlink.c index 0f34bebb8..be525564a 100644 --- a/src/readlink.c +++ b/src/readlink.c @@ -91,6 +91,7 @@ main (int argc, char *const argv[]) char *value; int optc; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -148,6 +148,7 @@ main (int argc, char **argv) int fail = 0; int c; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/rmdir.c b/src/rmdir.c index 8c4ec98f2..f21092ddf 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -170,6 +170,7 @@ main (int argc, char **argv) int errors = 0; int optc; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -339,6 +339,7 @@ main (int argc, char **argv) /* The printf(3) format used for output. */ char *format_str = NULL; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/shred.c b/src/shred.c index 305023b5a..5060c9a46 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1516,6 +1516,7 @@ main (int argc, char **argv) int c; int i; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/sleep.c b/src/sleep.c index f8a818692..6050f0fde 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -112,6 +112,7 @@ main (int argc, char **argv) int c; int fail = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/sort.c b/src/sort.c index c0c007ff3..39074b4e6 100644 --- a/src/sort.c +++ b/src/sort.c @@ -2173,6 +2173,7 @@ main (int argc, char **argv) struct sigaction oldact, newact; #endif + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/split.c b/src/split.c index 1b1ff2a7c..ebf98e245 100644 --- a/src/split.c +++ b/src/split.c @@ -363,6 +363,7 @@ main (int argc, char **argv) int c; int digits_optind = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/stat.c b/src/stat.c index 020e73fdf..2dc82438f 100644 --- a/src/stat.c +++ b/src/stat.c @@ -776,6 +776,7 @@ main (int argc, char *argv[]) int terse = 0; char *format = NULL; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/stty.c b/src/stty.c index 7f7d4ae19..70fe34f89 100644 --- a/src/stty.c +++ b/src/stty.c @@ -742,6 +742,7 @@ main (int argc, char **argv) const char *posixly_correct = getenv ("POSIXLY_CORRECT"); int invalid_long_option = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -468,6 +468,7 @@ main (int argc, char **argv) struct passwd *pw; struct passwd pw_copy; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -223,6 +223,7 @@ main (int argc, char **argv) int files_given; int (*sum_func) (const char *, int) = bsd_sum_file; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/sync.c b/src/sync.c index 7c2aabad2..1481c4968 100644 --- a/src/sync.c +++ b/src/sync.c @@ -56,6 +56,7 @@ Force changed blocks to disk, update the super block.\n\ int main (int argc, char **argv) { + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -608,6 +608,7 @@ main (int argc, char **argv) int optc, errors; int have_read_stdin = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/tail.c b/src/tail.c index 5f06c75c9..1c76ef67e 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1634,6 +1634,7 @@ main (int argc, char **argv) see if it has changed. */ double sleep_interval = 1.0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -80,6 +80,7 @@ main (int argc, char **argv) int errs; int optc; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/test.c b/src/test.c index f0af41ed1..631b4af1b 100644 --- a/src/test.c +++ b/src/test.c @@ -1073,6 +1073,7 @@ main (int margc, char **margv) if (code) return (test_error_return); #else /* TEST_STANDALONE */ + initialize_main (&margc, &margv); program_name = margv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/touch.c b/src/touch.c index 3847bde24..a34647fef 100644 --- a/src/touch.c +++ b/src/touch.c @@ -265,6 +265,7 @@ main (int argc, char **argv) int date_set = 0; int err = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -1793,6 +1793,7 @@ main (int argc, char **argv) struct Spec_list *s1 = &buf1; struct Spec_list *s2 = &buf2; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/true.c b/src/true.c index ecbf451f8..5c5ab22c1 100644 --- a/src/true.c +++ b/src/true.c @@ -49,6 +49,7 @@ These option names may not be abbreviated.\n\ int main (int argc, char **argv) { + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/tsort.c b/src/tsort.c index 52f0550e3..57421a522 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -550,6 +550,7 @@ main (int argc, char **argv) { int opt; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -78,6 +78,7 @@ main (int argc, char **argv) char *tty; int optc; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/uname.c b/src/uname.c index 9f613fdc3..0d81a1434 100644 --- a/src/uname.c +++ b/src/uname.c @@ -151,6 +151,7 @@ main (int argc, char **argv) /* Mask indicating which elements to print. */ unsigned toprint = 0; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/unexpand.c b/src/unexpand.c index b91abd87b..423f43b2b 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -408,6 +408,7 @@ main (int argc, char **argv) bool obsolete_tablist = false; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/uniq.c b/src/uniq.c index f0c399759..c945be391 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -397,6 +397,7 @@ main (int argc, char **argv) char const *file[2]; file[0] = file[1] = "-"; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/unlink.c b/src/unlink.c index 7c8384951..f5c3c24d1 100644 --- a/src/unlink.c +++ b/src/unlink.c @@ -63,6 +63,7 @@ Usage: %s FILE\n\ int main (int argc, char **argv) { + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/uptime.c b/src/uptime.c index 0aeb2db1d..934b1b8a4 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -208,6 +208,7 @@ int main (int argc, char **argv) { int optc, longind; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/users.c b/src/users.c index 67f8f4110..bee2ff36d 100644 --- a/src/users.c +++ b/src/users.c @@ -133,6 +133,7 @@ int main (int argc, char **argv) { int optc, longind; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -524,6 +524,7 @@ main (int argc, char **argv) int optc; int nfiles; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -621,6 +621,7 @@ main (int argc, char **argv) int optc, longind; int assumptions = 1; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/whoami.c b/src/whoami.c index 583ed02c2..7a5121a89 100644 --- a/src/whoami.c +++ b/src/whoami.c @@ -69,6 +69,7 @@ main (int argc, char **argv) register uid_t uid; int c; + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -67,6 +67,7 @@ Repeatedly output a line with all specified STRING(s), or `y'.\n\ int main (int argc, char **argv) { + initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); |