diff options
Diffstat (limited to 'coreutils')
37 files changed, 52 insertions, 52 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index cba003d70..da59a8672 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c | |||
@@ -31,7 +31,7 @@ extern int basename_main(int argc, char **argv) | |||
31 | char *s; | 31 | char *s; |
32 | 32 | ||
33 | if ((argc < 2) || (**(argv + 1) == '-')) { | 33 | if ((argc < 2) || (**(argv + 1) == '-')) { |
34 | usage(basename_usage); | 34 | show_usage(); |
35 | } | 35 | } |
36 | 36 | ||
37 | argv++; | 37 | argv++; |
diff --git a/coreutils/chroot.c b/coreutils/chroot.c index cd8101e47..e721e1ffa 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c | |||
@@ -33,7 +33,7 @@ int chroot_main(int argc, char **argv) | |||
33 | char *prog; | 33 | char *prog; |
34 | 34 | ||
35 | if ((argc < 2) || (**(argv + 1) == '-')) { | 35 | if ((argc < 2) || (**(argv + 1) == '-')) { |
36 | usage(chroot_usage); | 36 | show_usage(); |
37 | } | 37 | } |
38 | argc--; | 38 | argc--; |
39 | argv++; | 39 | argv++; |
diff --git a/coreutils/cmp.c b/coreutils/cmp.c index dd70261df..c04b6e1c9 100644 --- a/coreutils/cmp.c +++ b/coreutils/cmp.c | |||
@@ -36,7 +36,7 @@ int cmp_main(int argc, char **argv) | |||
36 | 36 | ||
37 | /* parse argv[] */ | 37 | /* parse argv[] */ |
38 | if (argc < 2 || 3 < argc) | 38 | if (argc < 2 || 3 < argc) |
39 | usage(cmp_usage); | 39 | show_usage(); |
40 | 40 | ||
41 | fp1 = xfopen(argv[1], "r"); | 41 | fp1 = xfopen(argv[1], "r"); |
42 | if (argv[2] != NULL) { | 42 | if (argv[2] != NULL) { |
diff --git a/coreutils/date.c b/coreutils/date.c index 8b6a0620d..21d31bb25 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -151,7 +151,7 @@ int date_main(int argc, char **argv) | |||
151 | case 's': | 151 | case 's': |
152 | set_time = 1; | 152 | set_time = 1; |
153 | if ((date_str != NULL) || ((date_str = optarg) == NULL)) { | 153 | if ((date_str != NULL) || ((date_str = optarg) == NULL)) { |
154 | usage(date_usage); | 154 | show_usage(); |
155 | } | 155 | } |
156 | break; | 156 | break; |
157 | case 'u': | 157 | case 'u': |
@@ -162,10 +162,10 @@ int date_main(int argc, char **argv) | |||
162 | case 'd': | 162 | case 'd': |
163 | use_arg = 1; | 163 | use_arg = 1; |
164 | if ((date_str != NULL) || ((date_str = optarg) == NULL)) | 164 | if ((date_str != NULL) || ((date_str = optarg) == NULL)) |
165 | usage(date_usage); | 165 | show_usage(); |
166 | break; | 166 | break; |
167 | default: | 167 | default: |
168 | usage(date_usage); | 168 | show_usage(); |
169 | } | 169 | } |
170 | } | 170 | } |
171 | 171 | ||
@@ -178,7 +178,7 @@ int date_main(int argc, char **argv) | |||
178 | #if 0 | 178 | #if 0 |
179 | else { | 179 | else { |
180 | error_msg("date_str='%s' date_fmt='%s'\n", date_str, date_fmt); | 180 | error_msg("date_str='%s' date_fmt='%s'\n", date_str, date_fmt); |
181 | usage(date_usage); | 181 | show_usage(); |
182 | } | 182 | } |
183 | #endif | 183 | #endif |
184 | 184 | ||
diff --git a/coreutils/dd.c b/coreutils/dd.c index 75bbfbac2..e445e0435 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -84,7 +84,7 @@ int dd_main(int argc, char **argv) | |||
84 | buf++; | 84 | buf++; |
85 | } | 85 | } |
86 | } else | 86 | } else |
87 | usage(dd_usage); | 87 | show_usage(); |
88 | } | 88 | } |
89 | 89 | ||
90 | buf = xmalloc(bs); | 90 | buf = xmalloc(bs); |
diff --git a/coreutils/df.c b/coreutils/df.c index 55919793c..8b6726b75 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -143,7 +143,7 @@ extern int df_main(int argc, char **argv) | |||
143 | return status; | 143 | return status; |
144 | 144 | ||
145 | print_df_usage: | 145 | print_df_usage: |
146 | usage(df_usage); | 146 | show_usage(); |
147 | return(FALSE); | 147 | return(FALSE); |
148 | } | 148 | } |
149 | 149 | ||
diff --git a/coreutils/dirname.c b/coreutils/dirname.c index 2e11a69dc..e34ecf8a9 100644 --- a/coreutils/dirname.c +++ b/coreutils/dirname.c | |||
@@ -30,7 +30,7 @@ extern int dirname_main(int argc, char **argv) | |||
30 | char* s; | 30 | char* s; |
31 | 31 | ||
32 | if ((argc < 2) || (**(argv + 1) == '-')) | 32 | if ((argc < 2) || (**(argv + 1) == '-')) |
33 | usage(dirname_usage); | 33 | show_usage(); |
34 | argv++; | 34 | argv++; |
35 | 35 | ||
36 | s=*argv+strlen(*argv)-1; | 36 | s=*argv+strlen(*argv)-1; |
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 9fd952c31..32423611c 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c | |||
@@ -31,7 +31,7 @@ int dos2unix_main( int argc, char **argv ) { | |||
31 | if (argc > 1) { | 31 | if (argc > 1) { |
32 | c = *argv[1]; | 32 | c = *argv[1]; |
33 | if (c == '-') { | 33 | if (c == '-') { |
34 | usage(dos2unix_usage); | 34 | show_usage(); |
35 | } | 35 | } |
36 | } | 36 | } |
37 | c = getchar(); | 37 | c = getchar(); |
diff --git a/coreutils/du.c b/coreutils/du.c index c56afbc4f..516f4c92b 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -163,7 +163,7 @@ int du_main(int argc, char **argv) | |||
163 | case 'k': break; | 163 | case 'k': break; |
164 | #endif | 164 | #endif |
165 | default: | 165 | default: |
166 | usage(du_usage); | 166 | show_usage(); |
167 | } | 167 | } |
168 | } | 168 | } |
169 | 169 | ||
@@ -187,7 +187,7 @@ int du_main(int argc, char **argv) | |||
187 | return status; | 187 | return status; |
188 | } | 188 | } |
189 | 189 | ||
190 | /* $Id: du.c,v 1.36 2001/01/27 09:33:38 andersen Exp $ */ | 190 | /* $Id: du.c,v 1.37 2001/02/14 21:23:05 andersen Exp $ */ |
191 | /* | 191 | /* |
192 | Local Variables: | 192 | Local Variables: |
193 | c-file-style: "linux" | 193 | c-file-style: "linux" |
diff --git a/coreutils/head.c b/coreutils/head.c index 7d87f32cb..a2d774437 100644 --- a/coreutils/head.c +++ b/coreutils/head.c | |||
@@ -57,7 +57,7 @@ int head_main(int argc, char **argv) | |||
57 | break; | 57 | break; |
58 | /* fallthrough */ | 58 | /* fallthrough */ |
59 | default: | 59 | default: |
60 | usage(head_usage); | 60 | show_usage(); |
61 | } | 61 | } |
62 | } | 62 | } |
63 | 63 | ||
diff --git a/coreutils/id.c b/coreutils/id.c index 650e3db20..3667b32b2 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -53,11 +53,11 @@ extern int id_main(int argc, char **argv) | |||
53 | name_not_number++; | 53 | name_not_number++; |
54 | break; | 54 | break; |
55 | default: | 55 | default: |
56 | usage(id_usage); | 56 | show_usage(); |
57 | } | 57 | } |
58 | } | 58 | } |
59 | 59 | ||
60 | if (no_user && no_group) usage(id_usage); | 60 | if (no_user && no_group) show_usage(); |
61 | 61 | ||
62 | if (argv[optind] == NULL) { | 62 | if (argv[optind] == NULL) { |
63 | if (print_real) { | 63 | if (print_real) { |
diff --git a/coreutils/length.c b/coreutils/length.c index 1ab4e3a58..9119adca8 100644 --- a/coreutils/length.c +++ b/coreutils/length.c | |||
@@ -7,7 +7,7 @@ | |||
7 | extern int length_main(int argc, char **argv) | 7 | extern int length_main(int argc, char **argv) |
8 | { | 8 | { |
9 | if (argc != 2 || **(argv + 1) == '-') | 9 | if (argc != 2 || **(argv + 1) == '-') |
10 | usage(length_usage); | 10 | show_usage(); |
11 | printf("%lu\n", (long)strlen(argv[1])); | 11 | printf("%lu\n", (long)strlen(argv[1])); |
12 | return EXIT_SUCCESS; | 12 | return EXIT_SUCCESS; |
13 | } | 13 | } |
diff --git a/coreutils/ln.c b/coreutils/ln.c index 54e81f4c5..9dc7f5d8c 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -101,7 +101,7 @@ extern int ln_main(int argc, char **argv) | |||
101 | flag |= LN_NODEREFERENCE; | 101 | flag |= LN_NODEREFERENCE; |
102 | break; | 102 | break; |
103 | default: | 103 | default: |
104 | usage(ln_usage); | 104 | show_usage(); |
105 | } | 105 | } |
106 | } | 106 | } |
107 | while(optind<(argc-1)) { | 107 | while(optind<(argc-1)) { |
diff --git a/coreutils/logname.c b/coreutils/logname.c index d9056c69d..a1887aaf9 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c | |||
@@ -30,7 +30,7 @@ extern int logname_main(int argc, char **argv) | |||
30 | char user[9]; | 30 | char user[9]; |
31 | 31 | ||
32 | if (argc > 1) | 32 | if (argc > 1) |
33 | usage(logname_usage); | 33 | show_usage(); |
34 | 34 | ||
35 | my_getpwuid(user, geteuid()); | 35 | my_getpwuid(user, geteuid()); |
36 | if (*user) { | 36 | if (*user) { |
diff --git a/coreutils/ls.c b/coreutils/ls.c index 42b24456a..06e23e612 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -928,5 +928,5 @@ extern int ls_main(int argc, char **argv) | |||
928 | return(status); | 928 | return(status); |
929 | 929 | ||
930 | print_usage_message: | 930 | print_usage_message: |
931 | usage(ls_usage); | 931 | show_usage(); |
932 | } | 932 | } |
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c index 97a940059..3decafdf4 100644 --- a/coreutils/md5sum.c +++ b/coreutils/md5sum.c | |||
@@ -850,7 +850,7 @@ int md5sum_main(int argc, | |||
850 | break; | 850 | break; |
851 | 851 | ||
852 | default: | 852 | default: |
853 | usage(md5sum_usage); | 853 | show_usage(); |
854 | } | 854 | } |
855 | } | 855 | } |
856 | 856 | ||
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index 299f29806..285d34f12 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c | |||
@@ -48,7 +48,7 @@ extern int mkdir_main(int argc, char **argv) | |||
48 | switch (**argv) { | 48 | switch (**argv) { |
49 | case 'm': | 49 | case 'm': |
50 | if (--argc == 0) | 50 | if (--argc == 0) |
51 | usage(mkdir_usage); | 51 | show_usage(); |
52 | /* Find the specified modes */ | 52 | /* Find the specified modes */ |
53 | mode = 0; | 53 | mode = 0; |
54 | if (parse_mode(*(++argv), &mode) == FALSE) { | 54 | if (parse_mode(*(++argv), &mode) == FALSE) { |
@@ -63,7 +63,7 @@ extern int mkdir_main(int argc, char **argv) | |||
63 | parentFlag = TRUE; | 63 | parentFlag = TRUE; |
64 | break; | 64 | break; |
65 | default: | 65 | default: |
66 | usage(mkdir_usage); | 66 | show_usage(); |
67 | } | 67 | } |
68 | } | 68 | } |
69 | argc--; | 69 | argc--; |
@@ -71,7 +71,7 @@ extern int mkdir_main(int argc, char **argv) | |||
71 | } | 71 | } |
72 | 72 | ||
73 | if (argc < 1) { | 73 | if (argc < 1) { |
74 | usage(mkdir_usage); | 74 | show_usage(); |
75 | } | 75 | } |
76 | 76 | ||
77 | while (argc > 0) { | 77 | while (argc > 0) { |
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index b31e6f172..56a04f772 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c | |||
@@ -37,7 +37,7 @@ extern int mkfifo_main(int argc, char **argv) | |||
37 | /* Parse any options */ | 37 | /* Parse any options */ |
38 | while (argc > 1) { | 38 | while (argc > 1) { |
39 | if (**argv != '-') | 39 | if (**argv != '-') |
40 | usage(mkfifo_usage); | 40 | show_usage(); |
41 | thisarg = *argv; | 41 | thisarg = *argv; |
42 | thisarg++; | 42 | thisarg++; |
43 | switch (*thisarg) { | 43 | switch (*thisarg) { |
@@ -47,13 +47,13 @@ extern int mkfifo_main(int argc, char **argv) | |||
47 | parse_mode(*argv, &mode); | 47 | parse_mode(*argv, &mode); |
48 | break; | 48 | break; |
49 | default: | 49 | default: |
50 | usage(mkfifo_usage); | 50 | show_usage(); |
51 | } | 51 | } |
52 | argc--; | 52 | argc--; |
53 | argv++; | 53 | argv++; |
54 | } | 54 | } |
55 | if (argc < 1 || *argv[0] == '-') | 55 | if (argc < 1 || *argv[0] == '-') |
56 | usage(mkfifo_usage); | 56 | show_usage(); |
57 | if (mkfifo(*argv, mode) < 0) | 57 | if (mkfifo(*argv, mode) < 0) |
58 | perror_msg_and_die("mkfifo"); | 58 | perror_msg_and_die("mkfifo"); |
59 | return EXIT_SUCCESS; | 59 | return EXIT_SUCCESS; |
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index c761aea6f..73f6e06f1 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c | |||
@@ -53,13 +53,13 @@ int mknod_main(int argc, char **argv) | |||
53 | umask(0); | 53 | umask(0); |
54 | break; | 54 | break; |
55 | default: | 55 | default: |
56 | usage(mknod_usage); | 56 | show_usage(); |
57 | } | 57 | } |
58 | argc--; | 58 | argc--; |
59 | argv++; | 59 | argv++; |
60 | } | 60 | } |
61 | if (argc != 4 && argc != 2) { | 61 | if (argc != 4 && argc != 2) { |
62 | usage(mknod_usage); | 62 | show_usage(); |
63 | } | 63 | } |
64 | switch (argv[1][0]) { | 64 | switch (argv[1][0]) { |
65 | case 'c': | 65 | case 'c': |
@@ -72,11 +72,11 @@ int mknod_main(int argc, char **argv) | |||
72 | case 'p': | 72 | case 'p': |
73 | mode = S_IFIFO; | 73 | mode = S_IFIFO; |
74 | if (argc!=2) { | 74 | if (argc!=2) { |
75 | usage(mknod_usage); | 75 | show_usage(); |
76 | } | 76 | } |
77 | break; | 77 | break; |
78 | default: | 78 | default: |
79 | usage(mknod_usage); | 79 | show_usage(); |
80 | } | 80 | } |
81 | 81 | ||
82 | if (mode == S_IFCHR || mode == S_IFBLK) { | 82 | if (mode == S_IFCHR || mode == S_IFBLK) { |
diff --git a/coreutils/printf.c b/coreutils/printf.c index 72bc7ae89..26a200e85 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -143,7 +143,7 @@ int printf_main(int argc, char **argv) | |||
143 | 143 | ||
144 | exit_status = 0; | 144 | exit_status = 0; |
145 | if (argc <= 1 || **(argv + 1) == '-') { | 145 | if (argc <= 1 || **(argv + 1) == '-') { |
146 | usage(printf_usage); | 146 | show_usage(); |
147 | } | 147 | } |
148 | 148 | ||
149 | format = argv[1]; | 149 | format = argv[1]; |
diff --git a/coreutils/rm.c b/coreutils/rm.c index ce293a2aa..566076707 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c | |||
@@ -84,7 +84,7 @@ extern int rm_main(int argc, char **argv) | |||
84 | stopIt = TRUE; | 84 | stopIt = TRUE; |
85 | break; | 85 | break; |
86 | default: | 86 | default: |
87 | usage(rm_usage); | 87 | show_usage(); |
88 | } | 88 | } |
89 | argc--; | 89 | argc--; |
90 | argv++; | 90 | argv++; |
@@ -94,7 +94,7 @@ extern int rm_main(int argc, char **argv) | |||
94 | } | 94 | } |
95 | 95 | ||
96 | if (argc < 1 && forceFlag == FALSE) { | 96 | if (argc < 1 && forceFlag == FALSE) { |
97 | usage(rm_usage); | 97 | show_usage(); |
98 | } | 98 | } |
99 | 99 | ||
100 | while (argc-- > 0) { | 100 | while (argc-- > 0) { |
diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c index 86346ddde..6266ce1ef 100644 --- a/coreutils/rmdir.c +++ b/coreutils/rmdir.c | |||
@@ -33,7 +33,7 @@ extern int rmdir_main(int argc, char **argv) | |||
33 | int status = EXIT_SUCCESS; | 33 | int status = EXIT_SUCCESS; |
34 | 34 | ||
35 | if (argc == 1 || **(argv + 1) == '-') | 35 | if (argc == 1 || **(argv + 1) == '-') |
36 | usage(rmdir_usage); | 36 | show_usage(); |
37 | 37 | ||
38 | while (--argc > 0) { | 38 | while (--argc > 0) { |
39 | if (rmdir(*(++argv)) == -1) { | 39 | if (rmdir(*(++argv)) == -1) { |
diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 61b7ce404..d21af19b3 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c | |||
@@ -29,7 +29,7 @@ | |||
29 | extern int sleep_main(int argc, char **argv) | 29 | extern int sleep_main(int argc, char **argv) |
30 | { | 30 | { |
31 | if ((argc < 2) || (**(argv + 1) == '-')) { | 31 | if ((argc < 2) || (**(argv + 1) == '-')) { |
32 | usage(sleep_usage); | 32 | show_usage(); |
33 | } | 33 | } |
34 | 34 | ||
35 | if (sleep(atoi(*(++argv))) != 0) | 35 | if (sleep(atoi(*(++argv))) != 0) |
diff --git a/coreutils/sort.c b/coreutils/sort.c index 2aef2d955..4984f5dfe 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -56,7 +56,7 @@ int sort_main(int argc, char **argv) | |||
56 | break; | 56 | break; |
57 | #endif | 57 | #endif |
58 | default: | 58 | default: |
59 | usage(sort_usage); | 59 | show_usage(); |
60 | } | 60 | } |
61 | } | 61 | } |
62 | 62 | ||
diff --git a/coreutils/sync.c b/coreutils/sync.c index f95c24c6c..fc5a42b8a 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c | |||
@@ -28,6 +28,6 @@ | |||
28 | extern int sync_main(int argc, char **argv) | 28 | extern int sync_main(int argc, char **argv) |
29 | { | 29 | { |
30 | if (argc > 1 && **(argv + 1) == '-') | 30 | if (argc > 1 && **(argv + 1) == '-') |
31 | usage(sync_usage); | 31 | show_usage(); |
32 | return(sync()); | 32 | return(sync()); |
33 | } | 33 | } |
diff --git a/coreutils/tail.c b/coreutils/tail.c index d45b29c4c..a3b8f6d23 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -103,7 +103,7 @@ int tail_main(int argc, char **argv) | |||
103 | break; | 103 | break; |
104 | #endif | 104 | #endif |
105 | default: | 105 | default: |
106 | usage(tail_usage); | 106 | show_usage(); |
107 | } | 107 | } |
108 | } | 108 | } |
109 | 109 | ||
diff --git a/coreutils/tee.c b/coreutils/tee.c index aa3098c6a..439cf7dc5 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
@@ -38,7 +38,7 @@ tee_main(int argc, char **argv) | |||
38 | mode = "a"; | 38 | mode = "a"; |
39 | break; | 39 | break; |
40 | default: | 40 | default: |
41 | usage(tee_usage); | 41 | show_usage(); |
42 | } | 42 | } |
43 | } | 43 | } |
44 | 44 | ||
diff --git a/coreutils/touch.c b/coreutils/touch.c index e174baa47..a3256d559 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -44,13 +44,13 @@ extern int touch_main(int argc, char **argv) | |||
44 | create = FALSE; | 44 | create = FALSE; |
45 | break; | 45 | break; |
46 | default: | 46 | default: |
47 | usage(touch_usage); | 47 | show_usage(); |
48 | } | 48 | } |
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
52 | if (argc < 1) { | 52 | if (argc < 1) { |
53 | usage(touch_usage); | 53 | show_usage(); |
54 | } | 54 | } |
55 | 55 | ||
56 | while (argc > 0) { | 56 | while (argc > 0) { |
diff --git a/coreutils/tr.c b/coreutils/tr.c index 36f29de44..92f399e14 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -170,7 +170,7 @@ extern int tr_main(int argc, char **argv) | |||
170 | sq_fl = TRUE; | 170 | sq_fl = TRUE; |
171 | break; | 171 | break; |
172 | default: | 172 | default: |
173 | usage(tr_usage); | 173 | show_usage(); |
174 | } | 174 | } |
175 | } | 175 | } |
176 | index++; | 176 | index++; |
diff --git a/coreutils/tty.c b/coreutils/tty.c index 2a64b149d..d71d8dedb 100644 --- a/coreutils/tty.c +++ b/coreutils/tty.c | |||
@@ -32,7 +32,7 @@ extern int tty_main(int argc, char **argv) | |||
32 | 32 | ||
33 | if (argc > 1) { | 33 | if (argc > 1) { |
34 | if (argv[1][0] != '-' || argv[1][1] != 's') | 34 | if (argv[1][0] != '-' || argv[1][1] != 's') |
35 | usage(tty_usage); | 35 | show_usage(); |
36 | } else { | 36 | } else { |
37 | tty = ttyname(0); | 37 | tty = ttyname(0); |
38 | if (tty) | 38 | if (tty) |
diff --git a/coreutils/uname.c b/coreutils/uname.c index deaffd700..899da7792 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -106,7 +106,7 @@ int uname_main(int argc, char **argv) | |||
106 | PRINT_MACHINE); | 106 | PRINT_MACHINE); |
107 | break; | 107 | break; |
108 | default: | 108 | default: |
109 | usage(uname_usage); | 109 | show_usage(); |
110 | } | 110 | } |
111 | } | 111 | } |
112 | } | 112 | } |
diff --git a/coreutils/usleep.c b/coreutils/usleep.c index 86dc0501b..c67c365b8 100644 --- a/coreutils/usleep.c +++ b/coreutils/usleep.c | |||
@@ -28,7 +28,7 @@ | |||
28 | extern int usleep_main(int argc, char **argv) | 28 | extern int usleep_main(int argc, char **argv) |
29 | { | 29 | { |
30 | if ((argc < 2) || (**(argv + 1) == '-')) { | 30 | if ((argc < 2) || (**(argv + 1) == '-')) { |
31 | usage(usleep_usage); | 31 | show_usage(); |
32 | } | 32 | } |
33 | 33 | ||
34 | usleep(atoi(*(++argv))); /* return void */ | 34 | usleep(atoi(*(++argv))); /* return void */ |
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index cccc52872..c0e8cea8c 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -292,7 +292,7 @@ int uudecode_main (int argc, | |||
292 | break; | 292 | break; |
293 | 293 | ||
294 | default: | 294 | default: |
295 | usage(uudecode_usage); | 295 | show_usage(); |
296 | } | 296 | } |
297 | } | 297 | } |
298 | 298 | ||
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 73098ba26..8d5af4a8a 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
@@ -167,7 +167,7 @@ int uuencode_main (int argc, | |||
167 | break; | 167 | break; |
168 | 168 | ||
169 | default: | 169 | default: |
170 | usage(uuencode_usage); | 170 | show_usage(); |
171 | } | 171 | } |
172 | } | 172 | } |
173 | 173 | ||
@@ -188,7 +188,7 @@ int uuencode_main (int argc, | |||
188 | 188 | ||
189 | case 0: | 189 | case 0: |
190 | default: | 190 | default: |
191 | usage(uuencode_usage); | 191 | show_usage(); |
192 | } | 192 | } |
193 | 193 | ||
194 | printf("begin%s %o %s\n", trans_ptr == uu_std ? "" : "-base64", | 194 | printf("begin%s %o %s\n", trans_ptr == uu_std ? "" : "-base64", |
diff --git a/coreutils/wc.c b/coreutils/wc.c index 619c161a7..f41687422 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c | |||
@@ -126,7 +126,7 @@ int wc_main(int argc, char **argv) | |||
126 | print_words = 1; | 126 | print_words = 1; |
127 | break; | 127 | break; |
128 | default: | 128 | default: |
129 | usage(wc_usage); | 129 | show_usage(); |
130 | } | 130 | } |
131 | } | 131 | } |
132 | 132 | ||
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index 398e37315..54df0bf12 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -31,7 +31,7 @@ extern int whoami_main(int argc, char **argv) | |||
31 | uid_t uid = geteuid(); | 31 | uid_t uid = geteuid(); |
32 | 32 | ||
33 | if (argc > 1) | 33 | if (argc > 1) |
34 | usage(whoami_usage); | 34 | show_usage(); |
35 | 35 | ||
36 | my_getpwuid(user, uid); | 36 | my_getpwuid(user, uid); |
37 | if (*user) { | 37 | if (*user) { |
diff --git a/coreutils/yes.c b/coreutils/yes.c index 0ce49499f..0a8ad83a7 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c | |||
@@ -29,7 +29,7 @@ extern int yes_main(int argc, char **argv) | |||
29 | int i; | 29 | int i; |
30 | 30 | ||
31 | if (argc >= 2 && *argv[1] == '-') | 31 | if (argc >= 2 && *argv[1] == '-') |
32 | usage(yes_usage); | 32 | show_usage(); |
33 | 33 | ||
34 | if (argc == 1) { | 34 | if (argc == 1) { |
35 | while (1) | 35 | while (1) |