aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cmp.c4
-rw-r--r--coreutils/env.c4
-rw-r--r--coreutils/nice.c2
-rw-r--r--coreutils/nohup.c2
-rw-r--r--coreutils/sort.c2
-rw-r--r--coreutils/tty.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/coreutils/cmp.c b/coreutils/cmp.c
index d26c3db8c..d0d976997 100644
--- a/coreutils/cmp.c
+++ b/coreutils/cmp.c
@@ -31,7 +31,7 @@ static FILE *cmp_xfopen_input(const char * const filename)
31 return fp; 31 return fp;
32 } 32 }
33 33
34 exit(bb_default_error_retval); /* We already output an error message. */ 34 exit(xfunc_error_retval); /* We already output an error message. */
35} 35}
36 36
37static const char fmt_eof[] = "cmp: EOF on %s\n"; 37static const char fmt_eof[] = "cmp: EOF on %s\n";
@@ -52,7 +52,7 @@ int cmp_main(int argc, char **argv)
52 unsigned opt; 52 unsigned opt;
53 int retval = 0; 53 int retval = 0;
54 54
55 bb_default_error_retval = 2; /* 1 is returned if files are different. */ 55 xfunc_error_retval = 2; /* 1 is returned if files are different. */
56 56
57 opt = bb_getopt_ulflags(argc, argv, opt_chars); 57 opt = bb_getopt_ulflags(argc, argv, opt_chars);
58 58
diff --git a/coreutils/env.c b/coreutils/env.c
index b42d90435..2af15a37e 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -26,7 +26,7 @@
26 * - correct "-" option usage 26 * - correct "-" option usage
27 * - multiple "-u unsetenv" support 27 * - multiple "-u unsetenv" support
28 * - GNU long option support 28 * - GNU long option support
29 * - use bb_default_error_retval 29 * - use xfunc_error_retval
30 */ 30 */
31 31
32#include "busybox.h" 32#include "busybox.h"
@@ -82,7 +82,7 @@ int env_main(int argc, char** argv)
82 if (*argv) { 82 if (*argv) {
83 execvp(*argv, argv); 83 execvp(*argv, argv);
84 /* SUSv3-mandated exit codes. */ 84 /* SUSv3-mandated exit codes. */
85 bb_default_error_retval = (errno == ENOENT) ? 127 : 126; 85 xfunc_error_retval = (errno == ENOENT) ? 127 : 126;
86 bb_perror_msg_and_die("%s", *argv); 86 bb_perror_msg_and_die("%s", *argv);
87 } 87 }
88 88
diff --git a/coreutils/nice.c b/coreutils/nice.c
index ad0178b7f..4c54dddbb 100644
--- a/coreutils/nice.c
+++ b/coreutils/nice.c
@@ -67,6 +67,6 @@ int nice_main(int argc, char **argv)
67 execvp(*argv, argv); /* Now exec the desired program. */ 67 execvp(*argv, argv); /* Now exec the desired program. */
68 68
69 /* The exec failed... */ 69 /* The exec failed... */
70 bb_default_error_retval = (errno == ENOENT) ? 127 : 126; /* SUSv3 */ 70 xfunc_error_retval = (errno == ENOENT) ? 127 : 126; /* SUSv3 */
71 bb_perror_msg_and_die("%s", *argv); 71 bb_perror_msg_and_die("%s", *argv);
72} 72}
diff --git a/coreutils/nohup.c b/coreutils/nohup.c
index cf8ad2cd4..439fbb173 100644
--- a/coreutils/nohup.c
+++ b/coreutils/nohup.c
@@ -17,7 +17,7 @@ int nohup_main(int argc, char **argv)
17 int temp, nullfd; 17 int temp, nullfd;
18 char *nohupout, *home = NULL; 18 char *nohupout, *home = NULL;
19 19
20 bb_default_error_retval = 127; 20 xfunc_error_retval = 127;
21 21
22 if (argc<2) bb_show_usage(); 22 if (argc<2) bb_show_usage();
23 23
diff --git a/coreutils/sort.c b/coreutils/sort.c
index 7dfe1764c..c450cfbe6 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -225,7 +225,7 @@ int sort_main(int argc, char **argv)
225 char *line,**lines=NULL,*optlist="ngMucszbrdfimS:T:o:k:t:"; 225 char *line,**lines=NULL,*optlist="ngMucszbrdfimS:T:o:k:t:";
226 int c; 226 int c;
227 227
228 bb_default_error_retval = 2; 228 xfunc_error_retval = 2;
229 /* Parse command line options */ 229 /* Parse command line options */
230 while((c=getopt(argc,argv,optlist))>0) { 230 while((c=getopt(argc,argv,optlist))>0) {
231 line=strchr(optlist,c); 231 line=strchr(optlist,c);
diff --git a/coreutils/tty.c b/coreutils/tty.c
index 924aff2d5..eb8c3dd0f 100644
--- a/coreutils/tty.c
+++ b/coreutils/tty.c
@@ -21,7 +21,7 @@ int tty_main(int argc, char **argv)
21 int silent; /* Note: No longer relevant in SUSv3. */ 21 int silent; /* Note: No longer relevant in SUSv3. */
22 int retval; 22 int retval;
23 23
24 bb_default_error_retval = 2; /* SUSv3 requires > 1 for error. */ 24 xfunc_error_retval = 2; /* SUSv3 requires > 1 for error. */
25 25
26 silent = bb_getopt_ulflags(argc, argv, "s"); 26 silent = bb_getopt_ulflags(argc, argv, "s");
27 27