summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/libarchive/common.c1
-rw-r--r--archival/libarchive/data_align.c1
-rw-r--r--archival/libarchive/data_extract_all.c1
-rw-r--r--archival/libarchive/data_extract_to_command.c1
-rw-r--r--archival/libarchive/data_extract_to_stdout.c1
-rw-r--r--archival/libarchive/data_skip.c1
-rw-r--r--archival/libarchive/decompress_bunzip2.c18
-rw-r--r--archival/libarchive/decompress_gunzip.c1
-rw-r--r--archival/libarchive/filter_accept_all.c1
-rw-r--r--archival/libarchive/filter_accept_list.c1
-rw-r--r--archival/libarchive/filter_accept_list_reassign.c3
-rw-r--r--archival/libarchive/filter_accept_reject_list.c1
-rw-r--r--archival/libarchive/find_list_entry.c1
-rw-r--r--archival/libarchive/get_header_ar.c1
-rw-r--r--archival/libarchive/get_header_cpio.c1
-rw-r--r--archival/libarchive/get_header_tar.c1
-rw-r--r--archival/libarchive/get_header_tar_bz2.c1
-rw-r--r--archival/libarchive/get_header_tar_gz.c1
-rw-r--r--archival/libarchive/get_header_tar_lzma.c1
-rw-r--r--archival/libarchive/get_header_tar_xz.c1
-rw-r--r--archival/libarchive/header_verbose_list.c1
-rw-r--r--archival/libarchive/init_handle.c1
-rw-r--r--archival/libarchive/open_transformer.c1
-rw-r--r--archival/libarchive/seek_by_jump.c1
-rw-r--r--archival/libarchive/seek_by_read.c1
-rw-r--r--archival/libarchive/unpack_ar_archive.c1
-rw-r--r--archival/libarchive/unsafe_prefix.c1
-rw-r--r--console-tools/setconsole.c6
-rw-r--r--coreutils/fold.c18
-rw-r--r--coreutils/md5_sha1_sum.c4
-rw-r--r--coreutils/printf.c68
-rw-r--r--coreutils/stty.c36
-rw-r--r--coreutils/uuencode.c6
-rw-r--r--libbb/ask_confirmation.c3
-rw-r--r--libbb/bb_askpass.c1
-rw-r--r--libbb/bb_do_delay.c1
-rw-r--r--libbb/bb_pwd.c1
-rw-r--r--libbb/bb_qsort.c1
-rw-r--r--libbb/bb_strtod.c1
-rw-r--r--libbb/bb_strtonum.c1
-rw-r--r--libbb/bbunit.c2
-rw-r--r--libbb/change_identity.c1
-rw-r--r--libbb/chomp.c1
-rw-r--r--libbb/compare_string_array.c1
-rw-r--r--libbb/concat_path_file.c3
-rw-r--r--libbb/concat_subpath_file.c3
-rw-r--r--libbb/copyfd.c1
-rw-r--r--libbb/correct_password.c1
-rw-r--r--libbb/crc32.c1
-rw-r--r--libbb/default_error_retval.c2
-rw-r--r--libbb/device_open.c1
-rw-r--r--libbb/die_if_bad_username.c1
-rw-r--r--libbb/dump.c1
-rw-r--r--libbb/executable.c1
-rw-r--r--libbb/fclose_nonstdin.c4
-rw-r--r--libbb/fflush_stdout_and_exit.c4
-rw-r--r--libbb/fgets_str.c1
-rw-r--r--libbb/find_mount_point.c1
-rw-r--r--libbb/find_pid_by_name.c1
-rw-r--r--libbb/find_root_device.c1
-rw-r--r--libbb/full_write.c1
-rw-r--r--libbb/get_console.c1
-rw-r--r--libbb/get_line_from_file.c1
-rw-r--r--libbb/getpty.c1
-rw-r--r--libbb/hash_md5_sha.c1
-rw-r--r--libbb/human_readable.c1
-rw-r--r--libbb/in_ether.c1
-rw-r--r--libbb/inet_common.c1
-rw-r--r--libbb/inode_hash.c1
-rw-r--r--libbb/isdirectory.c1
-rw-r--r--libbb/kernel_version.c2
-rw-r--r--libbb/last_char_is.c1
-rw-r--r--libbb/llist.c1
-rw-r--r--libbb/login.c1
-rw-r--r--libbb/make_directory.c2
-rw-r--r--libbb/match_fstype.c1
-rw-r--r--libbb/messages.c1
-rw-r--r--libbb/mode_string.c2
-rw-r--r--libbb/mtab.c1
-rw-r--r--libbb/nuke_str.c1
-rw-r--r--libbb/parse_mode.c3
-rw-r--r--libbb/percent_decode.c1
-rw-r--r--libbb/printable.c1
-rw-r--r--libbb/process_escape_sequence.c1
-rw-r--r--libbb/procps.c1
-rw-r--r--libbb/ptr_to_globals.c1
-rw-r--r--libbb/pw_encrypt.c1
-rw-r--r--libbb/recursive_action.c1
-rw-r--r--libbb/remove_file.c1
-rw-r--r--libbb/replace.c1
-rw-r--r--libbb/run_shell.c1
-rw-r--r--libbb/safe_gethostname.c2
-rw-r--r--libbb/safe_poll.c1
-rw-r--r--libbb/safe_strncpy.c1
-rw-r--r--libbb/safe_write.c1
-rw-r--r--libbb/setup_environment.c1
-rw-r--r--libbb/signals.c1
-rw-r--r--libbb/skip_whitespace.c1
-rw-r--r--libbb/speed_table.c1
-rw-r--r--libbb/strrstr.c1
-rw-r--r--libbb/trim.c1
-rw-r--r--libbb/uuencode.c1
-rw-r--r--libbb/wfopen.c1
-rw-r--r--libbb/wfopen_input.c3
-rw-r--r--libbb/write.c1
-rw-r--r--libbb/xatonum.c1
-rw-r--r--libbb/xconnect.c1
-rw-r--r--libbb/xfunc_die.c3
-rw-r--r--libbb/xfuncs.c2
-rw-r--r--libbb/xfuncs_printf.c2
-rw-r--r--libbb/xgetcwd.c1
-rw-r--r--libbb/xreadlink.c1
-rw-r--r--libbb/xrealloc_vector.c1
-rw-r--r--libbb/xregcomp.c1
-rw-r--r--libpwdgrp/pwd_grp.c1
-rw-r--r--miscutils/devmem.c4
-rw-r--r--miscutils/time.c17
-rw-r--r--networking/ifupdown.c22
-rw-r--r--networking/interface.c1
-rw-r--r--networking/libiproute/ipneigh.c1
-rw-r--r--networking/libiproute/libnetlink.c1
-rw-r--r--networking/libiproute/ll_map.c1
-rw-r--r--networking/libiproute/ll_proto.c1
-rw-r--r--networking/udhcp/dhcpc.c1
-rw-r--r--networking/udhcp/dhcprelay.c3
-rw-r--r--networking/udhcp/domain_codec.c4
-rw-r--r--sysklogd/syslogd_and_logger.c1
-rw-r--r--util-linux/getopt.c3
-rw-r--r--util-linux/readprofile.c4
129 files changed, 115 insertions, 241 deletions
diff --git a/archival/libarchive/common.c b/archival/libarchive/common.c
index 389cb78..25c7bdd 100644
--- a/archival/libarchive/common.c
+++ b/archival/libarchive/common.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/data_align.c b/archival/libarchive/data_align.c
index a6b84a4..f61fdd9 100644
--- a/archival/libarchive/data_align.c
+++ b/archival/libarchive/data_align.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/data_extract_all.c b/archival/libarchive/data_extract_all.c
index e658444..d3a6df5 100644
--- a/archival/libarchive/data_extract_all.c
+++ b/archival/libarchive/data_extract_all.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/data_extract_to_command.c b/archival/libarchive/data_extract_to_command.c
index 5d87693..1114a95 100644
--- a/archival/libarchive/data_extract_to_command.c
+++ b/archival/libarchive/data_extract_to_command.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/data_extract_to_stdout.c b/archival/libarchive/data_extract_to_stdout.c
index f849f3b..5200413 100644
--- a/archival/libarchive/data_extract_to_stdout.c
+++ b/archival/libarchive/data_extract_to_stdout.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/data_skip.c b/archival/libarchive/data_skip.c
index 588167f..1a60822 100644
--- a/archival/libarchive/data_skip.c
+++ b/archival/libarchive/data_skip.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/decompress_bunzip2.c b/archival/libarchive/decompress_bunzip2.c
index 803702f..af87964 100644
--- a/archival/libarchive/decompress_bunzip2.c
+++ b/archival/libarchive/decompress_bunzip2.c
@@ -1,14 +1,13 @@
/* vi: set sw=4 ts=4: */
/* Small bzip2 deflate implementation, by Rob Landley (rob@landley.net).
-
- Based on bzip2 decompression code by Julian R Seward (jseward@acm.org),
- which also acknowledges contributions by Mike Burrows, David Wheeler,
- Peter Fenwick, Alistair Moffat, Radford Neal, Ian H. Witten,
- Robert Sedgewick, and Jon L. Bentley.
-
- Licensed under GPLv2 or later, see file LICENSE in this source tree.
-*/
-
+ *
+ * Based on bzip2 decompression code by Julian R Seward (jseward@acm.org),
+ * which also acknowledges contributions by Mike Burrows, David Wheeler,
+ * Peter Fenwick, Alistair Moffat, Radford Neal, Ian H. Witten,
+ * Robert Sedgewick, and Jon L. Bentley.
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
+ */
/*
Size and speed optimizations by Manuel Novoa III (mjn3@codepoet.org).
@@ -38,7 +37,6 @@
Manuel
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/decompress_gunzip.c b/archival/libarchive/decompress_gunzip.c
index c7fa5b5..c8245d7 100644
--- a/archival/libarchive/decompress_gunzip.c
+++ b/archival/libarchive/decompress_gunzip.c
@@ -32,7 +32,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include <setjmp.h>
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/filter_accept_all.c b/archival/libarchive/filter_accept_all.c
index c33f7d3..5a0ee9c 100644
--- a/archival/libarchive/filter_accept_all.c
+++ b/archival/libarchive/filter_accept_all.c
@@ -4,7 +4,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/filter_accept_list.c b/archival/libarchive/filter_accept_list.c
index a2d4b23..32f8065 100644
--- a/archival/libarchive/filter_accept_list.c
+++ b/archival/libarchive/filter_accept_list.c
@@ -4,7 +4,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/filter_accept_list_reassign.c b/archival/libarchive/filter_accept_list_reassign.c
index b9acfbc..826c5c2 100644
--- a/archival/libarchive/filter_accept_list_reassign.c
+++ b/archival/libarchive/filter_accept_list_reassign.c
@@ -1,10 +1,9 @@
/* vi: set sw=4 ts=4: */
/*
- * Copyright (C) 2002 by Glenn McGrath
+ * Copyright (C) 2002 by Glenn McGrath
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/filter_accept_reject_list.c b/archival/libarchive/filter_accept_reject_list.c
index 2483749..939e626 100644
--- a/archival/libarchive/filter_accept_reject_list.c
+++ b/archival/libarchive/filter_accept_reject_list.c
@@ -4,7 +4,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/find_list_entry.c b/archival/libarchive/find_list_entry.c
index 56032c6..37726bd 100644
--- a/archival/libarchive/find_list_entry.c
+++ b/archival/libarchive/find_list_entry.c
@@ -4,7 +4,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include <fnmatch.h>
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/get_header_ar.c b/archival/libarchive/get_header_ar.c
index c66bb3e..79725e5 100644
--- a/archival/libarchive/get_header_ar.c
+++ b/archival/libarchive/get_header_ar.c
@@ -3,7 +3,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
#include "ar.h"
diff --git a/archival/libarchive/get_header_cpio.c b/archival/libarchive/get_header_cpio.c
index badd4a8..ba07622 100644
--- a/archival/libarchive/get_header_cpio.c
+++ b/archival/libarchive/get_header_cpio.c
@@ -3,7 +3,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c
index c7e3bc1..443a478 100644
--- a/archival/libarchive/get_header_tar.c
+++ b/archival/libarchive/get_header_tar.c
@@ -10,7 +10,6 @@
* Opengroup's ustar interchange format,
* http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/get_header_tar_bz2.c b/archival/libarchive/get_header_tar_bz2.c
index 78f78a8..c021720 100644
--- a/archival/libarchive/get_header_tar_bz2.c
+++ b/archival/libarchive/get_header_tar_bz2.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/get_header_tar_gz.c b/archival/libarchive/get_header_tar_gz.c
index b11f503..793b161 100644
--- a/archival/libarchive/get_header_tar_gz.c
+++ b/archival/libarchive/get_header_tar_gz.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/get_header_tar_lzma.c b/archival/libarchive/get_header_tar_lzma.c
index d228cbc..15d10ad 100644
--- a/archival/libarchive/get_header_tar_lzma.c
+++ b/archival/libarchive/get_header_tar_lzma.c
@@ -5,7 +5,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/get_header_tar_xz.c b/archival/libarchive/get_header_tar_xz.c
index 7bf3b3b..852c989 100644
--- a/archival/libarchive/get_header_tar_xz.c
+++ b/archival/libarchive/get_header_tar_xz.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/header_verbose_list.c b/archival/libarchive/header_verbose_list.c
index 87dd821..be5140f 100644
--- a/archival/libarchive/header_verbose_list.c
+++ b/archival/libarchive/header_verbose_list.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/init_handle.c b/archival/libarchive/init_handle.c
index dcba666..4c64dac 100644
--- a/archival/libarchive/init_handle.c
+++ b/archival/libarchive/init_handle.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/open_transformer.c b/archival/libarchive/open_transformer.c
index e81a810..9fefd4a 100644
--- a/archival/libarchive/open_transformer.c
+++ b/archival/libarchive/open_transformer.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/seek_by_jump.c b/archival/libarchive/seek_by_jump.c
index 4fcd99a..232d97e 100644
--- a/archival/libarchive/seek_by_jump.c
+++ b/archival/libarchive/seek_by_jump.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/seek_by_read.c b/archival/libarchive/seek_by_read.c
index c0fde96..df23463 100644
--- a/archival/libarchive/seek_by_read.c
+++ b/archival/libarchive/seek_by_read.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/archival/libarchive/unpack_ar_archive.c b/archival/libarchive/unpack_ar_archive.c
index 0bc0303..4f9f898 100644
--- a/archival/libarchive/unpack_ar_archive.c
+++ b/archival/libarchive/unpack_ar_archive.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
#include "ar.h"
diff --git a/archival/libarchive/unsafe_prefix.c b/archival/libarchive/unsafe_prefix.c
index 9994f4d..33e487b 100644
--- a/archival/libarchive/unsafe_prefix.c
+++ b/archival/libarchive/unsafe_prefix.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "bb_archive.h"
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c
index bad2b76..7f0f9c7 100644
--- a/console-tools/setconsole.c
+++ b/console-tools/setconsole.c
@@ -1,9 +1,9 @@
/* vi: set sw=4 ts=4: */
/*
- * setconsole.c - redirect system console output
+ * setconsole.c - redirect system console output
*
- * Copyright (C) 2004,2005 Enrik Berkhan <Enrik.Berkhan@inka.de>
- * Copyright (C) 2008 Bernhard Reutner-Fischer
+ * Copyright (C) 2004,2005 Enrik Berkhan <Enrik.Berkhan@inka.de>
+ * Copyright (C) 2008 Bernhard Reutner-Fischer
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
diff --git a/coreutils/fold.c b/coreutils/fold.c
index 286db22..578e5a4 100644
--- a/coreutils/fold.c
+++ b/coreutils/fold.c
@@ -1,14 +1,14 @@
/* vi: set sw=4 ts=4: */
/* fold -- wrap each input line to fit in specified width.
-
- Written by David MacKenzie, djm@gnu.ai.mit.edu.
- Copyright (C) 91, 1995-2002 Free Software Foundation, Inc.
-
- Modified for busybox based on coreutils v 5.0
- Copyright (C) 2003 Glenn McGrath
-
- Licensed under GPLv2 or later, see file LICENSE in this source tree.
-*/
+ *
+ * Written by David MacKenzie, djm@gnu.ai.mit.edu.
+ * Copyright (C) 91, 1995-2002 Free Software Foundation, Inc.
+ *
+ * Modified for busybox based on coreutils v 5.0
+ * Copyright (C) 2003 Glenn McGrath
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
+ */
//config:config FOLD
//config: bool "fold (4.6 kb)"
//config: default y
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index 89d6cec..ccdfd68 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -1,7 +1,7 @@
/* vi: set sw=4 ts=4: */
/*
- * Copyright (C) 2003 Glenn L. McGrath
- * Copyright (C) 2003-2004 Erik Andersen
+ * Copyright (C) 2003 Glenn L. McGrath
+ * Copyright (C) 2003-2004 Erik Andersen
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
diff --git a/coreutils/printf.c b/coreutils/printf.c
index 353cfc6..413273b 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -1,41 +1,39 @@
/* vi: set sw=4 ts=4: */
/* printf - format and print data
-
- Copyright 1999 Dave Cinege
- Portions copyright (C) 1990-1996 Free Software Foundation, Inc.
-
- Licensed under GPLv2 or later, see file LICENSE in this source tree.
-*/
-
+ *
+ * Copyright 1999 Dave Cinege
+ * Portions copyright (C) 1990-1996 Free Software Foundation, Inc.
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
+ */
/* Usage: printf format [argument...]
-
- A front end to the printf function that lets it be used from the shell.
-
- Backslash escapes:
-
- \" = double quote
- \\ = backslash
- \a = alert (bell)
- \b = backspace
- \c = produce no further output
- \f = form feed
- \n = new line
- \r = carriage return
- \t = horizontal tab
- \v = vertical tab
- \0ooo = octal number (ooo is 0 to 3 digits)
- \xhhh = hexadecimal number (hhh is 1 to 3 digits)
-
- Additional directive:
-
- %b = print an argument string, interpreting backslash escapes
-
- The 'format' argument is re-used as many times as necessary
- to convert all of the given arguments.
-
- David MacKenzie <djm@gnu.ai.mit.edu>
-*/
-
+ *
+ * A front end to the printf function that lets it be used from the shell.
+ *
+ * Backslash escapes:
+ *
+ * \" = double quote
+ * \\ = backslash
+ * \a = alert (bell)
+ * \b = backspace
+ * \c = produce no further output
+ * \f = form feed
+ * \n = new line
+ * \r = carriage return
+ * \t = horizontal tab
+ * \v = vertical tab
+ * \0ooo = octal number (ooo is 0 to 3 digits)
+ * \xhhh = hexadecimal number (hhh is 1 to 3 digits)
+ *
+ * Additional directive:
+ *
+ * %b = print an argument string, interpreting backslash escapes
+ *
+ * The 'format' argument is re-used as many times as necessary
+ * to convert all of the given arguments.
+ *
+ * David MacKenzie <djm@gnu.ai.mit.edu>
+ */
/* 19990508 Busy Boxed! Dave Cinege */
//config:config PRINTF
diff --git a/coreutils/stty.c b/coreutils/stty.c
index b6e8363..df23f4c 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -1,24 +1,24 @@
/* vi: set sw=4 ts=4: */
/* stty -- change and print terminal line settings
- Copyright (C) 1990-1999 Free Software Foundation, Inc.
-
- Licensed under GPLv2 or later, see file LICENSE in this source tree.
-*/
+ * Copyright (C) 1990-1999 Free Software Foundation, Inc.
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
+ */
/* Usage: stty [-ag] [-F device] [setting...]
-
- Options:
- -a Write all current settings to stdout in human-readable form.
- -g Write all current settings to stdout in stty-readable form.
- -F Open and use the specified device instead of stdin
-
- If no args are given, write to stdout the baud rate and settings that
- have been changed from their defaults. Mode reading and changes
- are done on the specified device, or stdin if none was specified.
-
- David MacKenzie <djm@gnu.ai.mit.edu>
-
- Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001
-*/
+ *
+ * Options:
+ * -a Write all current settings to stdout in human-readable form.
+ * -g Write all current settings to stdout in stty-readable form.
+ * -F Open and use the specified device instead of stdin
+ *
+ * If no args are given, write to stdout the baud rate and settings that
+ * have been changed from their defaults. Mode reading and changes
+ * are done on the specified device, or stdin if none was specified.
+ *
+ * David MacKenzie <djm@gnu.ai.mit.edu>
+ *
+ * Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001
+ */
//config:config STTY
//config: bool "stty (8.6 kb)"
//config: default y
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c
index d6e0774..aa53b14 100644
--- a/coreutils/uuencode.c
+++ b/coreutils/uuencode.c
@@ -1,9 +1,9 @@
/* vi: set sw=4 ts=4: */
/*
- * Copyright (C) 2000 by Glenn McGrath
+ * Copyright (C) 2000 by Glenn McGrath
*
- * based on the function base64_encode from http.c in wget v1.6
- * Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+ * based on the function base64_encode from http.c in wget v1.6
+ * Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
diff --git a/libbb/ask_confirmation.c b/libbb/ask_confirmation.c
index d95729c..6fbed89 100644
--- a/libbb/ask_confirmation.c
+++ b/libbb/ask_confirmation.c
@@ -6,12 +6,11 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+#include "libbb.h"
/* Read a line from stdin. If the first non-whitespace char is 'y' or 'Y',
* return 1. Otherwise return 0.
*/
-#include "libbb.h"
-
int FAST_FUNC bb_ask_confirmation(void)
{
char first = 0;
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c
index c2580b9..aae35ec 100644
--- a/libbb/bb_askpass.c
+++ b/libbb/bb_askpass.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* do nothing signal handler */
diff --git a/libbb/bb_do_delay.c b/libbb/bb_do_delay.c
index 05c879f..6554170 100644
--- a/libbb/bb_do_delay.c
+++ b/libbb/bb_do_delay.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
void FAST_FUNC bb_do_delay(int seconds)
diff --git a/libbb/bb_pwd.c b/libbb/bb_pwd.c
index dca0a15..32ff83a 100644
--- a/libbb/bb_pwd.c
+++ b/libbb/bb_pwd.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* TODO: maybe change API to return malloced data?
diff --git a/libbb/bb_qsort.c b/libbb/bb_qsort.c
index a54e723..5050455 100644
--- a/libbb/bb_qsort.c
+++ b/libbb/bb_qsort.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
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 5dde784..5e1d053 100644
--- a/libbb/bb_strtod.c
+++ b/libbb/bb_strtod.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include <math.h> /* just for HUGE_VAL */
diff --git a/libbb/bb_strtonum.c b/libbb/bb_strtonum.c
index 949f26b..2185017 100644
--- a/libbb/bb_strtonum.c
+++ b/libbb/bb_strtonum.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* On exit: errno = 0 only if there was non-empty, '\0' terminated value
diff --git a/libbb/bbunit.c b/libbb/bbunit.c
index db67b10..5f8d980 100644
--- a/libbb/bbunit.c
+++ b/libbb/bbunit.c
@@ -6,9 +6,9 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//applet:IF_UNIT_TEST(APPLET(unit, BB_DIR_USR_BIN, BB_SUID_DROP))
//kbuild:lib-$(CONFIG_UNIT_TEST) += bbunit.o
-//applet:IF_UNIT_TEST(APPLET(unit, BB_DIR_USR_BIN, BB_SUID_DROP))
//usage:#define unit_trivial_usage
//usage: ""
diff --git a/libbb/change_identity.c b/libbb/change_identity.c
index 431f72c..20d7c5f 100644
--- a/libbb/change_identity.c
+++ b/libbb/change_identity.c
@@ -27,7 +27,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-
#include "libbb.h"
/* Become the user and group(s) specified by PW. */
diff --git a/libbb/chomp.c b/libbb/chomp.c
index cb92bef..3757bff 100644
--- a/libbb/chomp.c
+++ b/libbb/chomp.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
void FAST_FUNC chomp(char *s)
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c
index 2f51237..01a9df0 100644
--- a/libbb/compare_string_array.c
+++ b/libbb/compare_string_array.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/*
diff --git a/libbb/concat_path_file.c b/libbb/concat_path_file.c
index 9ed2959..5b4b7f1 100644
--- a/libbb/concat_path_file.c
+++ b/libbb/concat_path_file.c
@@ -7,6 +7,7 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+#include "libbb.h"
/* Concatenate path and filename to new allocated buffer.
* Add '/' only as needed (no duplicate // are produced).
@@ -14,8 +15,6 @@
* filename should not be NULL.
*/
-#include "libbb.h"
-
char* FAST_FUNC concat_path_file(const char *path, const char *filename)
{
char *lc;
diff --git a/libbb/concat_subpath_file.c b/libbb/concat_subpath_file.c
index c9167d4..bc2ee96 100644
--- a/libbb/concat_subpath_file.c
+++ b/libbb/concat_subpath_file.c
@@ -6,6 +6,7 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+#include "libbb.h"
/*
This function make special for recursive actions with usage
@@ -13,8 +14,6 @@
and skipping "." and ".." directory entries
*/
-#include "libbb.h"
-
char* FAST_FUNC concat_subpath_file(const char *path, const char *f)
{
if (f && DOT_OR_DOTDOT(f))
diff --git a/libbb/copyfd.c b/libbb/copyfd.c
index 921fe3f..dd0517c 100644
--- a/libbb/copyfd.c
+++ b/libbb/copyfd.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#if ENABLE_FEATURE_USE_SENDFILE
# include <sys/sendfile.h>
diff --git a/libbb/correct_password.c b/libbb/correct_password.c
index 51928f6..a6f7d9b 100644
--- a/libbb/correct_password.c
+++ b/libbb/correct_password.c
@@ -27,7 +27,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-
#include "libbb.h"
#define SHADOW_BUFSIZE 256
diff --git a/libbb/crc32.c b/libbb/crc32.c
index 0711ca8..b00b580 100644
--- a/libbb/crc32.c
+++ b/libbb/crc32.c
@@ -15,7 +15,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
uint32_t *global_crc32_table;
diff --git a/libbb/default_error_retval.c b/libbb/default_error_retval.c
index 4f6395f..fc6a536 100644
--- a/libbb/default_error_retval.c
+++ b/libbb/default_error_retval.c
@@ -4,7 +4,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/* Seems silly to copyright a global variable. ;-) Oh well.
*
* At least one applet (cmp) returns a value different from the typical
@@ -12,7 +11,6 @@
* by the applet. I suppose we could use a wrapper function to set it, but
* that too seems silly.
*/
-
#include "libbb.h"
uint8_t xfunc_error_retval = EXIT_FAILURE;
diff --git a/libbb/device_open.c b/libbb/device_open.c
index a8fe2fc..e5639c7 100644
--- a/libbb/device_open.c
+++ b/libbb/device_open.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* try to open up the specified device */
diff --git a/libbb/die_if_bad_username.c b/libbb/die_if_bad_username.c
index cf1297b..46f1033 100644
--- a/libbb/die_if_bad_username.c
+++ b/libbb/die_if_bad_username.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* To avoid problems, the username should consist only of
diff --git a/libbb/dump.c b/libbb/dump.c
index e23b712..db91fcf 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -10,7 +10,6 @@
*
* Original copyright notice is retained at the end of this file.
*/
-
#include "libbb.h"
#include "dump.h"
diff --git a/libbb/executable.c b/libbb/executable.c
index 3a1d4ff..325dd01 100644
--- a/libbb/executable.c
+++ b/libbb/executable.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* check if path points to an executable file;
diff --git a/libbb/fclose_nonstdin.c b/libbb/fclose_nonstdin.c
index 1b14413..7d53310 100644
--- a/libbb/fclose_nonstdin.c
+++ b/libbb/fclose_nonstdin.c
@@ -6,14 +6,12 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+#include "libbb.h"
/* A number of standard utilities can accept multiple command line args
* of '-' for stdin, according to SUSv3. So we encapsulate the check
* here to save a little space.
*/
-
-#include "libbb.h"
-
int FAST_FUNC fclose_if_not_stdin(FILE *f)
{
/* 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 b4bed86..4c689c0 100644
--- a/libbb/fflush_stdout_and_exit.c
+++ b/libbb/fflush_stdout_and_exit.c
@@ -6,13 +6,11 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+#include "libbb.h"
/* Attempt to fflush(stdout), and exit with an error code if stdout is
* in an error state.
*/
-
-#include "libbb.h"
-
void FAST_FUNC fflush_stdout_and_exit(int retval)
{
xfunc_error_retval = retval;
diff --git a/libbb/fgets_str.c b/libbb/fgets_str.c
index 89210a3..1a7f2e9 100644
--- a/libbb/fgets_str.c
+++ b/libbb/fgets_str.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
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 9676b5f..94bbf1d 100644
--- a/libbb/find_mount_point.c
+++ b/libbb/find_mount_point.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include <mntent.h>
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c
index db823d0..abbf293 100644
--- a/libbb/find_pid_by_name.c
+++ b/libbb/find_pid_by_name.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/*
diff --git a/libbb/find_root_device.c b/libbb/find_root_device.c
index 8436cd6..d560f3e 100644
--- a/libbb/find_root_device.c
+++ b/libbb/find_root_device.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Find block device /dev/XXX which contains specified file
diff --git a/libbb/full_write.c b/libbb/full_write.c
index 777fbd9..2b7983f 100644
--- a/libbb/full_write.c
+++ b/libbb/full_write.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/*
diff --git a/libbb/get_console.c b/libbb/get_console.c
index 96b339c..0b53524 100644
--- a/libbb/get_console.c
+++ b/libbb/get_console.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* From <linux/kd.h> */
diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c
index a98dd35..cc61a92 100644
--- a/libbb/get_line_from_file.c
+++ b/libbb/get_line_from_file.c
@@ -8,7 +8,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end)
diff --git a/libbb/getpty.c b/libbb/getpty.c
index 391d729..5d24ca9 100644
--- a/libbb/getpty.c
+++ b/libbb/getpty.c
@@ -5,7 +5,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#define DEBUG 0
diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c
index 2a72474..a53a382 100644
--- a/libbb/hash_md5_sha.c
+++ b/libbb/hash_md5_sha.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#define NEED_SHA512 (ENABLE_SHA512SUM || ENABLE_USE_BB_CRYPT_SHA)
diff --git a/libbb/human_readable.c b/libbb/human_readable.c
index b4e0ef1..09221a1 100644
--- a/libbb/human_readable.c
+++ b/libbb/human_readable.c
@@ -22,7 +22,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
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 161c8ea..c9cf6a9 100644
--- a/libbb/in_ether.c
+++ b/libbb/in_ether.c
@@ -2,7 +2,6 @@
/*
* Utility routines.
*/
-
//kbuild:lib-$(CONFIG_ARP) += in_ether.o
//kbuild:lib-$(CONFIG_IFCONFIG) += in_ether.o
//kbuild:lib-$(CONFIG_IFENSLAVE) += in_ether.o
diff --git a/libbb/inet_common.c b/libbb/inet_common.c
index 04259f4..e9fbde7 100644
--- a/libbb/inet_common.c
+++ b/libbb/inet_common.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "inet_common.h"
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c
index f11c2af..4142813 100644
--- a/libbb/inode_hash.c
+++ b/libbb/inode_hash.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
typedef struct ino_dev_hash_bucket_struct {
diff --git a/libbb/isdirectory.c b/libbb/isdirectory.c
index ba6c52c..462aa00 100644
--- a/libbb/isdirectory.c
+++ b/libbb/isdirectory.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include <sys/stat.h>
#include "libbb.h"
diff --git a/libbb/kernel_version.c b/libbb/kernel_version.c
index 9b6c622..7769a09 100644
--- a/libbb/kernel_version.c
+++ b/libbb/kernel_version.c
@@ -6,12 +6,10 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* After libbb.h, since it needs sys/types.h on some systems */
#include <sys/utsname.h> /* for uname(2) */
-
/* Returns current kernel version encoded as major*65536 + minor*256 + patch,
* so, for example, to check if the kernel is greater than 2.2.11:
*
diff --git a/libbb/last_char_is.c b/libbb/last_char_is.c
index 65e6cdf..66f2e36 100644
--- a/libbb/last_char_is.c
+++ b/libbb/last_char_is.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Find out if the last character of a string matches the one given.
diff --git a/libbb/llist.c b/libbb/llist.c
index 032e9fa..e964a9b 100644
--- a/libbb/llist.c
+++ b/libbb/llist.c
@@ -9,7 +9,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Add data to the start of the linked list. */
diff --git a/libbb/login.c b/libbb/login.c
index 5a7acfc..7f593d8 100644
--- a/libbb/login.c
+++ b/libbb/login.c
@@ -8,7 +8,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* After libbb.h, since it needs sys/types.h on some systems */
#include <sys/utsname.h>
diff --git a/libbb/make_directory.c b/libbb/make_directory.c
index a6b7c28..b9916d1 100644
--- a/libbb/make_directory.c
+++ b/libbb/make_directory.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/* Mar 5, 2003 Manuel Novoa III
*
* This is the main work function for the 'mkdir' applet. As such, it
@@ -21,7 +20,6 @@
* To set specific permissions on 'path', pass the appropriate 'mode'
* val. Otherwise, pass -1 to get default permissions.
*/
-
#include "libbb.h"
/* 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 6046bc6..1e2269c 100644
--- a/libbb/match_fstype.c
+++ b/libbb/match_fstype.c
@@ -9,7 +9,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
int FAST_FUNC fstype_matches(const char *fstype, const char *comma_list)
diff --git a/libbb/messages.c b/libbb/messages.c
index 27fd14e..0a6cf3b 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -4,7 +4,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* allow default system PATH to be extended via CFLAGS */
diff --git a/libbb/mode_string.c b/libbb/mode_string.c
index 934eb6d..280e6d2 100644
--- a/libbb/mode_string.c
+++ b/libbb/mode_string.c
@@ -10,8 +10,6 @@
/* Aug 13, 2003
* Fix a bug reported by junkio@cox.net involving the mode_chars index.
*/
-
-
#include <assert.h>
#include <sys/stat.h>
diff --git a/libbb/mtab.c b/libbb/mtab.c
index 22bff64..131705d 100644
--- a/libbb/mtab.c
+++ b/libbb/mtab.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include <mntent.h>
#include "libbb.h"
diff --git a/libbb/nuke_str.c b/libbb/nuke_str.c
index 56b808b..240e680 100644
--- a/libbb/nuke_str.c
+++ b/libbb/nuke_str.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//kbuild:lib-y += nuke_str.o
#include "libbb.h"
diff --git a/libbb/parse_mode.c b/libbb/parse_mode.c
index bddd39b..dc65860 100644
--- a/libbb/parse_mode.c
+++ b/libbb/parse_mode.c
@@ -6,11 +6,10 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+#include "libbb.h"
/* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */
-#include "libbb.h"
-
/* This function is used from NOFORK applets. It must not allocate anything */
#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 9a9d80c..e5e42f0 100644
--- a/libbb/percent_decode.c
+++ b/libbb/percent_decode.c
@@ -2,7 +2,6 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//kbuild:lib-y += percent_decode.o
#include "libbb.h"
diff --git a/libbb/printable.c b/libbb/printable.c
index 9a42343..224dde4 100644
--- a/libbb/printable.c
+++ b/libbb/printable.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
void FAST_FUNC fputc_printable(int ch, FILE *file)
diff --git a/libbb/process_escape_sequence.c b/libbb/process_escape_sequence.c
index 346ecfa..59d0d3e 100644
--- a/libbb/process_escape_sequence.c
+++ b/libbb/process_escape_sequence.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#define WANT_HEX_ESCAPES 1
diff --git a/libbb/procps.c b/libbb/procps.c
index b52c0f5..9d8a921 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -8,7 +8,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
diff --git a/libbb/ptr_to_globals.c b/libbb/ptr_to_globals.c
index 1074538..8ba9cd1 100644
--- a/libbb/ptr_to_globals.c
+++ b/libbb/ptr_to_globals.c
@@ -4,7 +4,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include <errno.h>
struct globals;
diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c
index fe06a8f..1edf4b6 100644
--- a/libbb/pw_encrypt.c
+++ b/libbb/pw_encrypt.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* static const uint8_t ascii64[] ALIGN1 =
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c
index 8f2b8b9..0831ecc 100644
--- a/libbb/recursive_action.c
+++ b/libbb/recursive_action.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#undef DEBUG_RECURS_ACTION
diff --git a/libbb/remove_file.c b/libbb/remove_file.c
index eaca293..8a13243 100644
--- a/libbb/remove_file.c
+++ b/libbb/remove_file.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Used from NOFORK applets. Must not allocate anything */
diff --git a/libbb/replace.c b/libbb/replace.c
index 8711f95..a661d96 100644
--- a/libbb/replace.c
+++ b/libbb/replace.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//kbuild:lib-y += replace.o
#include "libbb.h"
diff --git a/libbb/run_shell.c b/libbb/run_shell.c
index 3bb58bb..a0420d9 100644
--- a/libbb/run_shell.c
+++ b/libbb/run_shell.c
@@ -27,7 +27,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-
#include "libbb.h"
#if ENABLE_SELINUX
#include <selinux/selinux.h> /* for setexeccon */
diff --git a/libbb/safe_gethostname.c b/libbb/safe_gethostname.c
index cac99ae..b22e30e 100644
--- a/libbb/safe_gethostname.c
+++ b/libbb/safe_gethostname.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/*
* SUSv2 guarantees that "Host names are limited to 255 bytes"
* POSIX.1-2001 guarantees that "Host names (not including the terminating
@@ -23,7 +22,6 @@
* Host software MUST handle host names of up to 63 characters and
* SHOULD handle host names of up to 255 characters.
*/
-
#include "libbb.h"
#include <sys/utsname.h>
diff --git a/libbb/safe_poll.c b/libbb/safe_poll.c
index b492a81..cf93a97 100644
--- a/libbb/safe_poll.c
+++ b/libbb/safe_poll.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Wrapper which restarts poll on EINTR or ENOMEM.
diff --git a/libbb/safe_strncpy.c b/libbb/safe_strncpy.c
index 5eb0db0..9570aac 100644
--- a/libbb/safe_strncpy.c
+++ b/libbb/safe_strncpy.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* 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 aad50f5..12bb438 100644
--- a/libbb/safe_write.c
+++ b/libbb/safe_write.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
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 91b6d94..f8de449 100644
--- a/libbb/setup_environment.c
+++ b/libbb/setup_environment.c
@@ -27,7 +27,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-
#include "libbb.h"
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 5651247..3f58932 100644
--- a/libbb/signals.c
+++ b/libbb/signals.c
@@ -8,7 +8,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* All known arches use small ints for signals */
diff --git a/libbb/skip_whitespace.c b/libbb/skip_whitespace.c
index b6cfbba..4df5d9e 100644
--- a/libbb/skip_whitespace.c
+++ b/libbb/skip_whitespace.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
char* FAST_FUNC skip_whitespace(const char *s)
diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 11ced01..967cf8d 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
struct speed_map {
diff --git a/libbb/strrstr.c b/libbb/strrstr.c
index 93d970a..a173b03 100644
--- a/libbb/strrstr.c
+++ b/libbb/strrstr.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/*
diff --git a/libbb/trim.c b/libbb/trim.c
index e47fec7..e360ba1 100644
--- a/libbb/trim.c
+++ b/libbb/trim.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
char* FAST_FUNC trim(char *s)
diff --git a/libbb/uuencode.c b/libbb/uuencode.c
index f7b2484..f32a3da 100644
--- a/libbb/uuencode.c
+++ b/libbb/uuencode.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Conversion table. for base 64 */
diff --git a/libbb/wfopen.c b/libbb/wfopen.c
index 76dc8b8..20fe18b 100644
--- a/libbb/wfopen.c
+++ b/libbb/wfopen.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
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 d8b1c4a..8724642 100644
--- a/libbb/wfopen_input.c
+++ b/libbb/wfopen_input.c
@@ -6,14 +6,13 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+#include "libbb.h"
/* A number of applets need to open a file for reading, where the filename
* is a command line arg. Since often that arg is '-' (meaning stdin),
* we avoid testing everywhere by consolidating things in this routine.
*/
-#include "libbb.h"
-
FILE* FAST_FUNC fopen_or_warn_stdin(const char *filename)
{
FILE *fp = stdin;
diff --git a/libbb/write.c b/libbb/write.c
index 2d67a72..dd64b00 100644
--- a/libbb/write.c
+++ b/libbb/write.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Open file and write string str to it, close file.
diff --git a/libbb/xatonum.c b/libbb/xatonum.c
index b63b7f5..7639a62 100644
--- a/libbb/xatonum.c
+++ b/libbb/xatonum.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#define type long long
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 3a0dc26..39e56b2 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include <sys/types.h>
#include <sys/socket.h> /* netinet/in.h needs it */
#include <netinet/in.h>
diff --git a/libbb/xfunc_die.c b/libbb/xfunc_die.c
index 73f7998..25b9906 100644
--- a/libbb/xfunc_die.c
+++ b/libbb/xfunc_die.c
@@ -6,12 +6,11 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+#include "libbb.h"
/* Keeping it separate allows to NOT pull in stdio for VERY small applets.
* Try building busybox with only "true" enabled... */
-#include "libbb.h"
-
void (*die_func)(void);
void FAST_FUNC xfunc_die(void)
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 0dfb3e2..9cbfb28 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -8,7 +8,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
/* We need to have separate xfuncs.c and xfuncs_printf.c because
* with current linkers, even with section garbage collection,
* if *.o module references any of XXXprintf functions, you pull in
@@ -21,7 +20,6 @@
*
* TODO: move xmalloc() and xatonum() here.
*/
-
#include "libbb.h"
/* Turn on nonblocking I/O on a fd */
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c
index f569b02..2bc01ad 100644
--- a/libbb/xfuncs_printf.c
+++ b/libbb/xfuncs_printf.c
@@ -8,7 +8,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
/* We need to have separate xfuncs.c and xfuncs_printf.c because
* with current linkers, even with section garbage collection,
* if *.o module references any of XXXprintf functions, you pull in
@@ -19,7 +18,6 @@
* which do not pull in printf, directly or indirectly.
* xfunc_printf.c contains those which do.
*/
-
#include "libbb.h"
diff --git a/libbb/xgetcwd.c b/libbb/xgetcwd.c
index 71720d3..7f9088b 100644
--- a/libbb/xgetcwd.c
+++ b/libbb/xgetcwd.c
@@ -8,7 +8,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Return the current directory, newly allocated, arbitrarily long.
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c
index 7d4cb60..9b62bcc 100644
--- a/libbb/xreadlink.c
+++ b/libbb/xreadlink.c
@@ -5,7 +5,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Some systems (eg Hurd) do not have MAXSYMLINKS definition,
diff --git a/libbb/xrealloc_vector.c b/libbb/xrealloc_vector.c
index e8d31b7..dda5f3f 100644
--- a/libbb/xrealloc_vector.c
+++ b/libbb/xrealloc_vector.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
/* Resize (grow) malloced vector.
diff --git a/libbb/xregcomp.c b/libbb/xregcomp.c
index 344028f..5870012 100644
--- a/libbb/xregcomp.c
+++ b/libbb/xregcomp.c
@@ -7,7 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "xregex.h"
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c
index c9bbc8b..7e3568f 100644
--- a/libpwdgrp/pwd_grp.c
+++ b/libpwdgrp/pwd_grp.c
@@ -28,7 +28,6 @@
* implemented, if you need a particular missing function it should be
* easy to write it by using the internal common code.
*/
-
#include "libbb.h"
struct const_passdb {
diff --git a/miscutils/devmem.c b/miscutils/devmem.c
index 6240547..51ac3f2 100644
--- a/miscutils/devmem.c
+++ b/miscutils/devmem.c
@@ -1,7 +1,7 @@
/*
+ * Copyright (C) 2000, Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl)
+ * Copyright (C) 2008, BusyBox Team. -solar 4/26/08
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
- * Copyright (C) 2000, Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl)
- * Copyright (C) 2008, BusyBox Team. -solar 4/26/08
*/
//config:config DEVMEM
//config: bool "devmem (2.5 kb)"
diff --git a/miscutils/time.c b/miscutils/time.c
index 65dbcdc..f4f8149 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -1,13 +1,14 @@
/* vi: set sw=4 ts=4: */
-/* 'time' utility to display resource usage of processes.
- Copyright (C) 1990, 91, 92, 93, 96 Free Software Foundation, Inc.
-
- Licensed under GPLv2, see file LICENSE in this source tree.
-*/
+/*
+ * 'time' utility to display resource usage of processes.
+ * Copyright (C) 1990, 91, 92, 93, 96 Free Software Foundation, Inc.
+ *
+ * Licensed under GPLv2, see file LICENSE in this source tree.
+ */
/* Originally written by David Keppel <pardo@cs.washington.edu>.
- Heavily modified by David MacKenzie <djm@gnu.ai.mit.edu>.
- Heavily modified for busybox by Erik Andersen <andersen@codepoet.org>
-*/
+ * Heavily modified by David MacKenzie <djm@gnu.ai.mit.edu>.
+ * Heavily modified for busybox by Erik Andersen <andersen@codepoet.org>
+ */
//config:config TIME
//config: bool "time (7 kb)"
//config: default y
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 5521e8a..534c9f0 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1,18 +1,18 @@
/* vi: set sw=4 ts=4: */
/*
- * ifup/ifdown for busybox
- * Copyright (c) 2002 Glenn McGrath
- * Copyright (c) 2003-2004 Erik Andersen <andersen@codepoet.org>
+ * ifup/ifdown for busybox
+ * Copyright (c) 2002 Glenn McGrath
+ * Copyright (c) 2003-2004 Erik Andersen <andersen@codepoet.org>
*
- * Based on ifupdown v 0.6.4 by Anthony Towns
- * Copyright (c) 1999 Anthony Towns <aj@azure.humbug.org.au>
+ * Based on ifupdown v 0.6.4 by Anthony Towns
+ * Copyright (c) 1999 Anthony Towns <aj@azure.humbug.org.au>
*
- * Changes to upstream version
- * Remove checks for kernel version, assume kernel version 2.2.0 or better.
- * Lines in the interfaces file cannot wrap.
- * To adhere to the FHS, the default state file is /var/run/ifstate
- * (defined via CONFIG_IFUPDOWN_IFSTATE_PATH) and can be overridden by build
- * configuration.
+ * Changes to upstream version
+ * Remove checks for kernel version, assume kernel version 2.2.0 or better.
+ * Lines in the interfaces file cannot wrap.
+ * To adhere to the FHS, the default state file is /var/run/ifstate
+ * (defined via CONFIG_IFUPDOWN_IFSTATE_PATH) and can be overridden by build
+ * configuration.
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
diff --git a/networking/interface.c b/networking/interface.c
index 1191858..89427f2 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -30,7 +30,6 @@
* 20001008 - Bernd Eckenfels, Patch from RH for setting mtu
* (default AF was wrong)
*/
-
#include "libbb.h"
#include "inet_common.h"
#include <net/if.h>
diff --git a/networking/libiproute/ipneigh.c b/networking/libiproute/ipneigh.c
index 2a1c20e..1cd90d7 100644
--- a/networking/libiproute/ipneigh.c
+++ b/networking/libiproute/ipneigh.c
@@ -6,7 +6,6 @@
*
* Ported to Busybox by: Curt Brune <curt@cumulusnetworks.com>
*/
-
#include "ip_common.h" /* #include "libbb.h" is inside */
#include "common_bufsiz.h"
#include "rt_names.h"
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c
index 7e0ff1b..3f0f703 100644
--- a/networking/libiproute/libnetlink.c
+++ b/networking/libiproute/libnetlink.c
@@ -7,7 +7,6 @@
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
-
#include <sys/socket.h>
#include <sys/uio.h>
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c
index af9eb46..be88a04 100644
--- a/networking/libiproute/ll_map.c
+++ b/networking/libiproute/ll_map.c
@@ -7,7 +7,6 @@
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
-
#include <net/if.h> /* struct ifreq and co. */
#include "libbb.h"
diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c
index 4c32ae5..7d46221 100644
--- a/networking/libiproute/ll_proto.c
+++ b/networking/libiproute/ll_proto.c
@@ -7,7 +7,6 @@
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
-
#include "libbb.h"
#include "rt_names.h"
#include "utils.h"
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 0013f4a..55f21c1 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1,7 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
* udhcp client
- *
* Russ Dill <Russ.Dill@asu.edu> July 2001
*
* 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 ea84c0d..4d56440 100644
--- a/networking/udhcp/dhcprelay.c
+++ b/networking/udhcp/dhcprelay.c
@@ -1,5 +1,6 @@
/* vi: set sw=4 ts=4: */
-/* Port to Busybox Copyright (C) 2006 Jesse Dutton <jessedutton@gmail.com>
+/*
+ * Port to Busybox Copyright (C) 2006 Jesse Dutton <jessedutton@gmail.com>
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*
diff --git a/networking/udhcp/domain_codec.c b/networking/udhcp/domain_codec.c
index 5a923cc..b7a3a53 100644
--- a/networking/udhcp/domain_codec.c
+++ b/networking/udhcp/domain_codec.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
-
-/* RFC1035 domain compression routines (C) 2007 Gabriel Somlo <somlo at cmu.edu>
+/*
+ * RFC1035 domain compression routines (C) 2007 Gabriel Somlo <somlo at cmu.edu>
*
* Loosely based on the isc-dhcpd implementation by dhankins@isc.org
*
diff --git a/sysklogd/syslogd_and_logger.c b/sysklogd/syslogd_and_logger.c
index 6d06a71..9bba195 100644
--- a/sysklogd/syslogd_and_logger.c
+++ b/sysklogd/syslogd_and_logger.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
#include "common_bufsiz.h"
#define SYSLOG_NAMES
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index a151b7e..4431a7e 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -1,11 +1,10 @@
/* vi: set sw=4 ts=4: */
/*
* getopt.c - Enhanced implementation of BSD getopt(1)
- * Copyright (c) 1997, 1998, 1999, 2000 Frodo Looijaard <frodol@dds.nl>
+ * Copyright (c) 1997, 1998, 1999, 2000 Frodo Looijaard <frodol@dds.nl>
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/*
* Version 1.0-b4: Tue Sep 23 1997. First public release.
* Version 1.0: Wed Nov 19 1997.
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c
index 394ece1..8fc33be 100644
--- a/util-linux/readprofile.c
+++ b/util-linux/readprofile.c
@@ -1,8 +1,8 @@
/* vi: set sw=4 ts=4: */
/*
- * readprofile.c - used to read /proc/profile
+ * readprofile.c - used to read /proc/profile
*
- * Copyright (C) 1994,1996 Alessandro Rubini (rubini@ipvvis.unipv.it)
+ * Copyright (C) 1994,1996 Alessandro Rubini (rubini@ipvvis.unipv.it)
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/