Tested under both libc5 and libc6 and all seems well with these fixes.
-Erik
while (a->name != 0) {
if (strcmp(name, a->name) == 0) {
- int status;
-
- status = ((*(a->main)) (argc, argv));
- if (status < 0) {
- fprintf(stderr, "%s: %s\n", a->name, strerror(errno));
- }
- fprintf(stderr, "\n");
- exit(status);
+ exit(((*(a->main)) (argc, argv)));
}
a++;
}
- exit(busybox_main(argc, argv));
+ return(busybox_main(argc, argv));
}
}
fprintf(stderr, "\n\n");
exit(-1);
- } else {
- /* If we've already been here once, exit now */
- been_there_done_that = 1;
- return (main(argc, argv));
}
+ /* If we've already been here once, exit now */
+ been_there_done_that = 1;
+ return (main(argc, argv));
}
/*
exit(FALSE);
}
}
- exit(exit_code);
+ return(exit_code);
}
#define WARN(msg) {if (!quiet) fprintf msg ; \
if (exit_code == OK) exit_code = WARNING;}
-#define do_exit(c) exit(c)
-
/* in zip.c: */
extern int zip (int in, int out);
inFileNum = open(ifname, O_RDONLY);
if (inFileNum < 0) {
perror(ifname);
- do_exit(WARNING);
+ exit(WARNING);
}
/* Get the time stamp on the input file. */
result = stat(ifname, &statBuf);
if (result < 0) {
perror(ifname);
- do_exit(WARNING);
+ exit(WARNING);
}
time_stamp = statBuf.st_ctime;
ifile_size = statBuf.st_size;
#endif
if (outFileNum < 0) {
perror(ofname);
- do_exit(WARNING);
+ exit(WARNING);
}
SET_BINARY_MODE(outFileNum);
/* Set permissions on the file */
}
}
- do_exit(exit_code);
+ return(exit_code);
}
/* trees.c -- output deflated data using Huffman coding
s[m-n] = '\0';
}
printf("%s\n", s);
- exit(TRUE);
+ return(TRUE);
}
while (a->name != 0) {
if (strcmp(name, a->name) == 0) {
- int status;
-
- status = ((*(a->main)) (argc, argv));
- if (status < 0) {
- fprintf(stderr, "%s: %s\n", a->name, strerror(errno));
- }
- fprintf(stderr, "\n");
- exit(status);
+ exit(((*(a->main)) (argc, argv)));
}
a++;
}
- exit(busybox_main(argc, argv));
+ return(busybox_main(argc, argv));
}
}
fprintf(stderr, "\n\n");
exit(-1);
- } else {
- /* If we've already been here once, exit now */
- been_there_done_that = 1;
- return (main(argc, argv));
}
+ /* If we've already been here once, exit now */
+ been_there_done_that = 1;
+ return (main(argc, argv));
}
/*
}
print_file(file);
}
- exit(TRUE);
+ return(TRUE);
}
/*
int chmod_chown_chgrp_main(int argc, char **argv)
{
int recursiveFlag = FALSE;
- char *groupName;
- char *p;
+ char *groupName=NULL;
+ char *p=NULL;
const char *appUsage;
whichApp = (strcmp(*argv, "chown") == 0)?
perror("VT_WAITACTIVE");
exit(FALSE);
}
- exit(TRUE);
+ return(TRUE);
}
extern int clear_main(int argc, char **argv)
{
printf("\033[H\033[J");
- exit(TRUE);
+ return(TRUE);
}
perror("VT_WAITACTIVE");
exit(FALSE);
}
- exit(TRUE);
+ return(TRUE);
}
extern int clear_main(int argc, char **argv)
{
printf("\033[H\033[J");
- exit(TRUE);
+ return(TRUE);
}
/* deallocate all unused consoles */
if (ioctl(fd, VT_DISALLOCATE, 0)) {
perror("VT_DISALLOCATE");
- exit(1);
+ exit( FALSE);
}
} else
for (i = 1; i < argc; i++) {
perror("VT_DISALLOCATE");
fprintf(stderr, "%s: could not deallocate console %d\n",
progname, num);
- exit(1);
+ exit( FALSE);
}
}
- exit(0);
+ return( TRUE);
}
perror("PIO_SCRNMAP ioctl"), exit(1);
else
return 0;
- } else {
- fprintf(stderr, "Error parsing symbolic map\n");
- exit(1);
}
+ fprintf(stderr, "Error parsing symbolic map\n");
+ return(1);
}
/* Don't bother to close files. Exit does that
* automagically, so we can save a few bytes */
/* close(fd); */
- exit(TRUE);
+ return(TRUE);
}
argc -= 2;
argv += 2;
}
- exit( TRUE);
+ return( TRUE);
}
s[m-n] = '\0';
}
printf("%s\n", s);
- exit(TRUE);
+ return(TRUE);
}
}
print_file(file);
}
- exit(TRUE);
+ return(TRUE);
}
/*
cut();
}
- exit(exit_status);
+ return(exit_status);
}
/* cut - extract columns from a file or stdin. Author: Michael J. Holme
strftime(t_buff, 200, date_fmt, &tm_time);
printf("%s\n", t_buff);
- exit(TRUE);
-
+ return(TRUE);
}
endmntent(mountTable);
}
- exit(TRUE);
+ return(TRUE);
}
/*
if (s && *s)
*s = '\0';
printf("%s\n", (s)? *argv : ".");
- exit(TRUE);
+ return(TRUE);
}
}
}
- exit(0);
+ return(0);
}
-/* $Id: du.c,v 1.19 2000/05/10 05:05:45 erik Exp $ */
+/* $Id: du.c,v 1.20 2000/06/19 17:25:39 andersen Exp $ */
/*
Local Variables:
c-file-style: "linux"
if (! nflag)
putchar('\n');
fflush(stdout);
- exit( 0);
+ return( 0);
}
/*-
}
}
}
- exit(0);
+ return(0);
}
-/* $Id: head.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: head.c,v 1.11 2000/06/19 17:25:39 andersen Exp $ */
extern int hostid_main(int argc, char **argv)
{
printf("%lx\n", gethostid());
- exit(TRUE);
+ return(TRUE);
}
my_getpwnam(user), user, my_getgrnam(group), group);
- exit(0);
+ return(0);
}
exit FALSE;
}
}
- exit TRUE;
+ return( TRUE);
}
/*
exit(TRUE);
}
fprintf(stderr, "no login name\n");
- exit(FALSE);
+ return(FALSE);
}
argc--;
argv++;
}
- exit TRUE;
+ return( TRUE);
}
if (mkfifo(*argv, mode) < 0) {
perror("mkfifo");
exit(255);
- } else {
- exit(TRUE);
}
+ return(TRUE);
}
if (mknod(argv[0], mode, dev) != 0)
fatalError("%s: %s\n", argv[0], strerror(errno));
- exit (TRUE);
+ return (TRUE);
}
fatalError("pwd: %s\n", strerror(errno));
printf("%s\n", buf);
- exit(TRUE);
+ return(TRUE);
}
}
}
}
- exit(TRUE);
+ return(TRUE);
}
exit(FALSE);
}
}
- exit(TRUE);
+ return(TRUE);
}
if (sleep(atoi(*(++argv))) != 0) {
perror("sleep");
exit(FALSE);
- } else
- exit(TRUE);
+ }
+ return(TRUE);
}
list_release(&list);
}
- exit(0);
+ return(0);
}
-/* $Id: sort.c,v 1.16 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: sort.c,v 1.17 2000/06/19 17:25:40 andersen Exp $ */
#endif
);
}
- exit(sync());
+ return(sync());
}
exit_status |= tail_file(argv[i], n_units);
}
- exit(exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
+ return(exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
/* Don't bother to close files Exit does that
* automagically, so we can save a few bytes */
/* free(FileList); */
- exit(0);
+ return(0);
}
-/* $Id: tee.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: tee.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */
if (*t_wp != NULL && *++t_wp != NULL)
syntax(*t_wp, "unknown operand");
- exit( res);
+ return( res);
}
static void
argv++;
}
- exit(TRUE);
+ return(TRUE);
}
else
puts("not a tty");
}
- exit(isatty(0) ? TRUE : FALSE);
+ return(isatty(0) ? TRUE : FALSE);
}
print_element(PRINT_MACHINE, name.machine);
print_element(PRINT_PROCESSOR, processor);
- exit(TRUE);
+ return(TRUE);
}
/* If the name element set in MASK is selected for printing in `toprint',
subject_last(&s);
subject_study(&s);
- exit(0);
+ return(0);
}
-/* $Id: uniq.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: uniq.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */
}
usleep(atoi(*(++argv))); /* return void */
- exit(TRUE);
+ return(TRUE);
}
}
while (optind < argc);
}
- exit(exit_status);
+ return(exit_status);
}
errorMsg("Write error\n");
exit FALSE;
}
- exit TRUE;
+ return( TRUE);
}
print_counts(total_lines, total_words, total_chars,
max_length, "total");
}
- exit(TRUE);
+ return(TRUE);
}
}
fprintf(stderr, "%s: cannot find username for UID %u\n", argv[0],
(unsigned) uid);
- exit(FALSE);
+ return(FALSE);
}
void name_too_long__exit (void)
{
fprintf(stderr, name_too_long, dz);
- exit FALSE;
+ exit(FALSE);
}
static void
if (flags_memo)
*(baseDestName + baseDestLen) = '\0';
}
-// exit_true:
- exit TRUE;
+ return( TRUE);
exit_false:
- exit FALSE;
+ return( FALSE);
}
/*
cut();
}
- exit(exit_status);
+ return(exit_status);
}
/* cut - extract columns from a file or stdin. Author: Michael J. Holme
strftime(t_buff, 200, date_fmt, &tm_time);
printf("%s\n", t_buff);
- exit(TRUE);
-
+ return(TRUE);
}
/* deallocate all unused consoles */
if (ioctl(fd, VT_DISALLOCATE, 0)) {
perror("VT_DISALLOCATE");
- exit(1);
+ exit( FALSE);
}
} else
for (i = 1; i < argc; i++) {
perror("VT_DISALLOCATE");
fprintf(stderr, "%s: could not deallocate console %d\n",
progname, num);
- exit(1);
+ exit( FALSE);
}
}
- exit(0);
+ return( TRUE);
}
endmntent(mountTable);
}
- exit(TRUE);
+ return(TRUE);
}
/*
if (s && *s)
*s = '\0';
printf("%s\n", (s)? *argv : ".");
- exit(TRUE);
+ return(TRUE);
}
exit(FALSE);
klogctl_error:
perror("klogctl");
- exit(FALSE);
-
+ return(FALSE);
}
}
}
- exit(0);
+ return(0);
}
-/* $Id: du.c,v 1.19 2000/05/10 05:05:45 erik Exp $ */
+/* $Id: du.c,v 1.20 2000/06/19 17:25:39 andersen Exp $ */
/*
Local Variables:
c-file-style: "linux"
(long)ut.ut_addr);
}
- exit(TRUE);
+ return(TRUE);
}
if (! nflag)
putchar('\n');
fflush(stdout);
- exit( 0);
+ return( 0);
}
/*-
fclose(fp);
}
}
- exit(TRUE);
+ return(TRUE);
}
/* Don't close the file, as exiting will take care of that */
/* close(fh); */
- exit (TRUE);
+ return (TRUE);
}
perror(*argv);
exit(FALSE);
}
- exit(TRUE);
+ return(TRUE);
}
exit(FALSE);
}
- exit(TRUE);
+ return(TRUE);
}
exit(FALSE);
}
- exit(TRUE);
+ return(TRUE);
}
fclose(fp);
}
}
- exit(match);
+ return(match);
}
exit (FALSE);
}
}
- exit(TRUE);
+ return(TRUE);
}
/*
printf("%6s%13ld%13ld%13ld\n", "Total:", info.totalram+info.totalswap,
(info.totalram-info.freeram)+(info.totalswap-info.freeswap),
info.freeram+info.freeswap);
- exit(TRUE);
+ return(TRUE);
}
/* Don't bother closing. Exit does
* that, so we can save a few bytes */
/* close(f); */
- exit(TRUE);
+ return(TRUE);
}
/*
fclose(fp);
}
}
- exit(match);
+ return(match);
}
exit(FALSE);
}
}
- exit(exit_code);
+ return(exit_code);
}
#define WARN(msg) {if (!quiet) fprintf msg ; \
if (exit_code == OK) exit_code = WARNING;}
-#define do_exit(c) exit(c)
-
/* in zip.c: */
extern int zip (int in, int out);
inFileNum = open(ifname, O_RDONLY);
if (inFileNum < 0) {
perror(ifname);
- do_exit(WARNING);
+ exit(WARNING);
}
/* Get the time stamp on the input file. */
result = stat(ifname, &statBuf);
if (result < 0) {
perror(ifname);
- do_exit(WARNING);
+ exit(WARNING);
}
time_stamp = statBuf.st_ctime;
ifile_size = statBuf.st_size;
#endif
if (outFileNum < 0) {
perror(ofname);
- do_exit(WARNING);
+ exit(WARNING);
}
SET_BINARY_MODE(outFileNum);
/* Set permissions on the file */
}
}
- do_exit(exit_code);
+ return(exit_code);
}
/* trees.c -- output deflated data using Huffman coding
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- exit(kill(*(findPidByName("init")), SIGUSR1));
+ return(kill(*(findPidByName("init")), SIGUSR1));
#else
- exit(kill(1, SIGUSR1));
+ return(kill(1, SIGUSR1));
#endif
}
}
}
}
- exit(0);
+ return(0);
}
-/* $Id: head.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: head.c,v 1.11 2000/06/19 17:25:39 andersen Exp $ */
extern int hostid_main(int argc, char **argv)
{
printf("%lx\n", gethostid());
- exit(TRUE);
+ return(TRUE);
}
/* vi: set sw=4 ts=4: */
/*
- * $Id: hostname.c,v 1.9 2000/05/19 05:35:18 erik Exp $
+ * $Id: hostname.c,v 1.10 2000/06/19 17:25:39 andersen Exp $
* Mini hostname implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
printf("%s\n", buf);
}
}
- exit(0);
+ return(0);
}
my_getpwnam(user), user, my_getgrnam(group), group);
- exit(0);
+ return(0);
}
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- exit(kill(*(findPidByName("init")), SIGUSR1));
+ return(kill(*(findPidByName("init")), SIGUSR1));
#else
- exit(kill(1, SIGUSR1));
+ return(kill(1, SIGUSR1));
#endif
}
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- exit(kill(*(findPidByName("init")), SIGUSR2));
+ return(kill(*(findPidByName("init")), SIGUSR2));
#else
- exit(kill(1, SIGUSR2));
+ return(kill(1, SIGUSR2));
#endif
}
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- exit(kill(*(findPidByName("init")), SIGINT));
+ return(kill(*(findPidByName("init")), SIGINT));
#else
- exit(kill(1, SIGINT));
+ return(kill(1, SIGINT));
#endif
}
#include <sys/stat.h>
#include <sys/param.h>
#include <mntent.h>
+#include <asm/string.h>
/* Some useful definitions */
if (!cmd->progs[0].argv[1] == 1)
exit TRUE;
- else
- exit(atoi(cmd->progs[0].argv[1]));
+ return(atoi(cmd->progs[0].argv[1]));
}
/* built-in 'fg' and 'bg' handler */
exit FALSE;
}
}
- exit TRUE;
+ return( TRUE);
}
/*
perror("PIO_SCRNMAP ioctl"), exit(1);
else
return 0;
- } else {
- fprintf(stderr, "Error parsing symbolic map\n");
- exit(1);
}
+ fprintf(stderr, "Error parsing symbolic map\n");
+ return(1);
}
/* Don't bother to close files. Exit does that
* automagically, so we can save a few bytes */
/* close(fd); */
- exit(TRUE);
+ return(TRUE);
}
int option = 0;
int fromStdinFlag = FALSE;
int stopLookingAtMeLikeThat = FALSE;
- char *message, buf[1024], name[128];
+ char *message=NULL, buf[1024], name[128];
/* Fill out the name string early (may be overwritten later */
my_getpwuid(name, geteuid());
syslog(pri, message);
closelog();
- exit(TRUE);
+ return(TRUE);
}
exit(TRUE);
}
fprintf(stderr, "no login name\n");
- exit(FALSE);
+ return(FALSE);
}
char *cmd[] = { "cat", "/proc/modules", "\0" };
#endif
- exit(cat_main(3, cmd));
+ return(cat_main(3, cmd));
}
}
}
stack_machine(0);
- exit( TRUE);
+ return( TRUE);
}
(long)ut.ut_addr);
}
- exit(TRUE);
+ return(TRUE);
}
if(mkstemp(argv[argc-1]) < 0)
exit(FALSE);
(void) puts(argv[argc-1]);
- exit(TRUE);
+ return(TRUE);
}
exit (FALSE);
}
- exit (TRUE);
+ return (TRUE);
}
argc--;
argv++;
}
- exit TRUE;
+ return( TRUE);
}
if (mkfifo(*argv, mode) < 0) {
perror("mkfifo");
exit(255);
- } else {
- exit(TRUE);
}
+ return(TRUE);
}
if (mknod(argv[0], mode, dev) != 0)
fatalError("%s: %s\n", argv[0], strerror(errno));
- exit (TRUE);
+ return (TRUE);
}
*/
if (fsync(DEV))
die("fsync failed");
- exit(TRUE);
+ return(TRUE);
}
if(mkstemp(argv[argc-1]) < 0)
exit(FALSE);
(void) puts(argv[argc-1]);
- exit(TRUE);
+ return(TRUE);
}
char *cmd[] = { "cat", "/proc/modules", "\0" };
#endif
- exit(cat_main(3, cmd));
+ return(cat_main(3, cmd));
}
}
argv++;
}
- exit(TRUE);
+ return(TRUE);
}
#ifdef BB_FEATURE_USE_TERMIOS
gotsig(0);
#endif
- exit(TRUE);
+ return(TRUE);
}
exit (FALSE);
}
- exit (TRUE);
+ return (TRUE);
}
/* vi: set sw=4 ts=4: */
/*
- * $Id: hostname.c,v 1.9 2000/05/19 05:35:18 erik Exp $
+ * $Id: hostname.c,v 1.10 2000/06/19 17:25:39 andersen Exp $
* Mini hostname implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
printf("%s\n", buf);
}
}
- exit(0);
+ return(0);
}
host = gethostbyname(argv[1]);
}
hostent_fprint(host, stdout);
- exit( TRUE);
+ return( TRUE);
}
-/* $Id: nslookup.c,v 1.9 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: nslookup.c,v 1.10 2000/06/19 17:25:40 andersen Exp $ */
host = gethostbyname(argv[1]);
}
hostent_fprint(host, stdout);
- exit( TRUE);
+ return( TRUE);
}
-/* $Id: nslookup.c,v 1.9 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: nslookup.c,v 1.10 2000/06/19 17:25:40 andersen Exp $ */
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- exit(kill(*(findPidByName("init")), SIGUSR2));
+ return(kill(*(findPidByName("init")), SIGUSR2));
#else
- exit(kill(1, SIGUSR2));
+ return(kill(1, SIGUSR2));
#endif
}
printf("%6s%13ld%13ld%13ld\n", "Total:", info.totalram+info.totalswap,
(info.totalram-info.freeram)+(info.totalswap-info.freeswap),
info.freeram+info.freeswap);
- exit(TRUE);
+ return(TRUE);
}
fprintf(stdout, "\n");
}
closedir(dir);
- exit(TRUE);
+ return(TRUE);
}
LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]),
LOAD_INT(info.loads[2]), LOAD_FRAC(info.loads[2]));
- exit(TRUE);
+ return(TRUE);
}
fprintf(stdout, "\n");
}
closedir(dir);
- exit(TRUE);
+ return(TRUE);
}
fatalError("pwd: %s\n", strerror(errno));
printf("%s\n", buf);
- exit(TRUE);
+ return(TRUE);
}
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- exit(kill(*(findPidByName("init")), SIGINT));
+ return(kill(*(findPidByName("init")), SIGINT));
#else
- exit(kill(1, SIGINT));
+ return(kill(1, SIGINT));
#endif
}
}
}
}
- exit(TRUE);
+ return(TRUE);
}
exit(FALSE);
}
}
- exit(TRUE);
+ return(TRUE);
}
}
argv++;
}
- exit(TRUE);
+ return(TRUE);
}
fclose(fp);
}
}
- exit(TRUE);
+ return(TRUE);
}
argc -= 2;
argv += 2;
}
- exit( TRUE);
+ return( TRUE);
}
if (!cmd->progs[0].argv[1] == 1)
exit TRUE;
- else
- exit(atoi(cmd->progs[0].argv[1]));
+ return(atoi(cmd->progs[0].argv[1]));
}
/* built-in 'fg' and 'bg' handler */
if (!cmd->progs[0].argv[1] == 1)
exit TRUE;
- else
- exit(atoi(cmd->progs[0].argv[1]));
+ return(atoi(cmd->progs[0].argv[1]));
}
/* built-in 'fg' and 'bg' handler */
if (sleep(atoi(*(++argv))) != 0) {
perror("sleep");
exit(FALSE);
- } else
- exit(TRUE);
+ }
+ return(TRUE);
}
list_release(&list);
}
- exit(0);
+ return(0);
}
-/* $Id: sort.c,v 1.16 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: sort.c,v 1.17 2000/06/19 17:25:40 andersen Exp $ */
#endif
);
}
- exit(sync());
+ return(sync());
}
int option = 0;
int fromStdinFlag = FALSE;
int stopLookingAtMeLikeThat = FALSE;
- char *message, buf[1024], name[128];
+ char *message=NULL, buf[1024], name[128];
/* Fill out the name string early (may be overwritten later */
my_getpwuid(name, geteuid());
syslog(pri, message);
closelog();
- exit(TRUE);
+ return(TRUE);
}
exit_status |= tail_file(argv[i], n_units);
}
- exit(exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
+ return(exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
/* Don't bother to close files Exit does that
* automagically, so we can save a few bytes */
/* free(FileList); */
- exit(0);
+ return(0);
}
-/* $Id: tee.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: tee.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */
if (*t_wp != NULL && *++t_wp != NULL)
syntax(*t_wp, "unknown operand");
- exit( res);
+ return( res);
}
static void
argv++;
}
- exit(TRUE);
+ return(TRUE);
}
extern int true_main(int argc, char **argv)
{
- exit(TRUE);
+ return(TRUE);
}
extern int false_main(int argc, char **argv)
{
- exit(FALSE);
+ return(FALSE);
}
else
puts("not a tty");
}
- exit(isatty(0) ? TRUE : FALSE);
+ return(isatty(0) ? TRUE : FALSE);
}
print_element(PRINT_MACHINE, name.machine);
print_element(PRINT_PROCESSOR, processor);
- exit(TRUE);
+ return(TRUE);
}
/* If the name element set in MASK is selected for printing in `toprint',
subject_last(&s);
subject_study(&s);
- exit(0);
+ return(0);
}
-/* $Id: uniq.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */
+/* $Id: uniq.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */
LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]),
LOAD_INT(info.loads[2]), LOAD_FRAC(info.loads[2]));
- exit(TRUE);
+ return(TRUE);
}
}
usleep(atoi(*(++argv))); /* return void */
- exit(TRUE);
+ return(TRUE);
}
exit(FALSE);
klogctl_error:
perror("klogctl");
- exit(FALSE);
-
+ return(FALSE);
}
/* Don't close the file, as exiting will take care of that */
/* close(fh); */
- exit (TRUE);
+ return (TRUE);
}
perror(*argv);
exit(FALSE);
}
- exit(TRUE);
+ return(TRUE);
}
/* Don't bother closing. Exit does
* that, so we can save a few bytes */
/* close(f); */
- exit(TRUE);
+ return(TRUE);
}
/*
*/
if (fsync(DEV))
die("fsync failed");
- exit(TRUE);
+ return(TRUE);
}
#ifdef BB_FEATURE_USE_TERMIOS
gotsig(0);
#endif
- exit(TRUE);
+ return(TRUE);
}
}
while (optind < argc);
}
- exit(exit_status);
+ return(exit_status);
}
errorMsg("Write error\n");
exit FALSE;
}
- exit TRUE;
+ return( TRUE);
}
print_counts(total_lines, total_words, total_chars,
max_length, "total");
}
- exit(TRUE);
+ return(TRUE);
}
exit (FALSE);
}
}
- exit(TRUE);
+ return(TRUE);
}
/*
}
fprintf(stderr, "%s: cannot find username for UID %u\n", argv[0],
(unsigned) uid);
- exit(FALSE);
+ return(FALSE);
}