diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/basename.c | 2 | ||||
-rw-r--r-- | coreutils/cat.c | 2 | ||||
-rw-r--r-- | coreutils/cut.c | 2 | ||||
-rw-r--r-- | coreutils/date.c | 3 | ||||
-rw-r--r-- | coreutils/df.c | 2 | ||||
-rw-r--r-- | coreutils/dirname.c | 2 | ||||
-rw-r--r-- | coreutils/du.c | 4 | ||||
-rw-r--r-- | coreutils/echo.c | 2 | ||||
-rw-r--r-- | coreutils/head.c | 4 | ||||
-rw-r--r-- | coreutils/hostid.c | 2 | ||||
-rw-r--r-- | coreutils/id.c | 2 | ||||
-rw-r--r-- | coreutils/ln.c | 2 | ||||
-rw-r--r-- | coreutils/logname.c | 2 | ||||
-rw-r--r-- | coreutils/mkdir.c | 2 | ||||
-rw-r--r-- | coreutils/mkfifo.c | 3 | ||||
-rw-r--r-- | coreutils/mknod.c | 2 | ||||
-rw-r--r-- | coreutils/pwd.c | 2 | ||||
-rw-r--r-- | coreutils/rm.c | 2 | ||||
-rw-r--r-- | coreutils/rmdir.c | 2 | ||||
-rw-r--r-- | coreutils/sleep.c | 4 | ||||
-rw-r--r-- | coreutils/sort.c | 4 | ||||
-rw-r--r-- | coreutils/sync.c | 2 | ||||
-rw-r--r-- | coreutils/tail.c | 2 | ||||
-rw-r--r-- | coreutils/tee.c | 4 | ||||
-rw-r--r-- | coreutils/test.c | 2 | ||||
-rw-r--r-- | coreutils/touch.c | 2 | ||||
-rw-r--r-- | coreutils/tty.c | 2 | ||||
-rw-r--r-- | coreutils/uname.c | 2 | ||||
-rw-r--r-- | coreutils/uniq.c | 4 | ||||
-rw-r--r-- | coreutils/usleep.c | 2 | ||||
-rw-r--r-- | coreutils/uudecode.c | 2 | ||||
-rw-r--r-- | coreutils/uuencode.c | 2 | ||||
-rw-r--r-- | coreutils/wc.c | 2 | ||||
-rw-r--r-- | coreutils/whoami.c | 2 |
34 files changed, 40 insertions, 42 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index 78265a5e6..ac371d274 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c | |||
@@ -60,6 +60,6 @@ extern int basename_main(int argc, char **argv) | |||
60 | s[m-n] = '\0'; | 60 | s[m-n] = '\0'; |
61 | } | 61 | } |
62 | printf("%s\n", s); | 62 | printf("%s\n", s); |
63 | exit(TRUE); | 63 | return(TRUE); |
64 | } | 64 | } |
65 | 65 | ||
diff --git a/coreutils/cat.c b/coreutils/cat.c index 561b24f3f..800443460 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -61,7 +61,7 @@ extern int cat_main(int argc, char **argv) | |||
61 | } | 61 | } |
62 | print_file(file); | 62 | print_file(file); |
63 | } | 63 | } |
64 | exit(TRUE); | 64 | return(TRUE); |
65 | } | 65 | } |
66 | 66 | ||
67 | /* | 67 | /* |
diff --git a/coreutils/cut.c b/coreutils/cut.c index 89a934e76..7b183e8fd 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -307,7 +307,7 @@ int cut_main(int argc, char **argv) | |||
307 | cut(); | 307 | cut(); |
308 | } | 308 | } |
309 | 309 | ||
310 | exit(exit_status); | 310 | return(exit_status); |
311 | } | 311 | } |
312 | 312 | ||
313 | /* cut - extract columns from a file or stdin. Author: Michael J. Holme | 313 | /* cut - extract columns from a file or stdin. Author: Michael J. Holme |
diff --git a/coreutils/date.c b/coreutils/date.c index 8e584cecc..9e8e3f3eb 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -273,6 +273,5 @@ int date_main(int argc, char **argv) | |||
273 | strftime(t_buff, 200, date_fmt, &tm_time); | 273 | strftime(t_buff, 200, date_fmt, &tm_time); |
274 | printf("%s\n", t_buff); | 274 | printf("%s\n", t_buff); |
275 | 275 | ||
276 | exit(TRUE); | 276 | return(TRUE); |
277 | |||
278 | } | 277 | } |
diff --git a/coreutils/df.c b/coreutils/df.c index 07e61d87d..ba3227f30 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -108,7 +108,7 @@ extern int df_main(int argc, char **argv) | |||
108 | endmntent(mountTable); | 108 | endmntent(mountTable); |
109 | } | 109 | } |
110 | 110 | ||
111 | exit(TRUE); | 111 | return(TRUE); |
112 | } | 112 | } |
113 | 113 | ||
114 | /* | 114 | /* |
diff --git a/coreutils/dirname.c b/coreutils/dirname.c index ce3cd6f03..847842eab 100644 --- a/coreutils/dirname.c +++ b/coreutils/dirname.c | |||
@@ -45,5 +45,5 @@ extern int dirname_main(int argc, char **argv) | |||
45 | if (s && *s) | 45 | if (s && *s) |
46 | *s = '\0'; | 46 | *s = '\0'; |
47 | printf("%s\n", (s)? *argv : "."); | 47 | printf("%s\n", (s)? *argv : "."); |
48 | exit(TRUE); | 48 | return(TRUE); |
49 | } | 49 | } |
diff --git a/coreutils/du.c b/coreutils/du.c index 9c699978e..b8e296ddd 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -181,10 +181,10 @@ int du_main(int argc, char **argv) | |||
181 | } | 181 | } |
182 | } | 182 | } |
183 | 183 | ||
184 | exit(0); | 184 | return(0); |
185 | } | 185 | } |
186 | 186 | ||
187 | /* $Id: du.c,v 1.19 2000/05/10 05:05:45 erik Exp $ */ | 187 | /* $Id: du.c,v 1.20 2000/06/19 17:25:39 andersen Exp $ */ |
188 | /* | 188 | /* |
189 | Local Variables: | 189 | Local Variables: |
190 | c-file-style: "linux" | 190 | c-file-style: "linux" |
diff --git a/coreutils/echo.c b/coreutils/echo.c index b31f2229b..4659e4bc6 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -96,7 +96,7 @@ echo_main(int argc, char** argv) | |||
96 | if (! nflag) | 96 | if (! nflag) |
97 | putchar('\n'); | 97 | putchar('\n'); |
98 | fflush(stdout); | 98 | fflush(stdout); |
99 | exit( 0); | 99 | return( 0); |
100 | } | 100 | } |
101 | 101 | ||
102 | /*- | 102 | /*- |
diff --git a/coreutils/head.c b/coreutils/head.c index f4ebe05c9..f42f4837d 100644 --- a/coreutils/head.c +++ b/coreutils/head.c | |||
@@ -109,7 +109,7 @@ int head_main(int argc, char **argv) | |||
109 | } | 109 | } |
110 | } | 110 | } |
111 | } | 111 | } |
112 | exit(0); | 112 | return(0); |
113 | } | 113 | } |
114 | 114 | ||
115 | /* $Id: head.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */ | 115 | /* $Id: head.c,v 1.11 2000/06/19 17:25:39 andersen Exp $ */ |
diff --git a/coreutils/hostid.c b/coreutils/hostid.c index 9e503e598..f1010a65d 100644 --- a/coreutils/hostid.c +++ b/coreutils/hostid.c | |||
@@ -26,5 +26,5 @@ | |||
26 | extern int hostid_main(int argc, char **argv) | 26 | extern int hostid_main(int argc, char **argv) |
27 | { | 27 | { |
28 | printf("%lx\n", gethostid()); | 28 | printf("%lx\n", gethostid()); |
29 | exit(TRUE); | 29 | return(TRUE); |
30 | } | 30 | } |
diff --git a/coreutils/id.c b/coreutils/id.c index 23bbc16ae..69dfe2658 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -89,7 +89,7 @@ extern int id_main(int argc, char **argv) | |||
89 | my_getpwnam(user), user, my_getgrnam(group), group); | 89 | my_getpwnam(user), user, my_getgrnam(group), group); |
90 | 90 | ||
91 | 91 | ||
92 | exit(0); | 92 | return(0); |
93 | } | 93 | } |
94 | 94 | ||
95 | 95 | ||
diff --git a/coreutils/ln.c b/coreutils/ln.c index 371482251..2233a1d68 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -136,7 +136,7 @@ extern int ln_main(int argc, char **argv) | |||
136 | exit FALSE; | 136 | exit FALSE; |
137 | } | 137 | } |
138 | } | 138 | } |
139 | exit TRUE; | 139 | return( TRUE); |
140 | } | 140 | } |
141 | 141 | ||
142 | /* | 142 | /* |
diff --git a/coreutils/logname.c b/coreutils/logname.c index 7c6153f64..4b4483cc1 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c | |||
@@ -42,5 +42,5 @@ extern int logname_main(int argc, char **argv) | |||
42 | exit(TRUE); | 42 | exit(TRUE); |
43 | } | 43 | } |
44 | fprintf(stderr, "no login name\n"); | 44 | fprintf(stderr, "no login name\n"); |
45 | exit(FALSE); | 45 | return(FALSE); |
46 | } | 46 | } |
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index 96649868d..b18c949b8 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c | |||
@@ -112,5 +112,5 @@ extern int mkdir_main(int argc, char **argv) | |||
112 | argc--; | 112 | argc--; |
113 | argv++; | 113 | argv++; |
114 | } | 114 | } |
115 | exit TRUE; | 115 | return( TRUE); |
116 | } | 116 | } |
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index 46b1343cd..f701a97d5 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c | |||
@@ -65,7 +65,6 @@ extern int mkfifo_main(int argc, char **argv) | |||
65 | if (mkfifo(*argv, mode) < 0) { | 65 | if (mkfifo(*argv, mode) < 0) { |
66 | perror("mkfifo"); | 66 | perror("mkfifo"); |
67 | exit(255); | 67 | exit(255); |
68 | } else { | ||
69 | exit(TRUE); | ||
70 | } | 68 | } |
69 | return(TRUE); | ||
71 | } | 70 | } |
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index 8f411a341..ac96817ee 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c | |||
@@ -98,6 +98,6 @@ int mknod_main(int argc, char **argv) | |||
98 | 98 | ||
99 | if (mknod(argv[0], mode, dev) != 0) | 99 | if (mknod(argv[0], mode, dev) != 0) |
100 | fatalError("%s: %s\n", argv[0], strerror(errno)); | 100 | fatalError("%s: %s\n", argv[0], strerror(errno)); |
101 | exit (TRUE); | 101 | return (TRUE); |
102 | } | 102 | } |
103 | 103 | ||
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index 146ef332b..87553b3de 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c | |||
@@ -34,5 +34,5 @@ extern int pwd_main(int argc, char **argv) | |||
34 | fatalError("pwd: %s\n", strerror(errno)); | 34 | fatalError("pwd: %s\n", strerror(errno)); |
35 | 35 | ||
36 | printf("%s\n", buf); | 36 | printf("%s\n", buf); |
37 | exit(TRUE); | 37 | return(TRUE); |
38 | } | 38 | } |
diff --git a/coreutils/rm.c b/coreutils/rm.c index b1cda3aed..2067d878c 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c | |||
@@ -112,5 +112,5 @@ extern int rm_main(int argc, char **argv) | |||
112 | } | 112 | } |
113 | } | 113 | } |
114 | } | 114 | } |
115 | exit(TRUE); | 115 | return(TRUE); |
116 | } | 116 | } |
diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c index 61d7f2aa5..0751808c0 100644 --- a/coreutils/rmdir.c +++ b/coreutils/rmdir.c | |||
@@ -44,5 +44,5 @@ extern int rmdir_main(int argc, char **argv) | |||
44 | exit(FALSE); | 44 | exit(FALSE); |
45 | } | 45 | } |
46 | } | 46 | } |
47 | exit(TRUE); | 47 | return(TRUE); |
48 | } | 48 | } |
diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 13f07c02f..c7ab32d4b 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c | |||
@@ -39,6 +39,6 @@ extern int sleep_main(int argc, char **argv) | |||
39 | if (sleep(atoi(*(++argv))) != 0) { | 39 | if (sleep(atoi(*(++argv))) != 0) { |
40 | perror("sleep"); | 40 | perror("sleep"); |
41 | exit(FALSE); | 41 | exit(FALSE); |
42 | } else | 42 | } |
43 | exit(TRUE); | 43 | return(TRUE); |
44 | } | 44 | } |
diff --git a/coreutils/sort.c b/coreutils/sort.c index 1edc7d1ca..93062faa4 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -301,7 +301,7 @@ int sort_main(int argc, char **argv) | |||
301 | list_release(&list); | 301 | list_release(&list); |
302 | } | 302 | } |
303 | 303 | ||
304 | exit(0); | 304 | return(0); |
305 | } | 305 | } |
306 | 306 | ||
307 | /* $Id: sort.c,v 1.16 2000/05/12 19:41:47 erik Exp $ */ | 307 | /* $Id: sort.c,v 1.17 2000/06/19 17:25:40 andersen Exp $ */ |
diff --git a/coreutils/sync.c b/coreutils/sync.c index 33c79228d..db35d72fa 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c | |||
@@ -33,5 +33,5 @@ extern int sync_main(int argc, char **argv) | |||
33 | #endif | 33 | #endif |
34 | ); | 34 | ); |
35 | } | 35 | } |
36 | exit(sync()); | 36 | return(sync()); |
37 | } | 37 | } |
diff --git a/coreutils/tail.c b/coreutils/tail.c index 2027d921d..3189d204f 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -400,7 +400,7 @@ extern int tail_main(int argc, char **argv) | |||
400 | exit_status |= tail_file(argv[i], n_units); | 400 | exit_status |= tail_file(argv[i], n_units); |
401 | } | 401 | } |
402 | 402 | ||
403 | exit(exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); | 403 | return(exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); |
404 | } | 404 | } |
405 | 405 | ||
406 | 406 | ||
diff --git a/coreutils/tee.c b/coreutils/tee.c index a78edc039..c9b5410d3 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
@@ -130,7 +130,7 @@ int tee_main(int argc, char **argv) | |||
130 | /* Don't bother to close files Exit does that | 130 | /* Don't bother to close files Exit does that |
131 | * automagically, so we can save a few bytes */ | 131 | * automagically, so we can save a few bytes */ |
132 | /* free(FileList); */ | 132 | /* free(FileList); */ |
133 | exit(0); | 133 | return(0); |
134 | } | 134 | } |
135 | 135 | ||
136 | /* $Id: tee.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */ | 136 | /* $Id: tee.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */ |
diff --git a/coreutils/test.c b/coreutils/test.c index 0a16e9328..36da4db0b 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -235,7 +235,7 @@ test_main(int argc, char** argv) | |||
235 | if (*t_wp != NULL && *++t_wp != NULL) | 235 | if (*t_wp != NULL && *++t_wp != NULL) |
236 | syntax(*t_wp, "unknown operand"); | 236 | syntax(*t_wp, "unknown operand"); |
237 | 237 | ||
238 | exit( res); | 238 | return( res); |
239 | } | 239 | } |
240 | 240 | ||
241 | static void | 241 | static void |
diff --git a/coreutils/touch.c b/coreutils/touch.c index 1364bb7d5..f52bb0284 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -81,5 +81,5 @@ extern int touch_main(int argc, char **argv) | |||
81 | argv++; | 81 | argv++; |
82 | } | 82 | } |
83 | 83 | ||
84 | exit(TRUE); | 84 | return(TRUE); |
85 | } | 85 | } |
diff --git a/coreutils/tty.c b/coreutils/tty.c index 3a318ebba..f3c7fb74f 100644 --- a/coreutils/tty.c +++ b/coreutils/tty.c | |||
@@ -46,5 +46,5 @@ extern int tty_main(int argc, char **argv) | |||
46 | else | 46 | else |
47 | puts("not a tty"); | 47 | puts("not a tty"); |
48 | } | 48 | } |
49 | exit(isatty(0) ? TRUE : FALSE); | 49 | return(isatty(0) ? TRUE : FALSE); |
50 | } | 50 | } |
diff --git a/coreutils/uname.c b/coreutils/uname.c index 981ac69ed..b7c88ece5 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -156,7 +156,7 @@ int uname_main(int argc, char **argv) | |||
156 | print_element(PRINT_MACHINE, name.machine); | 156 | print_element(PRINT_MACHINE, name.machine); |
157 | print_element(PRINT_PROCESSOR, processor); | 157 | print_element(PRINT_PROCESSOR, processor); |
158 | 158 | ||
159 | exit(TRUE); | 159 | return(TRUE); |
160 | } | 160 | } |
161 | 161 | ||
162 | /* If the name element set in MASK is selected for printing in `toprint', | 162 | /* If the name element set in MASK is selected for printing in `toprint', |
diff --git a/coreutils/uniq.c b/coreutils/uniq.c index 0cccbd5e7..64acf046a 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c | |||
@@ -184,7 +184,7 @@ int uniq_main(int argc, char **argv) | |||
184 | subject_last(&s); | 184 | subject_last(&s); |
185 | subject_study(&s); | 185 | subject_study(&s); |
186 | 186 | ||
187 | exit(0); | 187 | return(0); |
188 | } | 188 | } |
189 | 189 | ||
190 | /* $Id: uniq.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */ | 190 | /* $Id: uniq.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */ |
diff --git a/coreutils/usleep.c b/coreutils/usleep.c index 34008a638..da6cca9ab 100644 --- a/coreutils/usleep.c +++ b/coreutils/usleep.c | |||
@@ -38,5 +38,5 @@ extern int usleep_main(int argc, char **argv) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | usleep(atoi(*(++argv))); /* return void */ | 40 | usleep(atoi(*(++argv))); /* return void */ |
41 | exit(TRUE); | 41 | return(TRUE); |
42 | } | 42 | } |
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 4216e336a..752497cb0 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -346,5 +346,5 @@ int uudecode_main (int argc, | |||
346 | } | 346 | } |
347 | while (optind < argc); | 347 | while (optind < argc); |
348 | } | 348 | } |
349 | exit(exit_status); | 349 | return(exit_status); |
350 | } | 350 | } |
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 91136b3e6..97801aa09 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
@@ -240,5 +240,5 @@ int uuencode_main (int argc, | |||
240 | errorMsg("Write error\n"); | 240 | errorMsg("Write error\n"); |
241 | exit FALSE; | 241 | exit FALSE; |
242 | } | 242 | } |
243 | exit TRUE; | 243 | return( TRUE); |
244 | } | 244 | } |
diff --git a/coreutils/wc.c b/coreutils/wc.c index 57bc7135a..bad03f791 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c | |||
@@ -166,5 +166,5 @@ int wc_main(int argc, char **argv) | |||
166 | print_counts(total_lines, total_words, total_chars, | 166 | print_counts(total_lines, total_words, total_chars, |
167 | max_length, "total"); | 167 | max_length, "total"); |
168 | } | 168 | } |
169 | exit(TRUE); | 169 | return(TRUE); |
170 | } | 170 | } |
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index da584790d..950f52fb2 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -45,5 +45,5 @@ extern int whoami_main(int argc, char **argv) | |||
45 | } | 45 | } |
46 | fprintf(stderr, "%s: cannot find username for UID %u\n", argv[0], | 46 | fprintf(stderr, "%s: cannot find username for UID %u\n", argv[0], |
47 | (unsigned) uid); | 47 | (unsigned) uid); |
48 | exit(FALSE); | 48 | return(FALSE); |
49 | } | 49 | } |