aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/Config.in10
-rw-r--r--coreutils/cal.c4
-rw-r--r--coreutils/cksum.c2
-rw-r--r--coreutils/cp.c2
-rw-r--r--coreutils/dd.c2
-rw-r--r--coreutils/diff.c4
-rw-r--r--coreutils/head.c6
-rw-r--r--coreutils/ls.c2
-rw-r--r--coreutils/nohup.c6
-rw-r--r--coreutils/seq.c2
-rw-r--r--coreutils/sort.c2
-rw-r--r--coreutils/who.c6
12 files changed, 24 insertions, 24 deletions
diff --git a/coreutils/Config.in b/coreutils/Config.in
index 07005b81a..20b5955d4 100644
--- a/coreutils/Config.in
+++ b/coreutils/Config.in
@@ -120,11 +120,11 @@ config CONFIG_FEATURE_DD_SIGNAL_HANDLING
120 default y 120 default y
121 depends on CONFIG_DD 121 depends on CONFIG_DD
122 help 122 help
123 sending a SIGUSR1 signal to a running `dd' process makes it 123 sending a SIGUSR1 signal to a running `dd' process makes it
124 print to standard error the number of records read and written 124 print to standard error the number of records read and written
125 so far, then to resume copying. 125 so far, then to resume copying.
126 126
127 $ dd if=/dev/zero of=/dev/null& pid=$! $ kill -USR1 $pid; sleep 1; kill $pid 127 $ dd if=/dev/zero of=/dev/null& pid=$! $ kill -USR1 $pid; sleep 1; kill $pid
128 10899206+0 records in 10899206+0 records out 128 10899206+0 records in 10899206+0 records out
129 129
130config CONFIG_FEATURE_DD_IBS_OBS 130config CONFIG_FEATURE_DD_IBS_OBS
@@ -744,9 +744,9 @@ config CONFIG_FEATURE_AUTOWIDTH
744 depends on CONFIG_LS || CONFIG_MORE || CONFIG_TELNET 744 depends on CONFIG_LS || CONFIG_MORE || CONFIG_TELNET
745 help 745 help
746 This option allows utilities such as 'ls', 'more' and 'telnet' 746 This option allows utilities such as 'ls', 'more' and 'telnet'
747 to determine the width of the screen, which can allow them to 747 to determine the width of the screen, which can allow them to
748 display additional text or avoid wrapping text onto the next line. 748 display additional text or avoid wrapping text onto the next line.
749 If you leave this disabled, your utilities will be especially 749 If you leave this disabled, your utilities will be especially
750 primitive and will be unable to determine the current screen width. 750 primitive and will be unable to determine the current screen width.
751 751
752comment "Common options for df, du, ls" 752comment "Common options for df, du, ls"
diff --git a/coreutils/cal.c b/coreutils/cal.c
index 9628459fe..8996aa8c7 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -33,7 +33,7 @@ static const char days_in_month[] = {
33}; 33};
34 34
35static const char sep1752[] = { 35static const char sep1752[] = {
36 1, 2, 14, 15, 16, 36 1, 2, 14, 15, 16,
37 17, 18, 19, 20, 21, 22, 23, 37 17, 18, 19, 20, 21, 22, 23,
38 24, 25, 26, 27, 28, 29, 30 38 24, 25, 26, 27, 28, 29, 30
39}; 39};
@@ -207,7 +207,7 @@ static void day_array(int month, int year, int *days)
207 207
208 if ((month == 9) && (year == 1752)) { 208 if ((month == 9) && (year == 1752)) {
209 size_t oday = 0; 209 size_t oday = 0;
210 210
211 j_offset = julian * 244; 211 j_offset = julian * 244;
212 do { 212 do {
213 days[oday+2] = sep1752[oday] + j_offset; 213 days[oday+2] = sep1752[oday] + j_offset;
diff --git a/coreutils/cksum.c b/coreutils/cksum.c
index 9a45fd656..9bec3bff4 100644
--- a/coreutils/cksum.c
+++ b/coreutils/cksum.c
@@ -10,7 +10,7 @@
10 10
11int cksum_main(int argc, char **argv) 11int cksum_main(int argc, char **argv)
12{ 12{
13 13
14 uint32_t *crc32_table = crc32_filltable(1); 14 uint32_t *crc32_table = crc32_filltable(1);
15 15
16 FILE *fp; 16 FILE *fp;
diff --git a/coreutils/cp.c b/coreutils/cp.c
index f5baa0d62..85086aab5 100644
--- a/coreutils/cp.c
+++ b/coreutils/cp.c
@@ -77,7 +77,7 @@ int cp_main(int argc, char **argv)
77 /* If there are only two arguments and... */ 77 /* If there are only two arguments and... */
78 if (optind + 2 == argc) { 78 if (optind + 2 == argc) {
79 s_flags = cp_mv_stat2(*argv, &source_stat, 79 s_flags = cp_mv_stat2(*argv, &source_stat,
80 (flags & FILEUTILS_DEREFERENCE) ? stat : lstat); 80 (flags & FILEUTILS_DEREFERENCE) ? stat : lstat);
81 if ((s_flags < 0) || ((d_flags = cp_mv_stat(last, &dest_stat)) < 0)) { 81 if ((s_flags < 0) || ((d_flags = cp_mv_stat(last, &dest_stat)) < 0)) {
82 exit(EXIT_FAILURE); 82 exit(EXIT_FAILURE);
83 } 83 }
diff --git a/coreutils/dd.c b/coreutils/dd.c
index a9536a584..8d859ef5c 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -200,7 +200,7 @@ int dd_main(int argc, char **argv)
200 out_part++; 200 out_part++;
201 } 201 }
202 } 202 }
203 203
204 if (ENABLE_FEATURE_DD_IBS_OBS && oc) { 204 if (ENABLE_FEATURE_DD_IBS_OBS && oc) {
205 xwrite(ofd, obuf, oc); 205 xwrite(ofd, obuf, oc);
206 out_part++; 206 out_part++;
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 22c157412..3c409b2cf 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -820,8 +820,8 @@ static void output(char *file1, FILE * f1, char *file2, FILE * f2)
820} 820}
821 821
822/* 822/*
823 * The following code uses an algorithm due to Harold Stone, 823 * The following code uses an algorithm due to Harold Stone,
824 * which finds a pair of longest identical subsequences in 824 * which finds a pair of longest identical subsequences in
825 * the two files. 825 * the two files.
826 * 826 *
827 * The major goal is to generate the match vector J. 827 * The major goal is to generate the match vector J.
diff --git a/coreutils/head.c b/coreutils/head.c
index e961ca6b6..8dc6ee0b4 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -28,7 +28,7 @@ static const struct suffix_mult head_suffixes[] = {
28 { NULL, 0 } 28 { NULL, 0 }
29}; 29};
30#endif 30#endif
31 31
32static const char header_fmt_str[] = "\n==> %s <==\n"; 32static const char header_fmt_str[] = "\n==> %s <==\n";
33 33
34int head_main(int argc, char **argv) 34int head_main(int argc, char **argv)
@@ -83,8 +83,8 @@ int head_main(int argc, char **argv)
83#if !ENABLE_FEATURE_FANCY_HEAD 83#if !ENABLE_FEATURE_FANCY_HEAD
84 count = bb_xgetularg10(p); 84 count = bb_xgetularg10(p);
85#else 85#else
86 count = bb_xgetularg_bnd_sfx(p, 10, 86 count = bb_xgetularg_bnd_sfx(p, 10,
87 0, ULONG_MAX, 87 0, ULONG_MAX,
88 head_suffixes); 88 head_suffixes);
89#endif 89#endif
90 break; 90 break;
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 828127a4a..0099f18fe 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -196,7 +196,7 @@ static struct dnode *my_stat(char *fullname, char *name)
196#endif 196#endif
197 { 197 {
198#ifdef CONFIG_SELINUX 198#ifdef CONFIG_SELINUX
199 if (is_selinux_enabled()) { 199 if (is_selinux_enabled()) {
200 lgetfilecon(fullname,&sid); 200 lgetfilecon(fullname,&sid);
201 } 201 }
202#endif 202#endif
diff --git a/coreutils/nohup.c b/coreutils/nohup.c
index 5dd90adcc..9e9150d33 100644
--- a/coreutils/nohup.c
+++ b/coreutils/nohup.c
@@ -1,11 +1,11 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* nohup - invoke a utility immune to hangups. 2/* nohup - invoke a utility immune to hangups.
3 * 3 *
4 * Busybox version based on nohup specification at 4 * Busybox version based on nohup specification at
5 * http://www.opengroup.org/onlinepubs/007904975/utilities/nohup.html 5 * http://www.opengroup.org/onlinepubs/007904975/utilities/nohup.html
6 * 6 *
7 * Copyright 2006 Rob Landley <rob@landley.net> 7 * Copyright 2006 Rob Landley <rob@landley.net>
8 * 8 *
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
diff --git a/coreutils/seq.c b/coreutils/seq.c
index 0df094001..79fafbc8b 100644
--- a/coreutils/seq.c
+++ b/coreutils/seq.c
@@ -14,7 +14,7 @@
14int seq_main(int argc, char **argv) 14int seq_main(int argc, char **argv)
15{ 15{
16 double last, first, increment, i; 16 double last, first, increment, i;
17 17
18 first = increment = 1; 18 first = increment = 1;
19 switch (argc) { 19 switch (argc) {
20 case 4: 20 case 4:
diff --git a/coreutils/sort.c b/coreutils/sort.c
index ea7752d2a..d86f8dcde 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -5,7 +5,7 @@
5 * Copyright (C) 2004 by Rob Landley <rob@landley.net> 5 * Copyright (C) 2004 by Rob Landley <rob@landley.net>
6 * 6 *
7 * MAINTAINER: Rob Landley <rob@landley.net> 7 * MAINTAINER: Rob Landley <rob@landley.net>
8 * 8 *
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 * 10 *
11 * See SuS3 sort standard at: 11 * See SuS3 sort standard at:
diff --git a/coreutils/who.c b/coreutils/who.c
index 95ad21953..7566bfddc 100644
--- a/coreutils/who.c
+++ b/coreutils/who.c
@@ -24,7 +24,7 @@
24static const char * idle_string (time_t t) 24static const char * idle_string (time_t t)
25{ 25{
26 static char str[6]; 26 static char str[6];
27 27
28 time_t s = time(NULL) - t; 28 time_t s = time(NULL) - t;
29 29
30 if (s < 60) 30 if (s < 60)
@@ -43,11 +43,11 @@ int who_main(int argc, char **argv)
43 struct utmp *ut; 43 struct utmp *ut;
44 struct stat st; 44 struct stat st;
45 char *name; 45 char *name;
46 46
47 if (argc > 1) { 47 if (argc > 1) {
48 bb_show_usage(); 48 bb_show_usage();
49 } 49 }
50 50
51 setutent(); 51 setutent();
52 printf("USER TTY IDLE TIME HOST\n"); 52 printf("USER TTY IDLE TIME HOST\n");
53 while ((ut = getutent()) != NULL) { 53 while ((ut = getutent()) != NULL) {