diff options
129 files changed, 115 insertions, 241 deletions
diff --git a/archival/libarchive/common.c b/archival/libarchive/common.c index 389cb7856..25c7bddad 100644 --- a/archival/libarchive/common.c +++ b/archival/libarchive/common.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/data_align.c b/archival/libarchive/data_align.c index a6b84a440..f61fdd93f 100644 --- a/archival/libarchive/data_align.c +++ b/archival/libarchive/data_align.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/data_extract_all.c b/archival/libarchive/data_extract_all.c index e658444e0..d3a6df5e8 100644 --- a/archival/libarchive/data_extract_all.c +++ b/archival/libarchive/data_extract_all.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/data_extract_to_command.c b/archival/libarchive/data_extract_to_command.c index 5d8769382..1114a95cb 100644 --- a/archival/libarchive/data_extract_to_command.c +++ b/archival/libarchive/data_extract_to_command.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/data_extract_to_stdout.c b/archival/libarchive/data_extract_to_stdout.c index f849f3b42..520041329 100644 --- a/archival/libarchive/data_extract_to_stdout.c +++ b/archival/libarchive/data_extract_to_stdout.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/data_skip.c b/archival/libarchive/data_skip.c index 588167f01..1a608227e 100644 --- a/archival/libarchive/data_skip.c +++ b/archival/libarchive/data_skip.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/decompress_bunzip2.c b/archival/libarchive/decompress_bunzip2.c index 803702f75..af879648d 100644 --- a/archival/libarchive/decompress_bunzip2.c +++ b/archival/libarchive/decompress_bunzip2.c | |||
@@ -1,14 +1,13 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* Small bzip2 deflate implementation, by Rob Landley (rob@landley.net). | 2 | /* Small bzip2 deflate implementation, by Rob Landley (rob@landley.net). |
3 | 3 | * | |
4 | Based on bzip2 decompression code by Julian R Seward (jseward@acm.org), | 4 | * Based on bzip2 decompression code by Julian R Seward (jseward@acm.org), |
5 | which also acknowledges contributions by Mike Burrows, David Wheeler, | 5 | * which also acknowledges contributions by Mike Burrows, David Wheeler, |
6 | Peter Fenwick, Alistair Moffat, Radford Neal, Ian H. Witten, | 6 | * Peter Fenwick, Alistair Moffat, Radford Neal, Ian H. Witten, |
7 | Robert Sedgewick, and Jon L. Bentley. | 7 | * Robert Sedgewick, and Jon L. Bentley. |
8 | 8 | * | |
9 | Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | /* | 11 | /* |
13 | Size and speed optimizations by Manuel Novoa III (mjn3@codepoet.org). | 12 | Size and speed optimizations by Manuel Novoa III (mjn3@codepoet.org). |
14 | 13 | ||
@@ -38,7 +37,6 @@ | |||
38 | 37 | ||
39 | Manuel | 38 | Manuel |
40 | */ | 39 | */ |
41 | |||
42 | #include "libbb.h" | 40 | #include "libbb.h" |
43 | #include "bb_archive.h" | 41 | #include "bb_archive.h" |
44 | 42 | ||
diff --git a/archival/libarchive/decompress_gunzip.c b/archival/libarchive/decompress_gunzip.c index c7fa5b526..c8245d736 100644 --- a/archival/libarchive/decompress_gunzip.c +++ b/archival/libarchive/decompress_gunzip.c | |||
@@ -32,7 +32,6 @@ | |||
32 | * | 32 | * |
33 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 33 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
34 | */ | 34 | */ |
35 | |||
36 | #include <setjmp.h> | 35 | #include <setjmp.h> |
37 | #include "libbb.h" | 36 | #include "libbb.h" |
38 | #include "bb_archive.h" | 37 | #include "bb_archive.h" |
diff --git a/archival/libarchive/filter_accept_all.c b/archival/libarchive/filter_accept_all.c index c33f7d3e3..5a0ee9c60 100644 --- a/archival/libarchive/filter_accept_all.c +++ b/archival/libarchive/filter_accept_all.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | #include "libbb.h" | 7 | #include "libbb.h" |
9 | #include "bb_archive.h" | 8 | #include "bb_archive.h" |
10 | 9 | ||
diff --git a/archival/libarchive/filter_accept_list.c b/archival/libarchive/filter_accept_list.c index a2d4b23e9..32f806574 100644 --- a/archival/libarchive/filter_accept_list.c +++ b/archival/libarchive/filter_accept_list.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | #include "libbb.h" | 7 | #include "libbb.h" |
9 | #include "bb_archive.h" | 8 | #include "bb_archive.h" |
10 | 9 | ||
diff --git a/archival/libarchive/filter_accept_list_reassign.c b/archival/libarchive/filter_accept_list_reassign.c index b9acfbc05..826c5c29d 100644 --- a/archival/libarchive/filter_accept_list_reassign.c +++ b/archival/libarchive/filter_accept_list_reassign.c | |||
@@ -1,10 +1,9 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * Copyright (C) 2002 by Glenn McGrath | 3 | * Copyright (C) 2002 by Glenn McGrath |
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | #include "libbb.h" | 7 | #include "libbb.h" |
9 | #include "bb_archive.h" | 8 | #include "bb_archive.h" |
10 | 9 | ||
diff --git a/archival/libarchive/filter_accept_reject_list.c b/archival/libarchive/filter_accept_reject_list.c index 248374941..939e626fa 100644 --- a/archival/libarchive/filter_accept_reject_list.c +++ b/archival/libarchive/filter_accept_reject_list.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | #include "libbb.h" | 7 | #include "libbb.h" |
9 | #include "bb_archive.h" | 8 | #include "bb_archive.h" |
10 | 9 | ||
diff --git a/archival/libarchive/find_list_entry.c b/archival/libarchive/find_list_entry.c index 56032c65a..37726bd3d 100644 --- a/archival/libarchive/find_list_entry.c +++ b/archival/libarchive/find_list_entry.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | #include <fnmatch.h> | 7 | #include <fnmatch.h> |
9 | #include "libbb.h" | 8 | #include "libbb.h" |
10 | #include "bb_archive.h" | 9 | #include "bb_archive.h" |
diff --git a/archival/libarchive/get_header_ar.c b/archival/libarchive/get_header_ar.c index c66bb3ee7..79725e535 100644 --- a/archival/libarchive/get_header_ar.c +++ b/archival/libarchive/get_header_ar.c | |||
@@ -3,7 +3,6 @@ | |||
3 | * | 3 | * |
4 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 4 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
5 | */ | 5 | */ |
6 | |||
7 | #include "libbb.h" | 6 | #include "libbb.h" |
8 | #include "bb_archive.h" | 7 | #include "bb_archive.h" |
9 | #include "ar.h" | 8 | #include "ar.h" |
diff --git a/archival/libarchive/get_header_cpio.c b/archival/libarchive/get_header_cpio.c index badd4a841..ba07622fd 100644 --- a/archival/libarchive/get_header_cpio.c +++ b/archival/libarchive/get_header_cpio.c | |||
@@ -3,7 +3,6 @@ | |||
3 | * | 3 | * |
4 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 4 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
5 | */ | 5 | */ |
6 | |||
7 | #include "libbb.h" | 6 | #include "libbb.h" |
8 | #include "bb_archive.h" | 7 | #include "bb_archive.h" |
9 | 8 | ||
diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c index c7e3bc16e..443a478a1 100644 --- a/archival/libarchive/get_header_tar.c +++ b/archival/libarchive/get_header_tar.c | |||
@@ -10,7 +10,6 @@ | |||
10 | * Opengroup's ustar interchange format, | 10 | * Opengroup's ustar interchange format, |
11 | * http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html | 11 | * http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html |
12 | */ | 12 | */ |
13 | |||
14 | #include "libbb.h" | 13 | #include "libbb.h" |
15 | #include "bb_archive.h" | 14 | #include "bb_archive.h" |
16 | 15 | ||
diff --git a/archival/libarchive/get_header_tar_bz2.c b/archival/libarchive/get_header_tar_bz2.c index 78f78a858..c021720ac 100644 --- a/archival/libarchive/get_header_tar_bz2.c +++ b/archival/libarchive/get_header_tar_bz2.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/get_header_tar_gz.c b/archival/libarchive/get_header_tar_gz.c index b11f503dc..793b161a1 100644 --- a/archival/libarchive/get_header_tar_gz.c +++ b/archival/libarchive/get_header_tar_gz.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/get_header_tar_lzma.c b/archival/libarchive/get_header_tar_lzma.c index d228cbc13..15d10adb8 100644 --- a/archival/libarchive/get_header_tar_lzma.c +++ b/archival/libarchive/get_header_tar_lzma.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | #include "libbb.h" | 8 | #include "libbb.h" |
10 | #include "bb_archive.h" | 9 | #include "bb_archive.h" |
11 | 10 | ||
diff --git a/archival/libarchive/get_header_tar_xz.c b/archival/libarchive/get_header_tar_xz.c index 7bf3b3b56..852c989ce 100644 --- a/archival/libarchive/get_header_tar_xz.c +++ b/archival/libarchive/get_header_tar_xz.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/header_verbose_list.c b/archival/libarchive/header_verbose_list.c index 87dd82136..be5140f8b 100644 --- a/archival/libarchive/header_verbose_list.c +++ b/archival/libarchive/header_verbose_list.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/init_handle.c b/archival/libarchive/init_handle.c index dcba6666f..4c64dac58 100644 --- a/archival/libarchive/init_handle.c +++ b/archival/libarchive/init_handle.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/open_transformer.c b/archival/libarchive/open_transformer.c index e81a81072..9fefd4aad 100644 --- a/archival/libarchive/open_transformer.c +++ b/archival/libarchive/open_transformer.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/seek_by_jump.c b/archival/libarchive/seek_by_jump.c index 4fcd99ac8..232d97e53 100644 --- a/archival/libarchive/seek_by_jump.c +++ b/archival/libarchive/seek_by_jump.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/seek_by_read.c b/archival/libarchive/seek_by_read.c index c0fde9660..df2346354 100644 --- a/archival/libarchive/seek_by_read.c +++ b/archival/libarchive/seek_by_read.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/archival/libarchive/unpack_ar_archive.c b/archival/libarchive/unpack_ar_archive.c index 0bc030349..4f9f89874 100644 --- a/archival/libarchive/unpack_ar_archive.c +++ b/archival/libarchive/unpack_ar_archive.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | #include "ar.h" | 7 | #include "ar.h" |
diff --git a/archival/libarchive/unsafe_prefix.c b/archival/libarchive/unsafe_prefix.c index 9994f4d94..33e487bf9 100644 --- a/archival/libarchive/unsafe_prefix.c +++ b/archival/libarchive/unsafe_prefix.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | #include "bb_archive.h" | 6 | #include "bb_archive.h" |
8 | 7 | ||
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c index bad2b76e4..7f0f9c711 100644 --- a/console-tools/setconsole.c +++ b/console-tools/setconsole.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * setconsole.c - redirect system console output | 3 | * setconsole.c - redirect system console output |
4 | * | 4 | * |
5 | * Copyright (C) 2004,2005 Enrik Berkhan <Enrik.Berkhan@inka.de> | 5 | * Copyright (C) 2004,2005 Enrik Berkhan <Enrik.Berkhan@inka.de> |
6 | * Copyright (C) 2008 Bernhard Reutner-Fischer | 6 | * Copyright (C) 2008 Bernhard Reutner-Fischer |
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
diff --git a/coreutils/fold.c b/coreutils/fold.c index 286db228d..578e5a4b6 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -1,14 +1,14 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* fold -- wrap each input line to fit in specified width. | 2 | /* fold -- wrap each input line to fit in specified width. |
3 | 3 | * | |
4 | Written by David MacKenzie, djm@gnu.ai.mit.edu. | 4 | * Written by David MacKenzie, djm@gnu.ai.mit.edu. |
5 | Copyright (C) 91, 1995-2002 Free Software Foundation, Inc. | 5 | * Copyright (C) 91, 1995-2002 Free Software Foundation, Inc. |
6 | 6 | * | |
7 | Modified for busybox based on coreutils v 5.0 | 7 | * Modified for busybox based on coreutils v 5.0 |
8 | Copyright (C) 2003 Glenn McGrath | 8 | * Copyright (C) 2003 Glenn McGrath |
9 | 9 | * | |
10 | Licensed under GPLv2 or later, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | //config:config FOLD | 12 | //config:config FOLD |
13 | //config: bool "fold (4.6 kb)" | 13 | //config: bool "fold (4.6 kb)" |
14 | //config: default y | 14 | //config: default y |
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 89d6cec0b..ccdfd6855 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * Copyright (C) 2003 Glenn L. McGrath | 3 | * Copyright (C) 2003 Glenn L. McGrath |
4 | * Copyright (C) 2003-2004 Erik Andersen | 4 | * Copyright (C) 2003-2004 Erik Andersen |
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
diff --git a/coreutils/printf.c b/coreutils/printf.c index 353cfc608..413273b26 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -1,41 +1,39 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* printf - format and print data | 2 | /* printf - format and print data |
3 | 3 | * | |
4 | Copyright 1999 Dave Cinege | 4 | * Copyright 1999 Dave Cinege |
5 | Portions copyright (C) 1990-1996 Free Software Foundation, Inc. | 5 | * Portions copyright (C) 1990-1996 Free Software Foundation, Inc. |
6 | 6 | * | |
7 | Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* Usage: printf format [argument...] | 9 | /* Usage: printf format [argument...] |
11 | 10 | * | |
12 | A front end to the printf function that lets it be used from the shell. | 11 | * A front end to the printf function that lets it be used from the shell. |
13 | 12 | * | |
14 | Backslash escapes: | 13 | * Backslash escapes: |
15 | 14 | * | |
16 | \" = double quote | 15 | * \" = double quote |
17 | \\ = backslash | 16 | * \\ = backslash |
18 | \a = alert (bell) | 17 | * \a = alert (bell) |
19 | \b = backspace | 18 | * \b = backspace |
20 | \c = produce no further output | 19 | * \c = produce no further output |
21 | \f = form feed | 20 | * \f = form feed |
22 | \n = new line | 21 | * \n = new line |
23 | \r = carriage return | 22 | * \r = carriage return |
24 | \t = horizontal tab | 23 | * \t = horizontal tab |
25 | \v = vertical tab | 24 | * \v = vertical tab |
26 | \0ooo = octal number (ooo is 0 to 3 digits) | 25 | * \0ooo = octal number (ooo is 0 to 3 digits) |
27 | \xhhh = hexadecimal number (hhh is 1 to 3 digits) | 26 | * \xhhh = hexadecimal number (hhh is 1 to 3 digits) |
28 | 27 | * | |
29 | Additional directive: | 28 | * Additional directive: |
30 | 29 | * | |
31 | %b = print an argument string, interpreting backslash escapes | 30 | * %b = print an argument string, interpreting backslash escapes |
32 | 31 | * | |
33 | The 'format' argument is re-used as many times as necessary | 32 | * The 'format' argument is re-used as many times as necessary |
34 | to convert all of the given arguments. | 33 | * to convert all of the given arguments. |
35 | 34 | * | |
36 | David MacKenzie <djm@gnu.ai.mit.edu> | 35 | * David MacKenzie <djm@gnu.ai.mit.edu> |
37 | */ | 36 | */ |
38 | |||
39 | /* 19990508 Busy Boxed! Dave Cinege */ | 37 | /* 19990508 Busy Boxed! Dave Cinege */ |
40 | 38 | ||
41 | //config:config PRINTF | 39 | //config:config PRINTF |
diff --git a/coreutils/stty.c b/coreutils/stty.c index b6e836364..df23f4cae 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -1,24 +1,24 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* stty -- change and print terminal line settings | 2 | /* stty -- change and print terminal line settings |
3 | Copyright (C) 1990-1999 Free Software Foundation, Inc. | 3 | * Copyright (C) 1990-1999 Free Software Foundation, Inc. |
4 | 4 | * | |
5 | Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | /* Usage: stty [-ag] [-F device] [setting...] | 7 | /* Usage: stty [-ag] [-F device] [setting...] |
8 | 8 | * | |
9 | Options: | 9 | * Options: |
10 | -a Write all current settings to stdout in human-readable form. | 10 | * -a Write all current settings to stdout in human-readable form. |
11 | -g Write all current settings to stdout in stty-readable form. | 11 | * -g Write all current settings to stdout in stty-readable form. |
12 | -F Open and use the specified device instead of stdin | 12 | * -F Open and use the specified device instead of stdin |
13 | 13 | * | |
14 | If no args are given, write to stdout the baud rate and settings that | 14 | * If no args are given, write to stdout the baud rate and settings that |
15 | have been changed from their defaults. Mode reading and changes | 15 | * have been changed from their defaults. Mode reading and changes |
16 | are done on the specified device, or stdin if none was specified. | 16 | * are done on the specified device, or stdin if none was specified. |
17 | 17 | * | |
18 | David MacKenzie <djm@gnu.ai.mit.edu> | 18 | * David MacKenzie <djm@gnu.ai.mit.edu> |
19 | 19 | * | |
20 | Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001 | 20 | * Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001 |
21 | */ | 21 | */ |
22 | //config:config STTY | 22 | //config:config STTY |
23 | //config: bool "stty (8.6 kb)" | 23 | //config: bool "stty (8.6 kb)" |
24 | //config: default y | 24 | //config: default y |
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index d6e077430..aa53b14a6 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * Copyright (C) 2000 by Glenn McGrath | 3 | * Copyright (C) 2000 by Glenn McGrath |
4 | * | 4 | * |
5 | * based on the function base64_encode from http.c in wget v1.6 | 5 | * based on the function base64_encode from http.c in wget v1.6 |
6 | * Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc. | 6 | * Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc. |
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
diff --git a/libbb/ask_confirmation.c b/libbb/ask_confirmation.c index d95729cc9..6fbed89f4 100644 --- a/libbb/ask_confirmation.c +++ b/libbb/ask_confirmation.c | |||
@@ -6,12 +6,11 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include "libbb.h" | ||
9 | 10 | ||
10 | /* Read a line from stdin. If the first non-whitespace char is 'y' or 'Y', | 11 | /* Read a line from stdin. If the first non-whitespace char is 'y' or 'Y', |
11 | * return 1. Otherwise return 0. | 12 | * return 1. Otherwise return 0. |
12 | */ | 13 | */ |
13 | #include "libbb.h" | ||
14 | |||
15 | int FAST_FUNC bb_ask_confirmation(void) | 14 | int FAST_FUNC bb_ask_confirmation(void) |
16 | { | 15 | { |
17 | char first = 0; | 16 | char first = 0; |
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c index c2580b9eb..aae35ec41 100644 --- a/libbb/bb_askpass.c +++ b/libbb/bb_askpass.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* do nothing signal handler */ | 11 | /* do nothing signal handler */ |
diff --git a/libbb/bb_do_delay.c b/libbb/bb_do_delay.c index 05c879fb9..65541704b 100644 --- a/libbb/bb_do_delay.c +++ b/libbb/bb_do_delay.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | void FAST_FUNC bb_do_delay(int seconds) | 11 | void FAST_FUNC bb_do_delay(int seconds) |
diff --git a/libbb/bb_pwd.c b/libbb/bb_pwd.c index dca0a150b..32ff83a42 100644 --- a/libbb/bb_pwd.c +++ b/libbb/bb_pwd.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
13 | /* TODO: maybe change API to return malloced data? | 12 | /* TODO: maybe change API to return malloced data? |
diff --git a/libbb/bb_qsort.c b/libbb/bb_qsort.c index a54e7236a..505045533 100644 --- a/libbb/bb_qsort.c +++ b/libbb/bb_qsort.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | int /* not FAST_FUNC! */ bb_pstrcmp(const void *a, const void *b) | 11 | int /* not FAST_FUNC! */ bb_pstrcmp(const void *a, const void *b) |
diff --git a/libbb/bb_strtod.c b/libbb/bb_strtod.c index 5dde78414..5e1d0535e 100644 --- a/libbb/bb_strtod.c +++ b/libbb/bb_strtod.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | #include <math.h> /* just for HUGE_VAL */ | 10 | #include <math.h> /* just for HUGE_VAL */ |
12 | 11 | ||
diff --git a/libbb/bb_strtonum.c b/libbb/bb_strtonum.c index 949f26bee..2185017b0 100644 --- a/libbb/bb_strtonum.c +++ b/libbb/bb_strtonum.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* On exit: errno = 0 only if there was non-empty, '\0' terminated value | 11 | /* On exit: errno = 0 only if there was non-empty, '\0' terminated value |
diff --git a/libbb/bbunit.c b/libbb/bbunit.c index db67b1081..5f8d980a3 100644 --- a/libbb/bbunit.c +++ b/libbb/bbunit.c | |||
@@ -6,9 +6,9 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | //applet:IF_UNIT_TEST(APPLET(unit, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
9 | 10 | ||
10 | //kbuild:lib-$(CONFIG_UNIT_TEST) += bbunit.o | 11 | //kbuild:lib-$(CONFIG_UNIT_TEST) += bbunit.o |
11 | //applet:IF_UNIT_TEST(APPLET(unit, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
12 | 12 | ||
13 | //usage:#define unit_trivial_usage | 13 | //usage:#define unit_trivial_usage |
14 | //usage: "" | 14 | //usage: "" |
diff --git a/libbb/change_identity.c b/libbb/change_identity.c index 431f72c8c..20d7c5f2d 100644 --- a/libbb/change_identity.c +++ b/libbb/change_identity.c | |||
@@ -27,7 +27,6 @@ | |||
27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | * SUCH DAMAGE. | 28 | * SUCH DAMAGE. |
29 | */ | 29 | */ |
30 | |||
31 | #include "libbb.h" | 30 | #include "libbb.h" |
32 | 31 | ||
33 | /* Become the user and group(s) specified by PW. */ | 32 | /* Become the user and group(s) specified by PW. */ |
diff --git a/libbb/chomp.c b/libbb/chomp.c index cb92befb1..3757bff2e 100644 --- a/libbb/chomp.c +++ b/libbb/chomp.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
13 | void FAST_FUNC chomp(char *s) | 12 | void FAST_FUNC chomp(char *s) |
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c index 2f51237a3..01a9df0e2 100644 --- a/libbb/compare_string_array.c +++ b/libbb/compare_string_array.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | #include "libbb.h" | 5 | #include "libbb.h" |
7 | 6 | ||
8 | /* | 7 | /* |
diff --git a/libbb/concat_path_file.c b/libbb/concat_path_file.c index 9ed295996..5b4b7f113 100644 --- a/libbb/concat_path_file.c +++ b/libbb/concat_path_file.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | #include "libbb.h" | ||
10 | 11 | ||
11 | /* Concatenate path and filename to new allocated buffer. | 12 | /* Concatenate path and filename to new allocated buffer. |
12 | * Add '/' only as needed (no duplicate // are produced). | 13 | * Add '/' only as needed (no duplicate // are produced). |
@@ -14,8 +15,6 @@ | |||
14 | * filename should not be NULL. | 15 | * filename should not be NULL. |
15 | */ | 16 | */ |
16 | 17 | ||
17 | #include "libbb.h" | ||
18 | |||
19 | char* FAST_FUNC concat_path_file(const char *path, const char *filename) | 18 | char* FAST_FUNC concat_path_file(const char *path, const char *filename) |
20 | { | 19 | { |
21 | char *lc; | 20 | char *lc; |
diff --git a/libbb/concat_subpath_file.c b/libbb/concat_subpath_file.c index c9167d492..bc2ee96ca 100644 --- a/libbb/concat_subpath_file.c +++ b/libbb/concat_subpath_file.c | |||
@@ -6,6 +6,7 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include "libbb.h" | ||
9 | 10 | ||
10 | /* | 11 | /* |
11 | This function make special for recursive actions with usage | 12 | This function make special for recursive actions with usage |
@@ -13,8 +14,6 @@ | |||
13 | and skipping "." and ".." directory entries | 14 | and skipping "." and ".." directory entries |
14 | */ | 15 | */ |
15 | 16 | ||
16 | #include "libbb.h" | ||
17 | |||
18 | char* FAST_FUNC concat_subpath_file(const char *path, const char *f) | 17 | char* FAST_FUNC concat_subpath_file(const char *path, const char *f) |
19 | { | 18 | { |
20 | if (f && DOT_OR_DOTDOT(f)) | 19 | if (f && DOT_OR_DOTDOT(f)) |
diff --git a/libbb/copyfd.c b/libbb/copyfd.c index 921fe3f81..dd0517cd6 100644 --- a/libbb/copyfd.c +++ b/libbb/copyfd.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | #if ENABLE_FEATURE_USE_SENDFILE | 10 | #if ENABLE_FEATURE_USE_SENDFILE |
12 | # include <sys/sendfile.h> | 11 | # include <sys/sendfile.h> |
diff --git a/libbb/correct_password.c b/libbb/correct_password.c index 51928f68d..a6f7d9b3d 100644 --- a/libbb/correct_password.c +++ b/libbb/correct_password.c | |||
@@ -27,7 +27,6 @@ | |||
27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | * SUCH DAMAGE. | 28 | * SUCH DAMAGE. |
29 | */ | 29 | */ |
30 | |||
31 | #include "libbb.h" | 30 | #include "libbb.h" |
32 | 31 | ||
33 | #define SHADOW_BUFSIZE 256 | 32 | #define SHADOW_BUFSIZE 256 |
diff --git a/libbb/crc32.c b/libbb/crc32.c index 0711ca84e..b00b580d0 100644 --- a/libbb/crc32.c +++ b/libbb/crc32.c | |||
@@ -15,7 +15,6 @@ | |||
15 | * | 15 | * |
16 | * Licensed under GPLv2, see file LICENSE in this source tree. | 16 | * Licensed under GPLv2, see file LICENSE in this source tree. |
17 | */ | 17 | */ |
18 | |||
19 | #include "libbb.h" | 18 | #include "libbb.h" |
20 | 19 | ||
21 | uint32_t *global_crc32_table; | 20 | uint32_t *global_crc32_table; |
diff --git a/libbb/default_error_retval.c b/libbb/default_error_retval.c index 4f6395fa2..fc6a5364a 100644 --- a/libbb/default_error_retval.c +++ b/libbb/default_error_retval.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | /* Seems silly to copyright a global variable. ;-) Oh well. | 7 | /* Seems silly to copyright a global variable. ;-) Oh well. |
9 | * | 8 | * |
10 | * At least one applet (cmp) returns a value different from the typical | 9 | * At least one applet (cmp) returns a value different from the typical |
@@ -12,7 +11,6 @@ | |||
12 | * by the applet. I suppose we could use a wrapper function to set it, but | 11 | * by the applet. I suppose we could use a wrapper function to set it, but |
13 | * that too seems silly. | 12 | * that too seems silly. |
14 | */ | 13 | */ |
15 | |||
16 | #include "libbb.h" | 14 | #include "libbb.h" |
17 | 15 | ||
18 | uint8_t xfunc_error_retval = EXIT_FAILURE; | 16 | uint8_t xfunc_error_retval = EXIT_FAILURE; |
diff --git a/libbb/device_open.c b/libbb/device_open.c index a8fe2fcb4..e5639c712 100644 --- a/libbb/device_open.c +++ b/libbb/device_open.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* try to open up the specified device */ | 11 | /* try to open up the specified device */ |
diff --git a/libbb/die_if_bad_username.c b/libbb/die_if_bad_username.c index cf1297bd6..46f103340 100644 --- a/libbb/die_if_bad_username.c +++ b/libbb/die_if_bad_username.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* To avoid problems, the username should consist only of | 11 | /* To avoid problems, the username should consist only of |
diff --git a/libbb/dump.c b/libbb/dump.c index e23b71294..db91fcfe7 100644 --- a/libbb/dump.c +++ b/libbb/dump.c | |||
@@ -10,7 +10,6 @@ | |||
10 | * | 10 | * |
11 | * Original copyright notice is retained at the end of this file. | 11 | * Original copyright notice is retained at the end of this file. |
12 | */ | 12 | */ |
13 | |||
14 | #include "libbb.h" | 13 | #include "libbb.h" |
15 | #include "dump.h" | 14 | #include "dump.h" |
16 | 15 | ||
diff --git a/libbb/executable.c b/libbb/executable.c index 3a1d4ff44..325dd0107 100644 --- a/libbb/executable.c +++ b/libbb/executable.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* check if path points to an executable file; | 11 | /* check if path points to an executable file; |
diff --git a/libbb/fclose_nonstdin.c b/libbb/fclose_nonstdin.c index 1b1441347..7d5331063 100644 --- a/libbb/fclose_nonstdin.c +++ b/libbb/fclose_nonstdin.c | |||
@@ -6,14 +6,12 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include "libbb.h" | ||
9 | 10 | ||
10 | /* A number of standard utilities can accept multiple command line args | 11 | /* A number of standard utilities can accept multiple command line args |
11 | * of '-' for stdin, according to SUSv3. So we encapsulate the check | 12 | * of '-' for stdin, according to SUSv3. So we encapsulate the check |
12 | * here to save a little space. | 13 | * here to save a little space. |
13 | */ | 14 | */ |
14 | |||
15 | #include "libbb.h" | ||
16 | |||
17 | int FAST_FUNC fclose_if_not_stdin(FILE *f) | 15 | int FAST_FUNC fclose_if_not_stdin(FILE *f) |
18 | { | 16 | { |
19 | /* Some more paranoid applets want ferror() check too */ | 17 | /* Some more paranoid applets want ferror() check too */ |
diff --git a/libbb/fflush_stdout_and_exit.c b/libbb/fflush_stdout_and_exit.c index b4bed865f..4c689c0fb 100644 --- a/libbb/fflush_stdout_and_exit.c +++ b/libbb/fflush_stdout_and_exit.c | |||
@@ -6,13 +6,11 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include "libbb.h" | ||
9 | 10 | ||
10 | /* Attempt to fflush(stdout), and exit with an error code if stdout is | 11 | /* Attempt to fflush(stdout), and exit with an error code if stdout is |
11 | * in an error state. | 12 | * in an error state. |
12 | */ | 13 | */ |
13 | |||
14 | #include "libbb.h" | ||
15 | |||
16 | void FAST_FUNC fflush_stdout_and_exit(int retval) | 14 | void FAST_FUNC fflush_stdout_and_exit(int retval) |
17 | { | 15 | { |
18 | xfunc_error_retval = retval; | 16 | xfunc_error_retval = retval; |
diff --git a/libbb/fgets_str.c b/libbb/fgets_str.c index 89210a3c9..1a7f2e9e0 100644 --- a/libbb/fgets_str.c +++ b/libbb/fgets_str.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
13 | static char *xmalloc_fgets_internal(FILE *file, const char *terminating_string, int chop_off, size_t *maxsz_p) | 12 | static char *xmalloc_fgets_internal(FILE *file, const char *terminating_string, int chop_off, size_t *maxsz_p) |
diff --git a/libbb/find_mount_point.c b/libbb/find_mount_point.c index 9676b5f52..94bbf1d4a 100644 --- a/libbb/find_mount_point.c +++ b/libbb/find_mount_point.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | #include <mntent.h> | 10 | #include <mntent.h> |
12 | 11 | ||
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c index db823d05b..abbf293e8 100644 --- a/libbb/find_pid_by_name.c +++ b/libbb/find_pid_by_name.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* | 11 | /* |
diff --git a/libbb/find_root_device.c b/libbb/find_root_device.c index 8436cd664..d560f3ec3 100644 --- a/libbb/find_root_device.c +++ b/libbb/find_root_device.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* Find block device /dev/XXX which contains specified file | 11 | /* Find block device /dev/XXX which contains specified file |
diff --git a/libbb/full_write.c b/libbb/full_write.c index 777fbd910..2b7983f4c 100644 --- a/libbb/full_write.c +++ b/libbb/full_write.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* | 11 | /* |
diff --git a/libbb/get_console.c b/libbb/get_console.c index 96b339ca7..0b53524aa 100644 --- a/libbb/get_console.c +++ b/libbb/get_console.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
13 | /* From <linux/kd.h> */ | 12 | /* From <linux/kd.h> */ |
diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c index a98dd35eb..cc61a9265 100644 --- a/libbb/get_line_from_file.c +++ b/libbb/get_line_from_file.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | #include "libbb.h" | 11 | #include "libbb.h" |
13 | 12 | ||
14 | char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end) | 13 | char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end) |
diff --git a/libbb/getpty.c b/libbb/getpty.c index 391d729f2..5d24ca930 100644 --- a/libbb/getpty.c +++ b/libbb/getpty.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | #include "libbb.h" | 8 | #include "libbb.h" |
10 | 9 | ||
11 | #define DEBUG 0 | 10 | #define DEBUG 0 |
diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c index 2a7247430..a53a382ce 100644 --- a/libbb/hash_md5_sha.c +++ b/libbb/hash_md5_sha.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | #define NEED_SHA512 (ENABLE_SHA512SUM || ENABLE_USE_BB_CRYPT_SHA) | 11 | #define NEED_SHA512 (ENABLE_SHA512SUM || ENABLE_USE_BB_CRYPT_SHA) |
diff --git a/libbb/human_readable.c b/libbb/human_readable.c index b4e0ef181..09221a186 100644 --- a/libbb/human_readable.c +++ b/libbb/human_readable.c | |||
@@ -22,7 +22,6 @@ | |||
22 | * | 22 | * |
23 | * Licensed under GPLv2, see file LICENSE in this source tree. | 23 | * Licensed under GPLv2, see file LICENSE in this source tree. |
24 | */ | 24 | */ |
25 | |||
26 | #include "libbb.h" | 25 | #include "libbb.h" |
27 | 26 | ||
28 | const char* FAST_FUNC make_human_readable_str(unsigned long long val, | 27 | const char* FAST_FUNC make_human_readable_str(unsigned long long val, |
diff --git a/libbb/in_ether.c b/libbb/in_ether.c index 161c8ea3c..c9cf6a99b 100644 --- a/libbb/in_ether.c +++ b/libbb/in_ether.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Utility routines. | 3 | * Utility routines. |
4 | */ | 4 | */ |
5 | |||
6 | //kbuild:lib-$(CONFIG_ARP) += in_ether.o | 5 | //kbuild:lib-$(CONFIG_ARP) += in_ether.o |
7 | //kbuild:lib-$(CONFIG_IFCONFIG) += in_ether.o | 6 | //kbuild:lib-$(CONFIG_IFCONFIG) += in_ether.o |
8 | //kbuild:lib-$(CONFIG_IFENSLAVE) += in_ether.o | 7 | //kbuild:lib-$(CONFIG_IFENSLAVE) += in_ether.o |
diff --git a/libbb/inet_common.c b/libbb/inet_common.c index 04259f47b..e9fbde7dc 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | #include "inet_common.h" | 11 | #include "inet_common.h" |
13 | 12 | ||
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c index f11c2afb2..4142813e3 100644 --- a/libbb/inode_hash.c +++ b/libbb/inode_hash.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
13 | typedef struct ino_dev_hash_bucket_struct { | 12 | typedef struct ino_dev_hash_bucket_struct { |
diff --git a/libbb/isdirectory.c b/libbb/isdirectory.c index ba6c52ce8..462aa0067 100644 --- a/libbb/isdirectory.c +++ b/libbb/isdirectory.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include <sys/stat.h> | 10 | #include <sys/stat.h> |
12 | #include "libbb.h" | 11 | #include "libbb.h" |
13 | 12 | ||
diff --git a/libbb/kernel_version.c b/libbb/kernel_version.c index 9b6c62299..7769a091b 100644 --- a/libbb/kernel_version.c +++ b/libbb/kernel_version.c | |||
@@ -6,12 +6,10 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | /* After libbb.h, since it needs sys/types.h on some systems */ | 10 | /* After libbb.h, since it needs sys/types.h on some systems */ |
12 | #include <sys/utsname.h> /* for uname(2) */ | 11 | #include <sys/utsname.h> /* for uname(2) */ |
13 | 12 | ||
14 | |||
15 | /* Returns current kernel version encoded as major*65536 + minor*256 + patch, | 13 | /* Returns current kernel version encoded as major*65536 + minor*256 + patch, |
16 | * so, for example, to check if the kernel is greater than 2.2.11: | 14 | * so, for example, to check if the kernel is greater than 2.2.11: |
17 | * | 15 | * |
diff --git a/libbb/last_char_is.c b/libbb/last_char_is.c index 65e6cdf04..66f2e3635 100644 --- a/libbb/last_char_is.c +++ b/libbb/last_char_is.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* Find out if the last character of a string matches the one given. | 11 | /* Find out if the last character of a string matches the one given. |
diff --git a/libbb/llist.c b/libbb/llist.c index 032e9fac8..e964a9b72 100644 --- a/libbb/llist.c +++ b/libbb/llist.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * | 9 | * |
10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | |||
13 | #include "libbb.h" | 12 | #include "libbb.h" |
14 | 13 | ||
15 | /* Add data to the start of the linked list. */ | 14 | /* Add data to the start of the linked list. */ |
diff --git a/libbb/login.c b/libbb/login.c index 5a7acfcf0..7f593d80d 100644 --- a/libbb/login.c +++ b/libbb/login.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | #include "libbb.h" | 11 | #include "libbb.h" |
13 | /* After libbb.h, since it needs sys/types.h on some systems */ | 12 | /* After libbb.h, since it needs sys/types.h on some systems */ |
14 | #include <sys/utsname.h> | 13 | #include <sys/utsname.h> |
diff --git a/libbb/make_directory.c b/libbb/make_directory.c index a6b7c28df..b9916d165 100644 --- a/libbb/make_directory.c +++ b/libbb/make_directory.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* Mar 5, 2003 Manuel Novoa III | 9 | /* Mar 5, 2003 Manuel Novoa III |
11 | * | 10 | * |
12 | * This is the main work function for the 'mkdir' applet. As such, it | 11 | * This is the main work function for the 'mkdir' applet. As such, it |
@@ -21,7 +20,6 @@ | |||
21 | * To set specific permissions on 'path', pass the appropriate 'mode' | 20 | * To set specific permissions on 'path', pass the appropriate 'mode' |
22 | * val. Otherwise, pass -1 to get default permissions. | 21 | * val. Otherwise, pass -1 to get default permissions. |
23 | */ | 22 | */ |
24 | |||
25 | #include "libbb.h" | 23 | #include "libbb.h" |
26 | 24 | ||
27 | /* This function is used from NOFORK applets. It must not allocate anything */ | 25 | /* This function is used from NOFORK applets. It must not allocate anything */ |
diff --git a/libbb/match_fstype.c b/libbb/match_fstype.c index 6046bc6db..1e2269c5e 100644 --- a/libbb/match_fstype.c +++ b/libbb/match_fstype.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * | 9 | * |
10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | |||
13 | #include "libbb.h" | 12 | #include "libbb.h" |
14 | 13 | ||
15 | int FAST_FUNC fstype_matches(const char *fstype, const char *comma_list) | 14 | int FAST_FUNC fstype_matches(const char *fstype, const char *comma_list) |
diff --git a/libbb/messages.c b/libbb/messages.c index 27fd14ecc..0a6cf3bf8 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | #include "libbb.h" | 7 | #include "libbb.h" |
9 | 8 | ||
10 | /* allow default system PATH to be extended via CFLAGS */ | 9 | /* allow default system PATH to be extended via CFLAGS */ |
diff --git a/libbb/mode_string.c b/libbb/mode_string.c index 934eb6dc7..280e6d291 100644 --- a/libbb/mode_string.c +++ b/libbb/mode_string.c | |||
@@ -10,8 +10,6 @@ | |||
10 | /* Aug 13, 2003 | 10 | /* Aug 13, 2003 |
11 | * Fix a bug reported by junkio@cox.net involving the mode_chars index. | 11 | * Fix a bug reported by junkio@cox.net involving the mode_chars index. |
12 | */ | 12 | */ |
13 | |||
14 | |||
15 | #include <assert.h> | 13 | #include <assert.h> |
16 | #include <sys/stat.h> | 14 | #include <sys/stat.h> |
17 | 15 | ||
diff --git a/libbb/mtab.c b/libbb/mtab.c index 22bff6490..131705ddb 100644 --- a/libbb/mtab.c +++ b/libbb/mtab.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include <mntent.h> | 9 | #include <mntent.h> |
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
diff --git a/libbb/nuke_str.c b/libbb/nuke_str.c index 56b808bc7..240e68004 100644 --- a/libbb/nuke_str.c +++ b/libbb/nuke_str.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //kbuild:lib-y += nuke_str.o | 9 | //kbuild:lib-y += nuke_str.o |
11 | 10 | ||
12 | #include "libbb.h" | 11 | #include "libbb.h" |
diff --git a/libbb/parse_mode.c b/libbb/parse_mode.c index bddd39bca..dc65860f6 100644 --- a/libbb/parse_mode.c +++ b/libbb/parse_mode.c | |||
@@ -6,11 +6,10 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include "libbb.h" | ||
9 | 10 | ||
10 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */ | 11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */ |
11 | 12 | ||
12 | #include "libbb.h" | ||
13 | |||
14 | /* This function is used from NOFORK applets. It must not allocate anything */ | 13 | /* This function is used from NOFORK applets. It must not allocate anything */ |
15 | 14 | ||
16 | #define FILEMODEBITS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) | 15 | #define FILEMODEBITS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) |
diff --git a/libbb/percent_decode.c b/libbb/percent_decode.c index 9a9d80c4a..e5e42f0b5 100644 --- a/libbb/percent_decode.c +++ b/libbb/percent_decode.c | |||
@@ -2,7 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | //kbuild:lib-y += percent_decode.o | 5 | //kbuild:lib-y += percent_decode.o |
7 | 6 | ||
8 | #include "libbb.h" | 7 | #include "libbb.h" |
diff --git a/libbb/printable.c b/libbb/printable.c index 9a423431e..224dde406 100644 --- a/libbb/printable.c +++ b/libbb/printable.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | void FAST_FUNC fputc_printable(int ch, FILE *file) | 11 | void FAST_FUNC fputc_printable(int ch, FILE *file) |
diff --git a/libbb/process_escape_sequence.c b/libbb/process_escape_sequence.c index 346ecfa1e..59d0d3ea8 100644 --- a/libbb/process_escape_sequence.c +++ b/libbb/process_escape_sequence.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
13 | #define WANT_HEX_ESCAPES 1 | 12 | #define WANT_HEX_ESCAPES 1 |
diff --git a/libbb/procps.c b/libbb/procps.c index b52c0f51b..9d8a921df 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | #include "libbb.h" | 11 | #include "libbb.h" |
13 | 12 | ||
14 | 13 | ||
diff --git a/libbb/ptr_to_globals.c b/libbb/ptr_to_globals.c index 1074538f3..8ba9cd154 100644 --- a/libbb/ptr_to_globals.c +++ b/libbb/ptr_to_globals.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | #include <errno.h> | 7 | #include <errno.h> |
9 | 8 | ||
10 | struct globals; | 9 | struct globals; |
diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c index fe06a8fe6..1edf4b6f0 100644 --- a/libbb/pw_encrypt.c +++ b/libbb/pw_encrypt.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* static const uint8_t ascii64[] ALIGN1 = | 11 | /* static const uint8_t ascii64[] ALIGN1 = |
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index 8f2b8b932..0831ecc3a 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | #undef DEBUG_RECURS_ACTION | 11 | #undef DEBUG_RECURS_ACTION |
diff --git a/libbb/remove_file.c b/libbb/remove_file.c index eaca293d9..8a1324393 100644 --- a/libbb/remove_file.c +++ b/libbb/remove_file.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* Used from NOFORK applets. Must not allocate anything */ | 11 | /* Used from NOFORK applets. Must not allocate anything */ |
diff --git a/libbb/replace.c b/libbb/replace.c index 8711f957d..a661d96e6 100644 --- a/libbb/replace.c +++ b/libbb/replace.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //kbuild:lib-y += replace.o | 9 | //kbuild:lib-y += replace.o |
11 | 10 | ||
12 | #include "libbb.h" | 11 | #include "libbb.h" |
diff --git a/libbb/run_shell.c b/libbb/run_shell.c index 3bb58bb6f..a0420d982 100644 --- a/libbb/run_shell.c +++ b/libbb/run_shell.c | |||
@@ -27,7 +27,6 @@ | |||
27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | * SUCH DAMAGE. | 28 | * SUCH DAMAGE. |
29 | */ | 29 | */ |
30 | |||
31 | #include "libbb.h" | 30 | #include "libbb.h" |
32 | #if ENABLE_SELINUX | 31 | #if ENABLE_SELINUX |
33 | #include <selinux/selinux.h> /* for setexeccon */ | 32 | #include <selinux/selinux.h> /* for setexeccon */ |
diff --git a/libbb/safe_gethostname.c b/libbb/safe_gethostname.c index cac99ae03..b22e30ea3 100644 --- a/libbb/safe_gethostname.c +++ b/libbb/safe_gethostname.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* | 9 | /* |
11 | * SUSv2 guarantees that "Host names are limited to 255 bytes" | 10 | * SUSv2 guarantees that "Host names are limited to 255 bytes" |
12 | * POSIX.1-2001 guarantees that "Host names (not including the terminating | 11 | * POSIX.1-2001 guarantees that "Host names (not including the terminating |
@@ -23,7 +22,6 @@ | |||
23 | * Host software MUST handle host names of up to 63 characters and | 22 | * Host software MUST handle host names of up to 63 characters and |
24 | * SHOULD handle host names of up to 255 characters. | 23 | * SHOULD handle host names of up to 255 characters. |
25 | */ | 24 | */ |
26 | |||
27 | #include "libbb.h" | 25 | #include "libbb.h" |
28 | #include <sys/utsname.h> | 26 | #include <sys/utsname.h> |
29 | 27 | ||
diff --git a/libbb/safe_poll.c b/libbb/safe_poll.c index b492a8151..cf93a9774 100644 --- a/libbb/safe_poll.c +++ b/libbb/safe_poll.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* Wrapper which restarts poll on EINTR or ENOMEM. | 11 | /* Wrapper which restarts poll on EINTR or ENOMEM. |
diff --git a/libbb/safe_strncpy.c b/libbb/safe_strncpy.c index 5eb0db0bd..9570aacd7 100644 --- a/libbb/safe_strncpy.c +++ b/libbb/safe_strncpy.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* Like strncpy but make sure the resulting string is always 0 terminated. */ | 11 | /* Like strncpy but make sure the resulting string is always 0 terminated. */ |
diff --git a/libbb/safe_write.c b/libbb/safe_write.c index aad50f5e0..12bb438b7 100644 --- a/libbb/safe_write.c +++ b/libbb/safe_write.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | ssize_t FAST_FUNC safe_write(int fd, const void *buf, size_t count) | 11 | ssize_t FAST_FUNC safe_write(int fd, const void *buf, size_t count) |
diff --git a/libbb/setup_environment.c b/libbb/setup_environment.c index 91b6d94db..f8de44967 100644 --- a/libbb/setup_environment.c +++ b/libbb/setup_environment.c | |||
@@ -27,7 +27,6 @@ | |||
27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | * SUCH DAMAGE. | 28 | * SUCH DAMAGE. |
29 | */ | 29 | */ |
30 | |||
31 | #include "libbb.h" | 30 | #include "libbb.h" |
32 | 31 | ||
33 | void FAST_FUNC setup_environment(const char *shell, int flags, const struct passwd *pw) | 32 | void FAST_FUNC setup_environment(const char *shell, int flags, const struct passwd *pw) |
diff --git a/libbb/signals.c b/libbb/signals.c index 56512473a..3f589321c 100644 --- a/libbb/signals.c +++ b/libbb/signals.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | #include "libbb.h" | 11 | #include "libbb.h" |
13 | 12 | ||
14 | /* All known arches use small ints for signals */ | 13 | /* All known arches use small ints for signals */ |
diff --git a/libbb/skip_whitespace.c b/libbb/skip_whitespace.c index b6cfbba4d..4df5d9e4d 100644 --- a/libbb/skip_whitespace.c +++ b/libbb/skip_whitespace.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | char* FAST_FUNC skip_whitespace(const char *s) | 11 | char* FAST_FUNC skip_whitespace(const char *s) |
diff --git a/libbb/speed_table.c b/libbb/speed_table.c index 11ced01d0..967cf8de8 100644 --- a/libbb/speed_table.c +++ b/libbb/speed_table.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | struct speed_map { | 11 | struct speed_map { |
diff --git a/libbb/strrstr.c b/libbb/strrstr.c index 93d970a1b..a173b034f 100644 --- a/libbb/strrstr.c +++ b/libbb/strrstr.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* | 11 | /* |
diff --git a/libbb/trim.c b/libbb/trim.c index e47fec74e..e360ba138 100644 --- a/libbb/trim.c +++ b/libbb/trim.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
13 | char* FAST_FUNC trim(char *s) | 12 | char* FAST_FUNC trim(char *s) |
diff --git a/libbb/uuencode.c b/libbb/uuencode.c index f7b248492..f32a3da7d 100644 --- a/libbb/uuencode.c +++ b/libbb/uuencode.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* Conversion table. for base 64 */ | 11 | /* Conversion table. for base 64 */ |
diff --git a/libbb/wfopen.c b/libbb/wfopen.c index 76dc8b82a..20fe18b23 100644 --- a/libbb/wfopen.c +++ b/libbb/wfopen.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | FILE* FAST_FUNC fopen_or_warn(const char *path, const char *mode) | 11 | FILE* FAST_FUNC fopen_or_warn(const char *path, const char *mode) |
diff --git a/libbb/wfopen_input.c b/libbb/wfopen_input.c index d8b1c4a36..872464248 100644 --- a/libbb/wfopen_input.c +++ b/libbb/wfopen_input.c | |||
@@ -6,14 +6,13 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include "libbb.h" | ||
9 | 10 | ||
10 | /* A number of applets need to open a file for reading, where the filename | 11 | /* A number of applets need to open a file for reading, where the filename |
11 | * is a command line arg. Since often that arg is '-' (meaning stdin), | 12 | * is a command line arg. Since often that arg is '-' (meaning stdin), |
12 | * we avoid testing everywhere by consolidating things in this routine. | 13 | * we avoid testing everywhere by consolidating things in this routine. |
13 | */ | 14 | */ |
14 | 15 | ||
15 | #include "libbb.h" | ||
16 | |||
17 | FILE* FAST_FUNC fopen_or_warn_stdin(const char *filename) | 16 | FILE* FAST_FUNC fopen_or_warn_stdin(const char *filename) |
18 | { | 17 | { |
19 | FILE *fp = stdin; | 18 | FILE *fp = stdin; |
diff --git a/libbb/write.c b/libbb/write.c index 2d67a7281..dd64b0032 100644 --- a/libbb/write.c +++ b/libbb/write.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* Open file and write string str to it, close file. | 11 | /* Open file and write string str to it, close file. |
diff --git a/libbb/xatonum.c b/libbb/xatonum.c index b63b7f54d..7639a62aa 100644 --- a/libbb/xatonum.c +++ b/libbb/xatonum.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | #define type long long | 11 | #define type long long |
diff --git a/libbb/xconnect.c b/libbb/xconnect.c index 3a0dc2653..39e56b223 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include <sys/types.h> | 9 | #include <sys/types.h> |
11 | #include <sys/socket.h> /* netinet/in.h needs it */ | 10 | #include <sys/socket.h> /* netinet/in.h needs it */ |
12 | #include <netinet/in.h> | 11 | #include <netinet/in.h> |
diff --git a/libbb/xfunc_die.c b/libbb/xfunc_die.c index 73f7998e5..25b99066d 100644 --- a/libbb/xfunc_die.c +++ b/libbb/xfunc_die.c | |||
@@ -6,12 +6,11 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include "libbb.h" | ||
9 | 10 | ||
10 | /* Keeping it separate allows to NOT pull in stdio for VERY small applets. | 11 | /* Keeping it separate allows to NOT pull in stdio for VERY small applets. |
11 | * Try building busybox with only "true" enabled... */ | 12 | * Try building busybox with only "true" enabled... */ |
12 | 13 | ||
13 | #include "libbb.h" | ||
14 | |||
15 | void (*die_func)(void); | 14 | void (*die_func)(void); |
16 | 15 | ||
17 | void FAST_FUNC xfunc_die(void) | 16 | void FAST_FUNC xfunc_die(void) |
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 0dfb3e2d9..9cbfb2836 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | /* We need to have separate xfuncs.c and xfuncs_printf.c because | 11 | /* We need to have separate xfuncs.c and xfuncs_printf.c because |
13 | * with current linkers, even with section garbage collection, | 12 | * with current linkers, even with section garbage collection, |
14 | * if *.o module references any of XXXprintf functions, you pull in | 13 | * if *.o module references any of XXXprintf functions, you pull in |
@@ -21,7 +20,6 @@ | |||
21 | * | 20 | * |
22 | * TODO: move xmalloc() and xatonum() here. | 21 | * TODO: move xmalloc() and xatonum() here. |
23 | */ | 22 | */ |
24 | |||
25 | #include "libbb.h" | 23 | #include "libbb.h" |
26 | 24 | ||
27 | /* Turn on nonblocking I/O on a fd */ | 25 | /* Turn on nonblocking I/O on a fd */ |
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index f569b0263..2bc01ad10 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | /* We need to have separate xfuncs.c and xfuncs_printf.c because | 11 | /* We need to have separate xfuncs.c and xfuncs_printf.c because |
13 | * with current linkers, even with section garbage collection, | 12 | * with current linkers, even with section garbage collection, |
14 | * if *.o module references any of XXXprintf functions, you pull in | 13 | * if *.o module references any of XXXprintf functions, you pull in |
@@ -19,7 +18,6 @@ | |||
19 | * which do not pull in printf, directly or indirectly. | 18 | * which do not pull in printf, directly or indirectly. |
20 | * xfunc_printf.c contains those which do. | 19 | * xfunc_printf.c contains those which do. |
21 | */ | 20 | */ |
22 | |||
23 | #include "libbb.h" | 21 | #include "libbb.h" |
24 | 22 | ||
25 | 23 | ||
diff --git a/libbb/xgetcwd.c b/libbb/xgetcwd.c index 71720d323..7f9088bda 100644 --- a/libbb/xgetcwd.c +++ b/libbb/xgetcwd.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | #include "libbb.h" | 11 | #include "libbb.h" |
13 | 12 | ||
14 | /* Return the current directory, newly allocated, arbitrarily long. | 13 | /* Return the current directory, newly allocated, arbitrarily long. |
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c index 7d4cb60a5..9b62bcc43 100644 --- a/libbb/xreadlink.c +++ b/libbb/xreadlink.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | #include "libbb.h" | 8 | #include "libbb.h" |
10 | 9 | ||
11 | /* Some systems (eg Hurd) do not have MAXSYMLINKS definition, | 10 | /* Some systems (eg Hurd) do not have MAXSYMLINKS definition, |
diff --git a/libbb/xrealloc_vector.c b/libbb/xrealloc_vector.c index e8d31b7e4..dda5f3f7d 100644 --- a/libbb/xrealloc_vector.c +++ b/libbb/xrealloc_vector.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | 10 | ||
12 | /* Resize (grow) malloced vector. | 11 | /* Resize (grow) malloced vector. |
diff --git a/libbb/xregcomp.c b/libbb/xregcomp.c index 344028f44..5870012d0 100644 --- a/libbb/xregcomp.c +++ b/libbb/xregcomp.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | #include "xregex.h" | 11 | #include "xregex.h" |
13 | 12 | ||
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index c9bbc8bda..7e3568f80 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c | |||
@@ -28,7 +28,6 @@ | |||
28 | * implemented, if you need a particular missing function it should be | 28 | * implemented, if you need a particular missing function it should be |
29 | * easy to write it by using the internal common code. | 29 | * easy to write it by using the internal common code. |
30 | */ | 30 | */ |
31 | |||
32 | #include "libbb.h" | 31 | #include "libbb.h" |
33 | 32 | ||
34 | struct const_passdb { | 33 | struct const_passdb { |
diff --git a/miscutils/devmem.c b/miscutils/devmem.c index 624054770..51ac3f22f 100644 --- a/miscutils/devmem.c +++ b/miscutils/devmem.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2000, Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl) | ||
3 | * Copyright (C) 2008, BusyBox Team. -solar 4/26/08 | ||
2 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 4 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
3 | * Copyright (C) 2000, Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl) | ||
4 | * Copyright (C) 2008, BusyBox Team. -solar 4/26/08 | ||
5 | */ | 5 | */ |
6 | //config:config DEVMEM | 6 | //config:config DEVMEM |
7 | //config: bool "devmem (2.5 kb)" | 7 | //config: bool "devmem (2.5 kb)" |
diff --git a/miscutils/time.c b/miscutils/time.c index 65dbcdcf3..f4f8149d3 100644 --- a/miscutils/time.c +++ b/miscutils/time.c | |||
@@ -1,13 +1,14 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* 'time' utility to display resource usage of processes. | 2 | /* |
3 | Copyright (C) 1990, 91, 92, 93, 96 Free Software Foundation, Inc. | 3 | * 'time' utility to display resource usage of processes. |
4 | 4 | * Copyright (C) 1990, 91, 92, 93, 96 Free Software Foundation, Inc. | |
5 | Licensed under GPLv2, see file LICENSE in this source tree. | 5 | * |
6 | */ | 6 | * Licensed under GPLv2, see file LICENSE in this source tree. |
7 | */ | ||
7 | /* Originally written by David Keppel <pardo@cs.washington.edu>. | 8 | /* Originally written by David Keppel <pardo@cs.washington.edu>. |
8 | Heavily modified by David MacKenzie <djm@gnu.ai.mit.edu>. | 9 | * Heavily modified by David MacKenzie <djm@gnu.ai.mit.edu>. |
9 | Heavily modified for busybox by Erik Andersen <andersen@codepoet.org> | 10 | * Heavily modified for busybox by Erik Andersen <andersen@codepoet.org> |
10 | */ | 11 | */ |
11 | //config:config TIME | 12 | //config:config TIME |
12 | //config: bool "time (7 kb)" | 13 | //config: bool "time (7 kb)" |
13 | //config: default y | 14 | //config: default y |
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 5521e8a5a..534c9f0c7 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -1,18 +1,18 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * ifup/ifdown for busybox | 3 | * ifup/ifdown for busybox |
4 | * Copyright (c) 2002 Glenn McGrath | 4 | * Copyright (c) 2002 Glenn McGrath |
5 | * Copyright (c) 2003-2004 Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (c) 2003-2004 Erik Andersen <andersen@codepoet.org> |
6 | * | 6 | * |
7 | * Based on ifupdown v 0.6.4 by Anthony Towns | 7 | * Based on ifupdown v 0.6.4 by Anthony Towns |
8 | * Copyright (c) 1999 Anthony Towns <aj@azure.humbug.org.au> | 8 | * Copyright (c) 1999 Anthony Towns <aj@azure.humbug.org.au> |
9 | * | 9 | * |
10 | * Changes to upstream version | 10 | * Changes to upstream version |
11 | * Remove checks for kernel version, assume kernel version 2.2.0 or better. | 11 | * Remove checks for kernel version, assume kernel version 2.2.0 or better. |
12 | * Lines in the interfaces file cannot wrap. | 12 | * Lines in the interfaces file cannot wrap. |
13 | * To adhere to the FHS, the default state file is /var/run/ifstate | 13 | * To adhere to the FHS, the default state file is /var/run/ifstate |
14 | * (defined via CONFIG_IFUPDOWN_IFSTATE_PATH) and can be overridden by build | 14 | * (defined via CONFIG_IFUPDOWN_IFSTATE_PATH) and can be overridden by build |
15 | * configuration. | 15 | * configuration. |
16 | * | 16 | * |
17 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 17 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
18 | */ | 18 | */ |
diff --git a/networking/interface.c b/networking/interface.c index 119185881..89427f2f4 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -30,7 +30,6 @@ | |||
30 | * 20001008 - Bernd Eckenfels, Patch from RH for setting mtu | 30 | * 20001008 - Bernd Eckenfels, Patch from RH for setting mtu |
31 | * (default AF was wrong) | 31 | * (default AF was wrong) |
32 | */ | 32 | */ |
33 | |||
34 | #include "libbb.h" | 33 | #include "libbb.h" |
35 | #include "inet_common.h" | 34 | #include "inet_common.h" |
36 | #include <net/if.h> | 35 | #include <net/if.h> |
diff --git a/networking/libiproute/ipneigh.c b/networking/libiproute/ipneigh.c index 2a1c20e20..1cd90d707 100644 --- a/networking/libiproute/ipneigh.c +++ b/networking/libiproute/ipneigh.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Ported to Busybox by: Curt Brune <curt@cumulusnetworks.com> | 7 | * Ported to Busybox by: Curt Brune <curt@cumulusnetworks.com> |
8 | */ | 8 | */ |
9 | |||
10 | #include "ip_common.h" /* #include "libbb.h" is inside */ | 9 | #include "ip_common.h" /* #include "libbb.h" is inside */ |
11 | #include "common_bufsiz.h" | 10 | #include "common_bufsiz.h" |
12 | #include "rt_names.h" | 11 | #include "rt_names.h" |
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c index 7e0ff1b6c..3f0f70326 100644 --- a/networking/libiproute/libnetlink.c +++ b/networking/libiproute/libnetlink.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
9 | */ | 9 | */ |
10 | |||
11 | #include <sys/socket.h> | 10 | #include <sys/socket.h> |
12 | #include <sys/uio.h> | 11 | #include <sys/uio.h> |
13 | 12 | ||
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c index af9eb46f7..be88a04e8 100644 --- a/networking/libiproute/ll_map.c +++ b/networking/libiproute/ll_map.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
9 | */ | 9 | */ |
10 | |||
11 | #include <net/if.h> /* struct ifreq and co. */ | 10 | #include <net/if.h> /* struct ifreq and co. */ |
12 | 11 | ||
13 | #include "libbb.h" | 12 | #include "libbb.h" |
diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c index 4c32ae574..7d46221ac 100644 --- a/networking/libiproute/ll_proto.c +++ b/networking/libiproute/ll_proto.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
9 | */ | 9 | */ |
10 | |||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | #include "rt_names.h" | 11 | #include "rt_names.h" |
13 | #include "utils.h" | 12 | #include "utils.h" |
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 0013f4aa7..55f21c187 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -1,7 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * udhcp client | 3 | * udhcp client |
4 | * | ||
5 | * Russ Dill <Russ.Dill@asu.edu> July 2001 | 4 | * Russ Dill <Russ.Dill@asu.edu> July 2001 |
6 | * | 5 | * |
7 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c index ea84c0dd7..4d5644093 100644 --- a/networking/udhcp/dhcprelay.c +++ b/networking/udhcp/dhcprelay.c | |||
@@ -1,5 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* Port to Busybox Copyright (C) 2006 Jesse Dutton <jessedutton@gmail.com> | 2 | /* |
3 | * Port to Busybox Copyright (C) 2006 Jesse Dutton <jessedutton@gmail.com> | ||
3 | * | 4 | * |
4 | * Licensed under GPLv2, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2, see file LICENSE in this source tree. |
5 | * | 6 | * |
diff --git a/networking/udhcp/domain_codec.c b/networking/udhcp/domain_codec.c index 5a923cc2c..b7a3a5353 100644 --- a/networking/udhcp/domain_codec.c +++ b/networking/udhcp/domain_codec.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | 2 | /* | |
3 | /* RFC1035 domain compression routines (C) 2007 Gabriel Somlo <somlo at cmu.edu> | 3 | * RFC1035 domain compression routines (C) 2007 Gabriel Somlo <somlo at cmu.edu> |
4 | * | 4 | * |
5 | * Loosely based on the isc-dhcpd implementation by dhankins@isc.org | 5 | * Loosely based on the isc-dhcpd implementation by dhankins@isc.org |
6 | * | 6 | * |
diff --git a/sysklogd/syslogd_and_logger.c b/sysklogd/syslogd_and_logger.c index 6d06a718b..9bba195d4 100644 --- a/sysklogd/syslogd_and_logger.c +++ b/sysklogd/syslogd_and_logger.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | #include "libbb.h" | 9 | #include "libbb.h" |
11 | #include "common_bufsiz.h" | 10 | #include "common_bufsiz.h" |
12 | #define SYSLOG_NAMES | 11 | #define SYSLOG_NAMES |
diff --git a/util-linux/getopt.c b/util-linux/getopt.c index a151b7e56..4431a7e74 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c | |||
@@ -1,11 +1,10 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * getopt.c - Enhanced implementation of BSD getopt(1) | 3 | * getopt.c - Enhanced implementation of BSD getopt(1) |
4 | * Copyright (c) 1997, 1998, 1999, 2000 Frodo Looijaard <frodol@dds.nl> | 4 | * Copyright (c) 1997, 1998, 1999, 2000 Frodo Looijaard <frodol@dds.nl> |
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | /* | 8 | /* |
10 | * Version 1.0-b4: Tue Sep 23 1997. First public release. | 9 | * Version 1.0-b4: Tue Sep 23 1997. First public release. |
11 | * Version 1.0: Wed Nov 19 1997. | 10 | * Version 1.0: Wed Nov 19 1997. |
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index 394ece1dd..8fc33be3c 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c | |||
@@ -1,8 +1,8 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * readprofile.c - used to read /proc/profile | 3 | * readprofile.c - used to read /proc/profile |
4 | * | 4 | * |
5 | * Copyright (C) 1994,1996 Alessandro Rubini (rubini@ipvvis.unipv.it) | 5 | * Copyright (C) 1994,1996 Alessandro Rubini (rubini@ipvvis.unipv.it) |
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |