aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
Remove trailing whitespace. Update copyright to include 2004.
-rw-r--r--AUTHORS10
-rw-r--r--Changelog414
-rw-r--r--INSTALL6
-rw-r--r--Makefile4
-rw-r--r--README18
-rw-r--r--Rules.mak8
-rw-r--r--TODO2
-rw-r--r--applets/Makefile2
-rw-r--r--applets/Makefile.in2
-rw-r--r--applets/applets.c2
-rw-r--r--applets/busybox.c20
-rw-r--r--archival/Config.in22
-rw-r--r--archival/Makefile2
-rw-r--r--archival/Makefile.in2
-rw-r--r--archival/ar.c4
-rw-r--r--archival/cpio.c4
-rw-r--r--archival/dpkg.c84
-rw-r--r--archival/dpkg_deb.c4
-rw-r--r--archival/gunzip.c6
-rw-r--r--archival/gzip.c6
-rw-r--r--archival/libunarchive/Makefile2
-rw-r--r--archival/libunarchive/Makefile.in6
-rw-r--r--archival/libunarchive/data_extract_all.c4
-rw-r--r--archival/libunarchive/decompress_bunzip2.c2
-rw-r--r--archival/libunarchive/decompress_uncompress.c2
-rw-r--r--archival/libunarchive/decompress_unzip.c32
-rw-r--r--archival/libunarchive/filter_accept_list_reassign.c2
-rw-r--r--archival/libunarchive/get_header_ar.c2
-rw-r--r--archival/libunarchive/get_header_cpio.c6
-rw-r--r--archival/libunarchive/get_header_tar.c4
-rw-r--r--archival/libunarchive/uncompress.c2
-rw-r--r--archival/libunarchive/unzip.c32
-rw-r--r--archival/rpm.c4
-rw-r--r--archival/rpm2cpio.c2
-rw-r--r--archival/tar.c22
-rw-r--r--console-tools/Makefile2
-rw-r--r--console-tools/Makefile.in2
-rw-r--r--console-tools/chvt.c2
-rw-r--r--console-tools/clear.c2
-rw-r--r--console-tools/deallocvt.c4
-rw-r--r--console-tools/dumpkmap.c14
-rw-r--r--console-tools/loadkmap.c2
-rw-r--r--console-tools/openvt.c2
-rw-r--r--console-tools/reset.c2
-rw-r--r--console-tools/setkeycodes.c4
-rw-r--r--coreutils/Config.in6
-rw-r--r--coreutils/Makefile2
-rw-r--r--coreutils/Makefile.in2
-rw-r--r--coreutils/basename.c2
-rw-r--r--coreutils/cal.c6
-rw-r--r--coreutils/chgrp.c4
-rw-r--r--coreutils/chmod.c2
-rw-r--r--coreutils/chown.c6
-rw-r--r--coreutils/chroot.c2
-rw-r--r--coreutils/cut.c10
-rw-r--r--coreutils/date.c4
-rw-r--r--coreutils/df.c14
-rw-r--r--coreutils/dirname.c2
-rw-r--r--coreutils/dos2unix.c6
-rw-r--r--coreutils/du.c2
-rw-r--r--coreutils/echo.c8
-rw-r--r--coreutils/expr.c2
-rw-r--r--coreutils/false.c2
-rw-r--r--coreutils/id.c2
-rw-r--r--coreutils/install.c10
-rw-r--r--coreutils/libcoreutils/Makefile2
-rw-r--r--coreutils/libcoreutils/Makefile.in2
-rw-r--r--coreutils/ln.c6
-rw-r--r--coreutils/ls.c4
-rw-r--r--coreutils/md5_sha1_sum.c4
-rw-r--r--coreutils/mknod.c2
-rw-r--r--coreutils/mv.c8
-rw-r--r--coreutils/printf.c4
-rw-r--r--coreutils/rmdir.c2
-rw-r--r--coreutils/tail.c2
-rw-r--r--coreutils/tee.c2
-rw-r--r--coreutils/test.c4
-rw-r--r--coreutils/touch.c2
-rw-r--r--coreutils/tr.c14
-rw-r--r--coreutils/true.c2
-rw-r--r--coreutils/uudecode.c4
-rw-r--r--coreutils/wc.c36
-rw-r--r--coreutils/who.c34
-rw-r--r--debian/changelog20
-rw-r--r--debian/control4
-rw-r--r--debianutils/Config.in2
-rw-r--r--debianutils/Makefile2
-rw-r--r--debianutils/Makefile.in2
-rw-r--r--debianutils/mktemp.c2
-rw-r--r--debianutils/run_parts.c18
-rw-r--r--debianutils/which.c4
-rw-r--r--docs/busybox.net/about.html6
-rw-r--r--docs/busybox.net/busybox-growth.ps4
-rw-r--r--docs/busybox.net/copyright.txt2
-rw-r--r--docs/busybox.net/cvs_anon.html6
-rw-r--r--docs/busybox.net/cvs_howto.html10
-rw-r--r--docs/busybox.net/cvs_write.html10
-rw-r--r--docs/busybox.net/docs.html2
-rw-r--r--docs/busybox.net/download.html2
-rw-r--r--docs/busybox.net/footer.html2
-rw-r--r--docs/busybox.net/header.html6
-rw-r--r--docs/busybox.net/images/busybox.pngbin34015 -> 34014 bytes
-rw-r--r--docs/busybox.net/images/ltbutton2.pngbin6799 -> 6798 bytes
-rw-r--r--docs/busybox.net/license.html14
-rw-r--r--docs/busybox.net/lists.html8
-rw-r--r--docs/busybox.net/news.html6
-rw-r--r--docs/busybox.net/oldnews.html190
-rw-r--r--docs/busybox.net/screenshot.html2
-rw-r--r--docs/busybox.sgml78
-rw-r--r--docs/busybox_header.pod8
-rw-r--r--docs/contributing.txt6
-rw-r--r--docs/new-applet-HOWTO.txt12
-rw-r--r--docs/style-guide.txt12
-rw-r--r--editors/Config.in2
-rw-r--r--editors/Makefile2
-rw-r--r--editors/Makefile.in2
-rw-r--r--editors/awk.c14
-rw-r--r--editors/patch.c6
-rw-r--r--editors/sed.c6
-rw-r--r--editors/vi.c76
-rw-r--r--examples/bootfloppy/bootfloppy.txt12
-rw-r--r--examples/bootfloppy/etc/profile2
-rwxr-xr-xexamples/bootfloppy/mkrootfs.sh4
-rw-r--r--examples/bootfloppy/syslinux.cfg2
-rw-r--r--examples/busybox.spec2
-rwxr-xr-xexamples/depmod.pl18
-rw-r--r--examples/inittab4
-rw-r--r--examples/udhcp/udhcpd.conf2
-rw-r--r--examples/undeb10
-rw-r--r--examples/unrpm4
-rw-r--r--findutils/Config.in2
-rw-r--r--findutils/Makefile2
-rw-r--r--findutils/Makefile.in2
-rw-r--r--findutils/find.c8
-rw-r--r--findutils/grep.c8
-rw-r--r--findutils/xargs.c16
-rw-r--r--include/busybox.h4
-rw-r--r--include/libbb.h6
-rw-r--r--include/unarchive.h2
-rw-r--r--init/Makefile2
-rw-r--r--init/Makefile.in2
-rw-r--r--init/halt.c2
-rw-r--r--init/init.c32
-rw-r--r--init/init_shared.c2
-rw-r--r--init/poweroff.c2
-rw-r--r--init/reboot.c2
-rw-r--r--libbb/Makefile2
-rw-r--r--libbb/README4
-rw-r--r--libbb/bb_asprintf.c2
-rw-r--r--libbb/chomp.c4
-rw-r--r--libbb/concat_path_file.c2
-rw-r--r--libbb/copyfd.c2
-rw-r--r--libbb/correct_password.c6
-rw-r--r--libbb/device_open.c2
-rw-r--r--libbb/dump.c4
-rw-r--r--libbb/error_msg.c2
-rw-r--r--libbb/error_msg_and_die.c2
-rw-r--r--libbb/fgets_str.c2
-rw-r--r--libbb/find_mount_point.c2
-rw-r--r--libbb/find_pid_by_name.c8
-rw-r--r--libbb/find_root_device.c10
-rw-r--r--libbb/full_read.c2
-rw-r--r--libbb/full_write.c2
-rw-r--r--libbb/get_console.c2
-rw-r--r--libbb/get_line_from_file.c2
-rw-r--r--libbb/get_terminal_width_height.c4
-rw-r--r--libbb/hash_fd.c16
-rw-r--r--libbb/herror_msg.c2
-rw-r--r--libbb/herror_msg_and_die.c2
-rw-r--r--libbb/human_readable.c8
-rw-r--r--libbb/inode_hash.c4
-rw-r--r--libbb/interface.c24
-rw-r--r--libbb/isdirectory.c2
-rw-r--r--libbb/kernel_version.c2
-rw-r--r--libbb/loop.c2
-rw-r--r--libbb/messages.c2
-rw-r--r--libbb/module_syscalls.c2
-rw-r--r--libbb/mtab.c2
-rw-r--r--libbb/mtab_file.c6
-rw-r--r--libbb/my_getgrgid.c2
-rw-r--r--libbb/my_getgrnam.c2
-rw-r--r--libbb/my_getpwnam.c2
-rw-r--r--libbb/my_getpwnamegid.c2
-rw-r--r--libbb/my_getpwuid.c2
-rw-r--r--libbb/parse_mode.c2
-rw-r--r--libbb/parse_number.c2
-rw-r--r--libbb/perror_msg.c2
-rw-r--r--libbb/perror_msg_and_die.c2
-rw-r--r--libbb/print_file.c2
-rw-r--r--libbb/printf.c2
-rw-r--r--libbb/process_escape_sequence.c4
-rw-r--r--libbb/pw_encrypt.c2
-rw-r--r--libbb/read_package_field.c2
-rw-r--r--libbb/recursive_action.c8
-rw-r--r--libbb/run_parts.c4
-rw-r--r--libbb/run_shell.c8
-rw-r--r--libbb/safe_read.c2
-rw-r--r--libbb/safe_strncpy.c8
-rw-r--r--libbb/safe_write.c2
-rw-r--r--libbb/setup_environment.c4
-rw-r--r--libbb/syscalls.c2
-rw-r--r--libbb/syslog_msg_with_name.c2
-rw-r--r--libbb/trim.c2
-rw-r--r--libbb/u_signal_names.c2
-rw-r--r--libbb/vdprintf.c2
-rw-r--r--libbb/verror_msg.c2
-rw-r--r--libbb/vfork_daemon_rexec.c6
-rw-r--r--libbb/vherror_msg.c2
-rw-r--r--libbb/vperror_msg.c2
-rw-r--r--libbb/wfopen.c2
-rw-r--r--libbb/xconnect.c2
-rw-r--r--libbb/xfuncs.c10
-rw-r--r--libbb/xgetlarg.c2
-rw-r--r--libbb/xgetularg.c16
-rw-r--r--libbb/xreadlink.c8
-rw-r--r--libbb/xregcomp.c2
-rw-r--r--libpwdgrp/Makefile2
-rw-r--r--libpwdgrp/Makefile.in2
-rw-r--r--libpwdgrp/__getgrent.c4
-rw-r--r--libpwdgrp/__getpwent.c2
-rw-r--r--libpwdgrp/fgetgrent.c4
-rw-r--r--libpwdgrp/fgetpwent.c4
-rw-r--r--libpwdgrp/getgrgid.c4
-rw-r--r--libpwdgrp/getgrnam.c2
-rw-r--r--libpwdgrp/getpw.c4
-rw-r--r--libpwdgrp/getpwnam.c4
-rw-r--r--libpwdgrp/getpwuid.c2
-rw-r--r--libpwdgrp/grent.c4
-rw-r--r--libpwdgrp/initgroups.c4
-rw-r--r--libpwdgrp/putpwent.c4
-rw-r--r--libpwdgrp/pwent.c2
-rw-r--r--libpwdgrp/setgroups.c4
-rw-r--r--libpwdgrp/shadow.c10
-rw-r--r--loginutils/Makefile2
-rw-r--r--loginutils/Makefile.in2
-rw-r--r--loginutils/addgroup.c4
-rw-r--r--loginutils/adduser.c4
-rw-r--r--loginutils/getty.c14
-rw-r--r--loginutils/login.c48
-rw-r--r--loginutils/su.c12
-rw-r--r--miscutils/Config.in12
-rw-r--r--miscutils/Makefile2
-rw-r--r--miscutils/Makefile.in2
-rw-r--r--miscutils/adjtimex.c4
-rw-r--r--miscutils/dc.c6
-rw-r--r--miscutils/hdparm.c6
-rw-r--r--miscutils/last.c6
-rw-r--r--miscutils/makedevs.c4
-rw-r--r--miscutils/mt.c2
-rw-r--r--miscutils/rx.c14
-rw-r--r--miscutils/strings.c2
-rw-r--r--miscutils/time.c2
-rw-r--r--miscutils/watchdog.c2
-rw-r--r--modutils/Config.in10
-rw-r--r--modutils/Makefile2
-rw-r--r--modutils/Makefile.in2
-rw-r--r--modutils/insmod.c67
-rw-r--r--modutils/lsmod.c2
-rw-r--r--modutils/rmmod.c6
-rw-r--r--networking/Config.in10
-rw-r--r--networking/Makefile2
-rw-r--r--networking/Makefile.in2
-rw-r--r--networking/ftpgetput.c14
-rw-r--r--networking/httpd.c28
-rw-r--r--networking/ifconfig.c6
-rw-r--r--networking/ifupdown.c28
-rw-r--r--networking/libiproute/Makefile2
-rw-r--r--networking/libiproute/Makefile.in2
-rw-r--r--networking/libiproute/ip_parse_common_args.c2
-rw-r--r--networking/libiproute/ipaddress.c8
-rw-r--r--networking/libiproute/iplink.c30
-rw-r--r--networking/libiproute/iproute.c8
-rw-r--r--networking/libiproute/iptunnel.c6
-rw-r--r--networking/libiproute/libnetlink.c4
-rw-r--r--networking/libiproute/linux/pkt_sched.h20
-rw-r--r--networking/libiproute/ll_proto.c72
-rw-r--r--networking/libiproute/utils.h2
-rw-r--r--networking/nc.c6
-rw-r--r--networking/netstat.c16
-rw-r--r--networking/nslookup.c4
-rw-r--r--networking/ping.c10
-rw-r--r--networking/ping6.c14
-rw-r--r--networking/route.c8
-rw-r--r--networking/telnet.c54
-rw-r--r--networking/telnetd.c6
-rw-r--r--networking/tftp.c36
-rw-r--r--networking/traceroute.c2
-rw-r--r--networking/udhcp/AUTHORS1
-rw-r--r--networking/udhcp/ChangeLog2
-rw-r--r--networking/udhcp/Makefile2
-rw-r--r--networking/udhcp/Makefile.in2
-rw-r--r--networking/udhcp/README16
-rw-r--r--networking/udhcp/README.udhcpc10
-rw-r--r--networking/udhcp/README.udhcpd8
-rw-r--r--networking/udhcp/arpping.c16
-rw-r--r--networking/udhcp/arpping.h2
-rw-r--r--networking/udhcp/clientpacket.c32
-rw-r--r--networking/udhcp/common.c2
-rw-r--r--networking/udhcp/common.h2
-rw-r--r--networking/udhcp/dhcpc.c48
-rw-r--r--networking/udhcp/dhcpd.c34
-rw-r--r--networking/udhcp/dhcpd.h4
-rw-r--r--networking/udhcp/dumpleases.c10
-rw-r--r--networking/udhcp/files.c44
-rw-r--r--networking/udhcp/frontend.c4
-rw-r--r--networking/udhcp/leases.c30
-rw-r--r--networking/udhcp/options.c30
-rw-r--r--networking/udhcp/packet.c18
-rw-r--r--networking/udhcp/packet.h2
-rw-r--r--networking/udhcp/script.c10
-rw-r--r--networking/udhcp/serverpacket.c48
-rw-r--r--networking/udhcp/socket.c8
-rw-r--r--networking/vconfig.c4
-rw-r--r--networking/wget.c50
-rw-r--r--patches/eject.diff10
-rw-r--r--patches/tftp_timeout_multicast.diff192
-rw-r--r--patches/udhcp_additional_items.diff16
-rw-r--r--patches/udhcp_config_paths.diff108
-rw-r--r--patches/udhcpd_foreground.diff8
-rw-r--r--procps/Makefile2
-rw-r--r--procps/Makefile.in2
-rw-r--r--procps/free.c8
-rw-r--r--procps/kill.c2
-rw-r--r--procps/pidof.c2
-rw-r--r--procps/ps.c2
-rw-r--r--procps/renice.c8
-rw-r--r--procps/sysctl.c10
-rw-r--r--procps/top.c20
-rw-r--r--procps/uptime.c12
-rw-r--r--scripts/config/Kconfig-language.txt2
-rw-r--r--scripts/config/Makefile4
-rw-r--r--scripts/config/checklist.c10
-rw-r--r--scripts/config/dialog.h4
-rw-r--r--scripts/config/lex.zconf.c_shipped84
-rw-r--r--scripts/config/mconf.c12
-rw-r--r--scripts/config/menu.c2
-rw-r--r--scripts/config/menubox.c6
-rw-r--r--scripts/config/util.c6
-rw-r--r--scripts/config/zconf.tab.c_shipped32
-rw-r--r--scripts/mkdep.c2
-rw-r--r--scripts/split-include.c2
-rw-r--r--shell/Config.in2
-rw-r--r--shell/Makefile2
-rw-r--r--shell/Makefile.in2
-rw-r--r--shell/ash.c2
-rw-r--r--shell/hush.c112
-rw-r--r--shell/lash.c6
-rw-r--r--shell/msh.c54
-rw-r--r--sysdeps/linux/Config.in20
-rw-r--r--sysklogd/Config.in6
-rw-r--r--sysklogd/Makefile2
-rw-r--r--sysklogd/Makefile.in2
-rw-r--r--sysklogd/klogd.c4
-rw-r--r--sysklogd/logger.c14
-rw-r--r--sysklogd/logread.c28
-rw-r--r--sysklogd/syslogd.c2
-rwxr-xr-xtests/multibuild.pl2
-rwxr-xr-xtests/tester.sh6
-rw-r--r--util-linux/Config.in10
-rw-r--r--util-linux/Makefile2
-rw-r--r--util-linux/Makefile.in2
-rw-r--r--util-linux/dmesg.c4
-rw-r--r--util-linux/fbset.c18
-rw-r--r--util-linux/fdisk.c4
-rw-r--r--util-linux/freeramdisk.c2
-rw-r--r--util-linux/fsck_minix.c10
-rw-r--r--util-linux/hwclock.c38
-rw-r--r--util-linux/mkfs_minix.c8
-rw-r--r--util-linux/more.c8
-rw-r--r--util-linux/mount.c12
-rw-r--r--util-linux/nfsmount.c12
-rw-r--r--util-linux/pivot_root.c2
-rw-r--r--util-linux/swaponoff.c3
-rw-r--r--util-linux/umount.c6
374 files changed, 2048 insertions, 2051 deletions
diff --git a/AUTHORS b/AUTHORS
index a6f81abcf..c73b47abf 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -23,7 +23,7 @@ Jeff Angielski <jeff@theptrgroup.com>
Edward Betts <edward@debian.org>
expr, hostid, logname, whoami
-
+
John Beppu <beppu@codepoet.org>
du, nslookup, sort
@@ -33,8 +33,8 @@ Brian Candler <B.Candler@pobox.com>
Randolph Chung <tausq@debian.org>
fbset, ping, hostname
-Dave Cinege <dcinege@psychosis.com>
- more(v2), makedevs, dutmp, modularization, auto links file,
+Dave Cinege <dcinege@psychosis.com>
+ more(v2), makedevs, dutmp, modularization, auto links file,
various fixes, Linux Router Project maintenance
Jordan Crouse <jordan@cosmicpenguin.net>
@@ -66,7 +66,7 @@ Matt Kraai <kraai@alumni.cmu.edu>
Stephan Linz <linz@li-pro.net>
ipcalc, Red Hat equivalence
-John Lombardo <john@deltanet.com>
+John Lombardo <john@deltanet.com>
tr
Glenn McGrath <bug1@optushome.com.au>
@@ -89,7 +89,7 @@ Vladimir Oleynik <dzo@simtreas.ru>
and irreconcilable critic of everything not perfect.
Bruce Perens <bruce@pixar.com>
- Original author of BusyBox in 1995, 1996. Some of his code can
+ Original author of BusyBox in 1995, 1996. Some of his code can
still be found hiding here and there...
Tim Riker <Tim@Rikers.org>
diff --git a/Changelog b/Changelog
index ca1dcf301..4d22f5bef 100644
--- a/Changelog
+++ b/Changelog
@@ -1,171 +1,171 @@
---------------------
-PatchSet 3926
+PatchSet 3926
Date: 2004/02/09 10:01:01
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Buffalo appears to have resolved their GPL problems
-Members:
- docs/busybox.net/products.html:1.5->1.6
- docs/busybox.net/shame.html:1.7->1.8
+Members:
+ docs/busybox.net/products.html:1.5->1.6
+ docs/busybox.net/shame.html:1.7->1.8
---------------------
-PatchSet 3927
+PatchSet 3927
Date: 2004/02/09 10:57:04
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Update URL
-Members:
- docs/busybox.net/products.html:1.6->1.7
+Members:
+ docs/busybox.net/products.html:1.6->1.7
---------------------
-PatchSet 3928
+PatchSet 3928
Date: 2004/02/10 01:07:45
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Support disabling pipe and redirect support
-Members:
- shell/lash.c:1.151->1.152
+Members:
+ shell/lash.c:1.151->1.152
---------------------
-PatchSet 3929
+PatchSet 3929
Date: 2004/02/10 01:28:36
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Initial effort at disabling job control as well
-Members:
- shell/lash.c:1.152->1.153
+Members:
+ shell/lash.c:1.152->1.153
---------------------
-PatchSet 3930
+PatchSet 3930
Date: 2004/02/10 01:30:21
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
oops. Leave the default feature set enbled for now...
-Members:
- shell/lash.c:1.153->1.154
+Members:
+ shell/lash.c:1.153->1.154
---------------------
-PatchSet 3931
+PatchSet 3931
Date: 2004/02/13 08:09:43
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Accomodate the fact that newer libc versions may in fact not
contain query_module and friends and more
-Members:
- libbb/module_syscalls.c:1.13->1.14
+Members:
+ libbb/module_syscalls.c:1.13->1.14
---------------------
-PatchSet 3932
+PatchSet 3932
Date: 2004/02/14 21:33:39
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Avoid naming conflict with symbol in newer glibc headers
-Members:
- miscutils/hdparm.c:1.9->1.10
+Members:
+ miscutils/hdparm.c:1.9->1.10
---------------------
-PatchSet 3933
+PatchSet 3933
Date: 2004/02/17 07:51:31
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
define option names to be clearer, simplify nested if statements, remove
un-needed if statement, minor indenting change
-Members:
- coreutils/date.c:1.41->1.42
+Members:
+ coreutils/date.c:1.41->1.42
---------------------
-PatchSet 3934
+PatchSet 3934
Date: 2004/02/17 07:58:04
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Woops, im getting ahead of myself, we dont have the -r (refernece)
option yet
-Members:
- coreutils/date.c:1.42->1.43
+Members:
+ coreutils/date.c:1.42->1.43
---------------------
-PatchSet 3935
+PatchSet 3935
Date: 2004/02/17 10:16:21
Author: mjn3
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Patch from Florian Schirmer <jolt@tuxbox.org>. When I rewrote the parser,
I overlooked the case of someone wanting to use a valid but empty suid
config file.
-Members:
- applets/applets.c:1.21->1.22
+Members:
+ applets/applets.c:1.21->1.22
---------------------
-PatchSet 3936
+PatchSet 3936
Date: 2004/02/17 11:55:06
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Dont strip trailing '/' until _after_ i test to set if its there !
-Members:
- archival/libunarchive/get_header_tar.c:1.30->1.31
+Members:
+ archival/libunarchive/get_header_tar.c:1.30->1.31
---------------------
-PatchSet 3937
+PatchSet 3937
Date: 2004/02/17 12:04:13
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Remove debugging
-Members:
- archival/libunarchive/get_header_tar.c:1.31->1.32
+Members:
+ archival/libunarchive/get_header_tar.c:1.31->1.32
---------------------
-PatchSet 3938
+PatchSet 3938
Date: 2004/02/17 12:22:21
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Add the -r option, patch from Rob with some help from myself.
-Members:
- coreutils/date.c:1.43->1.44
+Members:
+ coreutils/date.c:1.43->1.44
---------------------
-PatchSet 3939
+PatchSet 3939
Date: 2004/02/17 20:04:34
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Mark Lord writes:
@@ -179,99 +179,99 @@ Cheers
Mark Lord
Real-Time Remedies Inc.
-Members:
- networking/inetd.c:1.14->1.15
+Members:
+ networking/inetd.c:1.14->1.15
---------------------
-PatchSet 3940
+PatchSet 3940
Date: 2004/02/17 20:08:11
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Remove the unused CONFIG_FEATURE_HTTPD_SET_CGI_VARS_TO_ENV option.
-Members:
- networking/Config.in:1.25->1.26
+Members:
+ networking/Config.in:1.25->1.26
---------------------
-PatchSet 3941
+PatchSet 3941
Date: 2004/02/18 09:40:41
Author: mjn3
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Fix vstype[] to match VS* defines. Patch from OpenWrt by mbm.
-Members:
- shell/ash.c:1.89->1.90
+Members:
+ shell/ash.c:1.89->1.90
---------------------
-PatchSet 3942
+PatchSet 3942
Date: 2004/02/18 09:54:15
Author: landley
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Add -i option to sed, to edit files in-place.
-Members:
- editors/sed.c:1.159->1.160
+Members:
+ editors/sed.c:1.159->1.160
---------------------
-PatchSet 3943
+PatchSet 3943
Date: 2004/02/18 10:14:17
Author: mjn3
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Patch from OpenWrt.
-Members:
- modutils/insmod.c:1.111->1.112
+Members:
+ modutils/insmod.c:1.111->1.112
---------------------
-PatchSet 3944
+PatchSet 3944
Date: 2004/02/18 12:58:00
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
remove debugging
-Members:
- networking/inetd.c:1.15->1.16
+Members:
+ networking/inetd.c:1.15->1.16
---------------------
-PatchSet 3945
+PatchSet 3945
Date: 2004/02/18 13:12:53
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Formatting
-Members:
- networking/inetd.c:1.16->1.17
+Members:
+ networking/inetd.c:1.16->1.17
---------------------
-PatchSet 3946
+PatchSet 3946
Date: 2004/02/18 13:19:58
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Dont use same variable and struct name
-Members:
- networking/inetd.c:1.17->1.18
+Members:
+ networking/inetd.c:1.17->1.18
---------------------
-PatchSet 3947
+PatchSet 3947
Date: 2004/02/19 00:44:08
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Chris Larson (kergoth) writes:
@@ -286,15 +286,15 @@ Will never return until we run out of open files or similar.
Coreutils cp on the other hand will error with "cannot copy a directory,
`out', into itself, `out'". Patch attached.
-Members:
- libbb/copy_file.c:1.28->1.29
+Members:
+ libbb/copy_file.c:1.28->1.29
---------------------
-PatchSet 3948
+PatchSet 3948
Date: 2004/02/19 01:52:29
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Chris Larson (kergoth) writes:
@@ -307,241 +307,241 @@ cp -a cpa cpa/cpb/cpc
Attached what appears to be a more sane fix. Apply on top of previous.
Please confirm sanity.
-Members:
- libbb/copy_file.c:1.29->1.30
+Members:
+ libbb/copy_file.c:1.29->1.30
---------------------
-PatchSet 3949
+PatchSet 3949
Date: 2004/02/19 08:48:30
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Add extra comments, freakout if a pax archive is encoutered.
-Members:
- archival/libunarchive/get_header_tar.c:1.32->1.33
+Members:
+ archival/libunarchive/get_header_tar.c:1.32->1.33
---------------------
-PatchSet 3950
+PatchSet 3950
Date: 2004/02/20 02:25:18
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
A strict interpretation of the ustar format requires the type flag to be
interpreted, we cannot depend on the file type being set in the mode
field.
-Members:
- archival/libunarchive/get_header_tar.c:1.33->1.34
+Members:
+ archival/libunarchive/get_header_tar.c:1.33->1.34
---------------------
-PatchSet 3951
+PatchSet 3951
Date: 2004/02/20 02:34:42
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Fix up hard links
-Members:
- archival/libunarchive/get_header_tar.c:1.34->1.35
+Members:
+ archival/libunarchive/get_header_tar.c:1.34->1.35
---------------------
-PatchSet 3952
+PatchSet 3952
Date: 2004/02/20 09:55:37
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Document missing cp options
-Members:
- include/usage.h:1.187->1.188
+Members:
+ include/usage.h:1.187->1.188
---------------------
-PatchSet 3953
+PatchSet 3953
Date: 2004/02/21 07:49:54
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Use return instead of exit, use == instead of & ==, left justify labels,
adjustment of whitespace.
-Members:
- coreutils/mv.c:1.19->1.20
+Members:
+ coreutils/mv.c:1.19->1.20
---------------------
-PatchSet 3954
+PatchSet 3954
Date: 2004/02/21 09:20:56
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Sometimes i get carried away with the use of function pointers, im sure
it seemed like a good idea at the time.
-Members:
- archival/libunarchive/seek_by_char.c:1.3->1.4
- include/libbb.h:1.126->1.127
- libbb/copyfd.c:1.9->1.10
+Members:
+ archival/libunarchive/seek_by_char.c:1.3->1.4
+ include/libbb.h:1.126->1.127
+ libbb/copyfd.c:1.9->1.10
---------------------
-PatchSet 3955
+PatchSet 3955
Date: 2004/02/22 00:27:34
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
No need to check proxy env variable twice, ignore proxy env variable if
its set to 0
-Members:
- networking/wget.c:1.68->1.69
+Members:
+ networking/wget.c:1.68->1.69
---------------------
-PatchSet 3956
+PatchSet 3956
Date: 2004/02/22 02:58:57
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Return 1 upon failure
-Members:
- coreutils/md5_sha1_sum.c:1.4->1.5
+Members:
+ coreutils/md5_sha1_sum.c:1.4->1.5
---------------------
-PatchSet 3957
+PatchSet 3957
Date: 2004/02/22 03:33:53
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Ptch by Hideki IWAMOTO, fix a bug preventing tftp from getting or
putting more than 0xffff blocks.
-Members:
- networking/tftp.c:1.21->1.22
+Members:
+ networking/tftp.c:1.21->1.22
---------------------
-PatchSet 3958
+PatchSet 3958
Date: 2004/02/22 04:12:58
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Update usage for ftpget and ftpput
-Members:
- include/usage.h:1.188->1.189
+Members:
+ include/usage.h:1.188->1.189
---------------------
-PatchSet 3959
+PatchSet 3959
Date: 2004/02/22 04:17:26
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Thomas Geulig, remove duplicate header
-Members:
- init/init_shared.c:1.3->1.4
+Members:
+ init/init_shared.c:1.3->1.4
---------------------
-PatchSet 3960
+PatchSet 3960
Date: 2004/02/22 04:44:21
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Fixup braces (patch from Thomas Geulig), run through indent and manually
adjust.
-Members:
- miscutils/crond.c:1.12->1.13
+Members:
+ miscutils/crond.c:1.12->1.13
---------------------
-PatchSet 3961
+PatchSet 3961
Date: 2004/02/22 04:58:36
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
remove duplicate header declarations
-Members:
- networking/inetd.c:1.18->1.19
+Members:
+ networking/inetd.c:1.18->1.19
---------------------
-PatchSet 3962
+PatchSet 3962
Date: 2004/02/22 07:20:25
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Patch from Hideki IWAMOTO, output debugging messages to stderr
-Members:
- networking/tftp.c:1.22->1.23
+Members:
+ networking/tftp.c:1.22->1.23
---------------------
-PatchSet 3963
+PatchSet 3963
Date: 2004/02/22 07:38:36
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Patch from Florian Schirmer. compile fix for debug builds
-Members:
- miscutils/devfsd.c:1.7->1.8
+Members:
+ miscutils/devfsd.c:1.7->1.8
---------------------
-PatchSet 3964
+PatchSet 3964
Date: 2004/02/22 08:33:37
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Use /var/lib/hwclock for adjtime, its really a state file rather than a
config file, so it should be in /etc, FHS mentions it also.
-Members:
- util-linux/hwclock.c:1.6->1.7
+Members:
+ util-linux/hwclock.c:1.6->1.7
---------------------
-PatchSet 3965
+PatchSet 3965
Date: 2004/02/22 09:11:33
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Use bb_getopt_ulflags, marginal saving, better argument checking.
-Members:
- util-linux/hwclock.c:1.7->1.8
+Members:
+ util-linux/hwclock.c:1.7->1.8
---------------------
-PatchSet 3966
+PatchSet 3966
Date: 2004/02/22 09:45:57
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Patch from James Zhu, telnetd window resizing support.
-Members:
- networking/telnetd.c:1.9->1.10
+Members:
+ networking/telnetd.c:1.9->1.10
---------------------
-PatchSet 3967
+PatchSet 3967
Date: 2004/02/22 11:13:28
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Vodz. last_patch_128
- declare applet_using as static from applets.c
@@ -549,82 +549,82 @@ Vodz. last_patch_128
previous version cleared history after Ctrl-C
- small spelling correction (by Friedrich Lobenstock)
-Members:
- applets/applets.c:1.22->1.23
- shell/cmdedit.c:1.88->1.89
+Members:
+ applets/applets.c:1.22->1.23
+ shell/cmdedit.c:1.88->1.89
---------------------
-PatchSet 3968
+PatchSet 3968
Date: 2004/02/22 11:25:13
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Patch from Vodz, cleanup memory usage, send strdup error messages to
syslog.
-Members:
- networking/inetd.c:1.19->1.20
+Members:
+ networking/inetd.c:1.19->1.20
---------------------
-PatchSet 3969
+PatchSet 3969
Date: 2004/02/22 11:35:13
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Patch from Chris Larson (kergoth), to allow multiple directores to be
unmounted at once.
-Members:
- docs/busybox.sgml:1.52->1.53
- util-linux/umount.c:1.62->1.63
+Members:
+ docs/busybox.sgml:1.52->1.53
+ util-linux/umount.c:1.62->1.63
---------------------
-PatchSet 3970
+PatchSet 3970
Date: 2004/02/22 11:46:49
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
For the time being, revert the changes for detecting copying
a directory into itself. It is harder to do this correctly
than it appears. Not trying at all seems a better compromise
for the time being, untill we can implement this correctly.
-Members:
- libbb/copy_file.c:1.30->1.31
+Members:
+ libbb/copy_file.c:1.30->1.31
---------------------
-PatchSet 3971
+PatchSet 3971
Date: 2004/02/22 11:55:09
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Patch from Dmitry Zakharov, this line was missedfrom the last patch
-Members:
- editors/awk.c:1.5->1.6
+Members:
+ editors/awk.c:1.5->1.6
---------------------
-PatchSet 3972
+PatchSet 3972
Date: 2004/02/22 12:17:33
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Fix from Paul Kortekaas for syslog -C option, size should be in kB.
-Members:
- sysklogd/syslogd.c:1.106->1.107
+Members:
+ sysklogd/syslogd.c:1.106->1.107
---------------------
-PatchSet 3973
+PatchSet 3973
Date: 2004/02/22 12:25:47
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Fernando Silveira writes:
@@ -639,33 +639,33 @@ Hi,
Thanks a lot!
-Members:
- include/usage.h:1.189->1.190
- networking/Config.in:1.26->1.27
- networking/telnet.c:1.41->1.42
+Members:
+ include/usage.h:1.189->1.190
+ networking/Config.in:1.26->1.27
+ networking/telnet.c:1.41->1.42
---------------------
-PatchSet 3974
+PatchSet 3974
Date: 2004/02/22 12:27:04
Author: andersen
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
Bump up version in preparation for -pre8
-Members:
- Rules.mak:1.27->1.28
+Members:
+ Rules.mak:1.27->1.28
---------------------
-PatchSet 3975
+PatchSet 3975
Date: 2004/02/23 08:11:07
Author: bug1
Branch: HEAD
-Tag: (none)
+Tag: (none)
Log:
bb_full_fd_action was incorrectly returning an error message causing
major breaking.
-Members:
- libbb/copyfd.c:1.10->1.11
+Members:
+ libbb/copyfd.c:1.10->1.11
diff --git a/INSTALL b/INSTALL
index a137da237..c9cdf8e26 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,10 +1,10 @@
-1) Run 'make config' or 'make menuconfig' and select the
+1) Run 'make config' or 'make menuconfig' and select the
functionality that you wish to enable.
2) Run 'make dep'
-3) Check the Makefile for any Makefile setting you wish
- to adjust for your system (things like like setting
+3) Check the Makefile for any Makefile setting you wish
+ to adjust for your system (things like like setting
your cross compiler, adjusting optimizations, etc)
4) Run 'make'
diff --git a/Makefile b/Makefile
index fc8ea56f7..6ebab1ff2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -219,7 +219,7 @@ clean:
docs/busybox.net/BusyBox.html busybox.links libbb/loop.h \
.config.old .hdepend busybox
- rm -rf _install
- - find . -name .\*.flags -exec rm -f {} \;
+ - find . -name .\*.flags -exec rm -f {} \;
- find . -name \*.o -exec rm -f {} \;
- find . -name \*.a -exec rm -f {} \;
diff --git a/README b/README
index e56cb5a47..14cc845f7 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
Please see the LICENSE file for details on copying and usage.
-
+
BusyBox combines tiny versions of many common UNIX utilities into a single
small executable. It provides minimalist replacements for most of the utilities
you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
@@ -27,16 +27,16 @@ compiled in functions. By default, 'make install' will place the symlink
forest into `pwd`/_install unless you have defined the PREFIX environment
variable (i.e., 'make PREFIX=/tmp/foo install')
-If you wish to install hardlinks, rather than symlinks, you can use
+If you wish to install hardlinks, rather than symlinks, you can use
'make install-hardlinks' instead.
----------------
-
+
Supported architectures:
Busybox in general will build on any architecture supported by gcc. It has
a few specialized features added for __sparc__ and __alpha__. insmod
- functionality is currently limited to x86, ARM, SH3/4, powerpc, m68k,
+ functionality is currently limited to x86, ARM, SH3/4, powerpc, m68k,
MIPS, cris, and v850e.
Supported libcs:
@@ -69,7 +69,7 @@ Bugs:
If you find bugs, please submit a detailed bug report to the busybox mailing
list at busybox@mail.busybox.net. A well-written bug report should include a
transcript of a shell session that demonstrates the bad behavior and enables
-anyone else to duplicate the bug on their own machine. The following is such
+anyone else to duplicate the bug on their own machine. The following is such
an example:
To: busybox@mail.busybox.net
@@ -90,7 +90,7 @@ an example:
$ date
llegal instruction
- I am using Debian unstable, kernel version 2.4.19-rmk1 on an Netwinder,
+ I am using Debian unstable, kernel version 2.4.19-rmk1 on an Netwinder,
and the latest uClibc from CVS. Thanks for the wonderful program!
-Diligent
@@ -103,8 +103,8 @@ reports lacking such detail may never be fixed... Thanks for understanding.
FTP:
-Source for the latest released version, as well as daily snapshots, can always
-be downloaded from
+Source for the latest released version, as well as daily snapshots, can always
+be downloaded from
http://busybox.net/downloads/
----------------
@@ -123,7 +123,7 @@ For those that are actively contributing there is even CVS write access:
----------------
Please feed suggestions, bug reports, insults, and bribes back to:
- Erik Andersen
+ Erik Andersen
<andersen@codepoet.org>
<andersen@codepoet.org>
diff --git a/Rules.mak b/Rules.mak
index 7b6642631..5e0a5e672 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -1,6 +1,6 @@
# Rules.make for busybox
#
-# Copyright (C) 2001-2003 Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -52,14 +52,14 @@ TARGET_OS=linux
HOSTCC = gcc
HOSTCFLAGS= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.
+# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.
LC_ALL:= C
# If you want to add some simple compiler switches (like -march=i686),
# especially from the command line, use this instead of CFLAGS directly.
# For optimization overrides, it's better still to set OPTIMIZATION.
CFLAGS_EXTRA=$(subst ",, $(strip $(EXTRA_CFLAGS_OPTIONS)))
-
+
# If you have a "pristine" source directory, point BB_SRC_DIR to it.
# Experimental and incomplete; tell the mailing list
# <busybox@busybox.net> if you do or don't like it so far.
@@ -137,7 +137,7 @@ OPTIMIZATIONS=$(OPTIMIZATION) -fomit-frame-pointer
# by itself, instead of following it by the same half-dozen overrides
# every time. The stuff below, on the other hand, is probably less
# prone to casual user adjustment.
-#
+#
ifeq ($(strip $(CONFIG_LFS)),y)
# For large file summit support
diff --git a/TODO b/TODO
index 35bc11a24..7a8fa4dfa 100644
--- a/TODO
+++ b/TODO
@@ -14,7 +14,7 @@ Possible apps to include some time:
-----------
-With sysvinit, reboot, poweroff and halt all used a named pipe,
+With sysvinit, reboot, poweroff and halt all used a named pipe,
/dev/initctl, to communicate with the init process. Busybox
currently uses signals to communicate with init. This makes
busybox incompatible with sysvinit. We should probably use
diff --git a/applets/Makefile b/applets/Makefile
index f4ebb1496..5f9167442 100644
--- a/applets/Makefile
+++ b/applets/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/applets/Makefile.in b/applets/Makefile.in
index cb6c647df..79582e069 100644
--- a/applets/Makefile.in
+++ b/applets/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/applets/applets.c b/applets/applets.c
index 9dc69f36f..7d8adfb65 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -423,7 +423,7 @@ static void parse_config_file(void)
}
/* Now get the the user/group info. */
-
+
s = (char *) bb_skip_whitespace(e);
/* Note: We require whitespace between the mode and the
diff --git a/applets/busybox.c b/applets/busybox.c
index dfcf400e0..dbb5e176b 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -13,7 +13,7 @@ int been_there_done_that = 0; /* Also used in applets.c */
const char *bb_applet_name;
#ifdef CONFIG_FEATURE_INSTALLER
-/*
+/*
* directory table
* this should be consistent w/ the enum, busybox.h::Location,
* or else...
@@ -32,7 +32,7 @@ static const char* const install_dir[] = {
/* abstract link() */
typedef int (*__link_f)(const char *, const char *);
-/*
+/*
* Where in the filesystem is this busybox?
* [return]
* malloc'd string w/ full pathname of busybox's location
@@ -52,7 +52,7 @@ static void install_links(const char *busybox, int use_symbolic_links)
int i;
int rc;
- if (use_symbolic_links)
+ if (use_symbolic_links)
Link = symlink;
for (i = 0; applets[i].name != NULL; i++) {
@@ -82,7 +82,7 @@ int main(int argc, char **argv)
bb_applet_name = s;
}
-#ifdef CONFIG_LOCALE_SUPPORT
+#ifdef CONFIG_LOCALE_SUPPORT
#ifdef CONFIG_INIT
if(getpid()!=1) /* Do not set locale for `init' */
#endif
@@ -100,9 +100,9 @@ int busybox_main(int argc, char **argv)
{
int col = 0, len, i;
-#ifdef CONFIG_FEATURE_INSTALLER
- /*
- * This style of argument parsing doesn't scale well
+#ifdef CONFIG_FEATURE_INSTALLER
+ /*
+ * This style of argument parsing doesn't scale well
* in the event that busybox starts wanting more --options.
* If someone has a cleaner approach, by all means implement it.
*/
@@ -113,8 +113,8 @@ int busybox_main(int argc, char **argv)
/* to use symlinks, or not to use symlinks... */
if (argc > 2) {
- if ((strcmp(argv[2], "-s") == 0)) {
- use_symbolic_links = 1;
+ if ((strcmp(argv[2], "-s") == 0)) {
+ use_symbolic_links = 1;
}
}
@@ -150,7 +150,7 @@ int busybox_main(int argc, char **argv)
"\tBusyBox is a multi-call binary that combines many common Unix\n"
"\tutilities into a single executable. Most people will create a\n"
"\tlink to busybox for each function they wish to use, and BusyBox\n"
- "\twill act like whatever it was invoked as.\n"
+ "\twill act like whatever it was invoked as.\n"
"\nCurrently defined functions:\n", bb_msg_full_version);
while (a->name != 0) {
diff --git a/archival/Config.in b/archival/Config.in
index daf3cf221..db358db08 100644
--- a/archival/Config.in
+++ b/archival/Config.in
@@ -46,11 +46,11 @@ config CONFIG_BUNZIP2
sorting text compression algorithm, and Huffman coding. Compression
is generally considerably better than that achieved by more
conventional LZ77/LZ78-based compressors, and approaches the
- performance of the PPM family of statistical compressors.
-
+ performance of the PPM family of statistical compressors.
+
The BusyBox bunzip2 applet is limited to de-compression only.
On an x86 system, this applet adds about 11K.
-
+
Unless you have a specific application which requires bunzip2, you
should probably say N here.
@@ -63,7 +63,7 @@ config CONFIG_CPIO
cpio has 110 bytes of overheads for every stored file.
This implementation of cpio can extract cpio archives created in the
- "newc" or "crc" format, it cannot create or modify them.
+ "newc" or "crc" format, it cannot create or modify them.
Unless you have a specific application which requires cpio, you should
probably say N here.
@@ -73,7 +73,7 @@ config CONFIG_DPKG
default n
help
dpkg is a medium-level tool to install, build, remove and manage Debian packages.
-
+
This implementation of dpkg has a number of limitations, you should use the
official dpkg if possible.
@@ -82,9 +82,9 @@ config CONFIG_DPKG_DEB
default n
help
dpkg-deb packs, unpacks and provides information about Debian archives.
-
+
This implementation of dpkg-deb cannot pack archives.
-
+
Unless you have a specific application which requires dpkg-deb, you should
probably say N here.
@@ -94,7 +94,7 @@ config CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY
depends on CONFIG_DPKG_DEB
help
This reduces dpkg-deb to the equivalent of "ar -p <deb> data.tar.gz | tar -zx".
- However it saves space as none of the extra dpkg-deb, ar or tar options are
+ However it saves space as none of the extra dpkg-deb, ar or tar options are
needed, they are linked to internally.
config CONFIG_GUNZIP
@@ -195,7 +195,7 @@ config CONFIG_FEATURE_TAR_GNU_EXTENSIONS
default y
depends on CONFIG_TAR
help
- With this option busybox supports GNU long filenames and
+ With this option busybox supports GNU long filenames and
linknames.
config CONFIG_FEATURE_TAR_LONG_OPTIONS
@@ -241,7 +241,7 @@ config CONFIG_FEATURE_DEB_TAR_GZ
depends on CONFIG_DPKG || CONFIG_DPKG_DEB
help
This is the default compression method inside the debian ar file.
-
+
If you want compatibility with standard .deb's you should say yes here.
config CONFIG_FEATURE_DEB_TAR_BZ2
@@ -251,7 +251,7 @@ config CONFIG_FEATURE_DEB_TAR_BZ2
help
This allows dpkg and dpkg-deb to extract deb's that are compressed internally
with bzip2 instead of gzip.
-
+
You only want this if you are creating your own custom debian packages that
use an internal control.tar.bz2 or data.tar.bz2.
diff --git a/archival/Makefile b/archival/Makefile
index 3362feafb..1cbe7ee00 100644
--- a/archival/Makefile
+++ b/archival/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/archival/Makefile.in b/archival/Makefile.in
index 3247ad8bd..1673662f9 100644
--- a/archival/Makefile.in
+++ b/archival/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/archival/ar.c b/archival/ar.c
index 890e81fc5..ddf3fdadb 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -1,10 +1,10 @@
/* vi: set sw=4 ts=4: */
/*
- * Mini ar implementation for busybox
+ * Mini ar implementation for busybox
*
* Copyright (C) 2000 by Glenn McGrath
* Written by Glenn McGrath <bug1@optushome.com.au> 1 June 2000
- *
+ *
* Based in part on BusyBox tar, Debian dpkg-deb and GNU ar.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/archival/cpio.c b/archival/cpio.c
index 8f85779c9..aff6a55f9 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -2,7 +2,7 @@
/*
* Mini cpio implementation for busybox
*
- * Copyright (C) 2001 by Glenn McGrath
+ * Copyright (C) 2001 by Glenn McGrath
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -62,7 +62,7 @@ extern int cpio_main(int argc, char **argv)
/* if both extract and test option are given, ignore extract option */
if (opt & CPIO_OPT_EXTRACT) {
opt &= ~CPIO_OPT_EXTRACT;
- }
+ }
archive_handle->action_header = header_list;
}
if (opt & CPIO_OPT_EXTRACT) {
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 2ebbbdf4e..e192b4a62 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -4,7 +4,7 @@
*
* Written By Glenn McGrath with the help of others
* Copyright (C) 2001 by Glenn McGrath
- *
+ *
* Started life as a busybox implementation of udpkg
*
* This program is free software; you can redistribute it and/or modify
@@ -54,7 +54,7 @@
* int's and chaos is assured, 16381 is the max prime for 14 bit field
*/
-/* NAME_HASH_PRIME, Stores package names and versions,
+/* NAME_HASH_PRIME, Stores package names and versions,
* I estimate it should be at least 50% bigger than PACKAGE_HASH_PRIME,
* as there a lot of duplicate version numbers */
#define NAME_HASH_PRIME 16381
@@ -150,7 +150,7 @@ void make_hash(const char *key, unsigned int *start, unsigned int *decrement, co
* shift amount is mod 24 because long int is 32 bit and data
* to be shifted is 8, dont want to shift data to where it has
* no effect*/
- hash_num += ((key[i] + key[i-1]) << ((key[i] * i) % 24));
+ hash_num += ((key[i] + key[i-1]) << ((key[i] * i) % 24));
}
*start = (unsigned int) hash_num % hash_prime;
*decrement = (unsigned int) 1 + (hash_num % (hash_prime - 1));
@@ -464,11 +464,11 @@ void add_split_dependencies(common_node_t *parent_node, const char *whole_line,
} else {
or_edge = NULL;
}
-
+
if ( or_edge ) {
or_edge->name = search_name_hashtable(field);
or_edge->version = 0; // tracks the number of altenatives
-
+
add_edge_to_node(parent_node, or_edge);
}
@@ -572,7 +572,7 @@ unsigned int fill_package_struct(char *control_buffer)
goto fill_package_struct_cleanup; /* Oh no, the dreaded goto statement ! */
}
- field_num = compare_string_array(field_names, field_name);
+ field_num = compare_string_array(field_names, field_name);
switch(field_num) {
case 0: /* Package */
new_node->name = search_name_hashtable(field_value);
@@ -697,7 +697,7 @@ const char *describe_status(int status_num) {
return "is marked to be removed";
if ( status_want == search_name_hashtable("purge") )
return "is marked to be purged";
- }
+ }
if ( status_want == search_name_hashtable("unknown") )
return "is in an indeterminate state";
if ( status_want == search_name_hashtable("install") )
@@ -957,11 +957,11 @@ void write_status_file(deb_file_t **deb_file)
/* Create a seperate backfile to dpkg */
if (rename("/var/lib/dpkg/status", "/var/lib/dpkg/status.udeb.bak") == -1) {
- struct stat stat_buf;
+ struct stat stat_buf;
if (stat("/var/lib/dpkg/status", &stat_buf) == 0) {
bb_error_msg_and_die("Couldnt create backup status file");
}
- /* Its ok if renaming the status file fails becasue status
+ /* Its ok if renaming the status file fails becasue status
* file doesnt exist, maybe we are starting from scratch */
bb_error_msg("No status file found, creating new one");
}
@@ -1056,10 +1056,10 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
const edge_t *package_edge = package_node->edge[j];
if (package_edge->type == EDGE_CONFLICTS) {
- const unsigned int package_num =
+ const unsigned int package_num =
search_package_hashtable(package_edge->name,
- package_edge->version,
- package_edge->operator);
+ package_edge->version,
+ package_edge->operator);
int result = 0;
if (package_hashtable[package_num] != NULL) {
status_num = search_status_hashtable(name_hashtable[package_hashtable[package_num]->name]);
@@ -1078,7 +1078,7 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
}
}
i++;
- }
+ }
/* Check dependendcies */
@@ -1098,7 +1098,7 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
/* If there is no status then this package is a
* virtual one provided by something else. In which
- * case there are no dependencies to check.
+ * case there are no dependencies to check.
*/
if ( status_hashtable[status_num] == NULL ) continue;
@@ -1125,7 +1125,7 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
for (j = 0; j < package_node->num_of_edges; j++) {
const edge_t *package_edge = package_node->edge[j];
unsigned int package_num;
-
+
if ( package_edge->type == EDGE_OR_PRE_DEPENDS ||
package_edge->type == EDGE_OR_DEPENDS ) { /* start an EDGE_OR_ list */
number_of_alternatives = package_edge->version;
@@ -1147,26 +1147,26 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
* this edge is the right type.
*
* EDGE_DEPENDS == OR_DEPENDS -1
- * EDGE_PRE_DEPENDS == OR_PRE_DEPENDS -1
+ * EDGE_PRE_DEPENDS == OR_PRE_DEPENDS -1
*/
if ( root_of_alternatives && package_edge->type != root_of_alternatives->type - 1)
bb_error_msg_and_die("Fatal error. Package dependencies corrupt: %d != %d - 1 \n",
package_edge->type, root_of_alternatives->type);
-
+
if (package_hashtable[package_num] != NULL)
result = !package_satisfies_dependency(package_num, package_edge->type);
if (result) { /* check for other package which provide what we are looking for */
int provider = -1;
-
+
while ( (provider = search_for_provides(package_edge->name, provider) ) > -1 ) {
if ( package_hashtable[provider] == NULL ) {
printf("Have a provider but no package information for it\n");
continue;
- }
+ }
result = !package_satisfies_dependency(provider, package_edge->type);
-
- if ( result == 0 )
+
+ if ( result == 0 )
break;
}
}
@@ -1176,14 +1176,14 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
if (result && number_of_alternatives == 0) {
if ( root_of_alternatives )
bb_error_msg_and_die(
- "Package %s %sdepends on %s, "
+ "Package %s %sdepends on %s, "
"which cannot be satisfied",
name_hashtable[package_node->name],
package_edge->type == EDGE_PRE_DEPENDS ? "pre-" : "",
name_hashtable[root_of_alternatives->name]);
- else
+ else
bb_error_msg_and_die(
- "Package %s %sdepends on %s, which %s\n",
+ "Package %s %sdepends on %s, which %s\n",
name_hashtable[package_node->name],
package_edge->type == EDGE_PRE_DEPENDS ? "pre-" : "",
name_hashtable[package_edge->name],
@@ -1192,7 +1192,7 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
/* we've found a package which
* satisfies the dependency,
* so skip over the rest of
- * the alternatives.
+ * the alternatives.
*/
j += number_of_alternatives;
number_of_alternatives = 0;
@@ -1312,7 +1312,7 @@ char **all_control_list(const char *package_name)
void free_array(char **array)
{
-
+
if (array) {
unsigned short i = 0;
while (array[i]) {
@@ -1325,7 +1325,7 @@ void free_array(char **array)
/* This function lists information on the installed packages. It loops through
* the status_hashtable to retrieve the info. This results in smaller code than
- * scanning the status file. The resulting list, however, is unsorted.
+ * scanning the status file. The resulting list, however, is unsorted.
*/
void list_packages(void)
{
@@ -1333,7 +1333,7 @@ void list_packages(void)
printf(" Name Version\n");
printf("+++-==============-==============\n");
-
+
/* go through status hash, dereference package hash and finally strings */
for (i=0; i<STATUS_HASH_PRIME+1; i++) {
@@ -1342,22 +1342,22 @@ void list_packages(void)
const char *name_str; /* package name */
const char *vers_str; /* version */
char s1, s2; /* status abbreviations */
- int spccnt; /* space count */
+ int spccnt; /* space count */
int j;
-
+
stat_str = name_hashtable[status_hashtable[i]->status];
name_str = name_hashtable[package_hashtable[status_hashtable[i]->package]->name];
vers_str = name_hashtable[package_hashtable[status_hashtable[i]->package]->version];
-
+
/* get abbreviation for status field 1 */
s1 = stat_str[0] == 'i' ? 'i' : 'r';
-
+
/* get abbreviation for status field 2 */
for (j=0, spccnt=0; stat_str[j] && spccnt<2; j++) {
if (stat_str[j] == ' ') spccnt++;
}
s2 = stat_str[j];
-
+
/* print out the line formatted like Debian dpkg */
printf("%c%c %-14s %s\n", s1, s2, name_str, vers_str);
}
@@ -1376,7 +1376,7 @@ void remove_package(const unsigned int package_num, int noisy)
char conffile_name[package_name_length + 30];
int return_value;
- if ( noisy )
+ if ( noisy )
printf("Removing %s (%s) ...\n", package_name, package_version);
/* run prerm script */
@@ -1464,12 +1464,12 @@ static archive_handle_t *init_archive_deb_ar(const char *filename)
{
archive_handle_t *ar_handle;
- /* Setup an ar archive handle that refers to the gzip sub archive */
+ /* Setup an ar archive handle that refers to the gzip sub archive */
ar_handle = init_handle();
ar_handle->filter = filter_accept_list_reassign;
ar_handle->src_fd = bb_xopen(filename, O_RDONLY);
- return(ar_handle);
+ return(ar_handle);
}
static void init_archive_deb_control(archive_handle_t *ar_handle)
@@ -1491,7 +1491,7 @@ static void init_archive_deb_control(archive_handle_t *ar_handle)
/* Assign the tar handle as a subarchive of the ar handle */
ar_handle->sub_archive = tar_handle;
- return;
+ return;
}
static void init_archive_deb_data(archive_handle_t *ar_handle)
@@ -1513,7 +1513,7 @@ static void init_archive_deb_data(archive_handle_t *ar_handle)
/* Assign the tar handle as a subarchive of the ar handle */
ar_handle->sub_archive = tar_handle;
- return;
+ return;
}
static char *deb_extract_control_file_to_buffer(archive_handle_t *ar_handle, llist_t *myaccept)
@@ -1586,7 +1586,7 @@ static void unpack_package(deb_file_t *deb_file)
if (run_package_script(package_name, "preinst") != 0) {
/* when preinst returns exit code != 0 then quit installation process */
bb_error_msg_and_die("subprocess pre-installation script returned error.");
- }
+ }
/* Extract data.tar.gz to the root directory */
archive_handle = init_archive_deb_ar(deb_file->filename);
@@ -1598,7 +1598,7 @@ static void unpack_package(deb_file_t *deb_file)
/* Create the list file */
strcat(info_prefix, "list");
- out_stream = bb_xfopen(info_prefix, "w");
+ out_stream = bb_xfopen(info_prefix, "w");
while (archive_handle->sub_archive->passed) {
/* the leading . has been stripped by data_extract_all_prefix already */
fputs(archive_handle->sub_archive->passed->data, out_stream);
@@ -1653,7 +1653,7 @@ int dpkg_main(int argc, char **argv)
case 'F': // equivalent to --force in official dpkg
if (strcmp(optarg, "depends") == 0) {
dpkg_opt |= dpkg_opt_force_ignore_depends;
- }
+ }
break;
case 'i':
dpkg_opt |= dpkg_opt_install;
@@ -1691,7 +1691,7 @@ int dpkg_main(int argc, char **argv)
list_packages();
return(EXIT_SUCCESS);
}
-
+
/* Read arguments and store relevant info in structs */
while (optind < argc) {
/* deb_count = nb_elem - 1 and we need nb_elem + 1 to allocate terminal node [NULL pointer] */
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index da94b394f..5aa9881d5 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -41,7 +41,7 @@ extern int dpkg_deb_main(int argc, char **argv)
/* Setup the tar archive handle */
tar_archive = init_handle();
- /* Setup an ar archive handle that refers to the gzip sub archive */
+ /* Setup an ar archive handle that refers to the gzip sub archive */
ar_archive = init_handle();
ar_archive->sub_archive = tar_archive;
ar_archive->filter = filter_accept_list_reassign;
@@ -73,7 +73,7 @@ extern int dpkg_deb_main(int argc, char **argv)
}
if (opt & DPKG_DEB_OPT_FIELD) {
/* Print the entire control file
- * it should accept a second argument which specifies a
+ * it should accept a second argument which specifies a
* specific field to print */
ar_archive->accept = control_tar_llist;
tar_archive->accept = llist_add_to(NULL, "./control");;
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 367e0470c..dec53f660 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -13,7 +13,7 @@
*
* General cleanup to better adhere to the style guide and make use of standard
* busybox functions by Glenn McGrath <bug1@optushome.com.au>
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@@ -153,12 +153,12 @@ extern int gunzip_main(int argc, char **argv)
/* do the decompression, and cleanup */
if (bb_xread_char(src_fd) == 0x1f) {
unsigned char magic2;
-
+
magic2 = bb_xread_char(src_fd);
#ifdef CONFIG_FEATURE_GUNZIP_UNCOMPRESS
if (magic2 == 0x9d) {
status = uncompress(src_fd, dst_fd);
- } else
+ } else
#endif
if (magic2 == 0x8b) {
check_header_gzip(src_fd);
diff --git a/archival/gzip.c b/archival/gzip.c
index 2be5603a0..1708ac1a1 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -9,8 +9,8 @@
* only standard in to standard out with -9 compression. It also requires
* the zcat module for some important functions."
*
- * Adjusted further by Erik Andersen <andersen@codepoet.org> to support
- * files as well as stdin/stdout, and to generally behave itself wrt
+ * Adjusted further by Erik Andersen <andersen@codepoet.org> to support
+ * files as well as stdin/stdout, and to generally behave itself wrt
* command line handling.
*
* This program is free software; you can redistribute it and/or modify
@@ -30,7 +30,7 @@
*/
/* These defines are very important for BusyBox. Without these,
- * huge chunks of ram are pre-allocated making the BusyBox bss
+ * huge chunks of ram are pre-allocated making the BusyBox bss
* size Freaking Huge(tm), which is a bad thing.*/
#define SMALL_MEM
#define DYN_ALLOC
diff --git a/archival/libunarchive/Makefile b/archival/libunarchive/Makefile
index 272ca2434..9a20ea28b 100644
--- a/archival/libunarchive/Makefile
+++ b/archival/libunarchive/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/archival/libunarchive/Makefile.in b/archival/libunarchive/Makefile.in
index 09b0571ed..c0e12a6c8 100644
--- a/archival/libunarchive/Makefile.in
+++ b/archival/libunarchive/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -55,7 +55,7 @@ DPKG_FILES:= \
get_header_tar.o \
filter_accept_list_reassign.o
-LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
+LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
LIBUNARCHIVE-$(CONFIG_BUNZIP2) += decompress_bunzip2.o
LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio.o
LIBUNARCHIVE-$(CONFIG_DPKG) += $(DPKG_FILES)
@@ -64,7 +64,7 @@ LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o
LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o
LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES)
LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += uncompress.o
-LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o
+LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o
LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o
LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o
LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c
index 4cff24339..a9a3a93d8 100644
--- a/archival/libunarchive/data_extract_all.c
+++ b/archival/libunarchive/data_extract_all.c
@@ -37,7 +37,7 @@ extern void data_extract_all(archive_handle_t *archive_handle)
char *name = bb_xstrdup(file_header->name);
bb_make_directory (dirname(name), 0777, FILEUTILS_RECUR);
free(name);
- }
+ }
/* Check if the file already exists */
if (archive_handle->flags & ARCHIVE_EXTRACT_UNCONDITIONAL) {
@@ -66,7 +66,7 @@ extern void data_extract_all(archive_handle_t *archive_handle)
}
}
- /* Handle hard links seperately
+ /* Handle hard links seperately
* We identified hard links as regular files of size 0 with a symlink */
if (S_ISREG(file_header->mode) && (file_header->link_name) && (file_header->size == 0)) {
/* hard link */
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c
index 3e6138c95..af165336e 100644
--- a/archival/libunarchive/decompress_bunzip2.c
+++ b/archival/libunarchive/decompress_bunzip2.c
@@ -248,7 +248,7 @@ static int get_next_block(bunzip_data *bd)
pp=0;
for(i=minLen;i<=maxLen;i++) {
temp[i]=limit[i]=0;
- for(t=0;t<symCount;t++)
+ for(t=0;t<symCount;t++)
if(length[t]==i) hufGroup->permute[pp++] = t;
}
/* Count symbols coded for at each bit length */
diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c
index 65418a7ca..ddf293fd6 100644
--- a/archival/libunarchive/decompress_uncompress.c
+++ b/archival/libunarchive/decompress_uncompress.c
@@ -3,7 +3,7 @@
/* uncompress for busybox -- (c) 2002 Robert Griebl
*
- * based on the original compress42.c source
+ * based on the original compress42.c source
* (see disclaimer below)
*/
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index 29929c282..a436db191 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -13,7 +13,7 @@
*
* General cleanup to better adhere to the style guide and make use of standard
* busybox functions by Glenn McGrath <bug1@optushome.com.au>
- *
+ *
* read_gz interface + associated hacking by Laurence Anderson
*
* This program is free software; you can redistribute it and/or modify
@@ -148,7 +148,7 @@ static unsigned int fill_bitbuffer(unsigned int bitbuffer, unsigned int *current
{
while (*current < required) {
if (bytebuffer_offset >= bytebuffer_size) {
- /* Leave the first 4 bytes empty so we can always unwind the bitbuffer
+ /* Leave the first 4 bytes empty so we can always unwind the bitbuffer
* to the front of the bytebuffer, leave 4 bytes free at end of tail
* so we can easily top up buffer in check_trailer_gzip() */
bytebuffer_size = 4 + bb_xread(gunzip_src_fd, &bytebuffer[4], bytebuffer_max - 8);
@@ -193,7 +193,7 @@ static void make_gunzip_crc_table(void)
/*
* Free the malloc'ed tables built by huft_build(), which makes a linked
* list of the tables it made, with the links in a dummy first entry of
- * each table.
+ * each table.
* t: table to free
*/
static int huft_free(huft_t * t)
@@ -435,9 +435,9 @@ static int inflate_codes(huft_t * my_tl, huft_t * my_td, const unsigned int my_b
md = mask_bits[bd];
return 0; // Don't actually do anything the first time
}
-
+
if (resumeCopy) goto do_copy;
-
+
while (1) { /* do until end of block */
b = fill_bitbuffer(b, &k, bl);
if ((e = (t = tl + ((unsigned) b & ml))->e) > 16)
@@ -533,7 +533,7 @@ do_copy: do {
/* free the decoding tables, return */
huft_free(tl);
huft_free(td);
-
+
/* done */
return 0;
}
@@ -548,7 +548,7 @@ static int inflate_stored(int my_n, int my_b_stored, int my_k_stored, int setup)
w = gunzip_outbuf_count; /* initialize gunzip_window position */
return 0; // Don't do anything first time
}
-
+
/* read and output the compressed data */
while (n--) {
b_stored = fill_bitbuffer(b_stored, &k_stored, 8);
@@ -639,7 +639,7 @@ static int inflate_block(int *e)
inflate_stored(n, b_stored, k_stored, 1); // Setup inflate_stored
return -1;
}
- case 1: /* Inflate fixed
+ case 1: /* Inflate fixed
* decompress an inflated type 1 (fixed Huffman codes) block. We should
* either replace this with a custom decoder, or at least precompute the
* Huffman tables.
@@ -682,9 +682,9 @@ static int inflate_block(int *e)
/* decompress until an end-of-block code */
inflate_codes(tl, td, bl, bd, 1); // Setup inflate_codes
-
+
/* huft_free code moved into inflate_codes */
-
+
return -2;
}
case 2: /* Inflate dynamic */
@@ -836,7 +836,7 @@ static int inflate_block(int *e)
inflate_codes(tl, td, bl, bd, 1); // Setup inflate_codes
/* huft_free code moved into inflate_codes */
-
+
return -2;
}
default:
@@ -859,12 +859,12 @@ static int inflate_get_next_window(void)
static int method = -1; // Method == -1 for stored, -2 for codes
static int e = 0;
static int needAnotherBlock = 1;
-
+
gunzip_outbuf_count = 0;
while(1) {
int ret;
-
+
if (needAnotherBlock) {
if(e) {
calculate_gunzip_crc();
@@ -875,7 +875,7 @@ static int inflate_get_next_window(void)
method = inflate_block(&e);
needAnotherBlock = 0;
}
-
+
switch (method) {
case -1: ret = inflate_stored(0,0,0,0);
break;
@@ -920,7 +920,7 @@ extern int inflate_unzip(int in, int out)
make_gunzip_crc_table();
/* Allocate space for buffer */
- bytebuffer = xmalloc(bytebuffer_max);
+ bytebuffer = xmalloc(bytebuffer_max);
while(1) {
int ret = inflate_get_next_window();
@@ -977,6 +977,6 @@ extern int inflate_gunzip(int in, int out)
(bytebuffer[bytebuffer_offset+2] << 16) | (bytebuffer[bytebuffer_offset+3] << 24))) {
bb_error_msg("Incorrect length");
}
-
+
return 0;
}
diff --git a/archival/libunarchive/filter_accept_list_reassign.c b/archival/libunarchive/filter_accept_list_reassign.c
index 1e9da0f2b..d0436549b 100644
--- a/archival/libunarchive/filter_accept_list_reassign.c
+++ b/archival/libunarchive/filter_accept_list_reassign.c
@@ -26,7 +26,7 @@
/*
* Reassign the subarchive metadata parser based on the filename extension
* e.g. if its a .tar.gz modify archive_handle->sub_archive to process a .tar.gz
- * or if its a .tar.bz2 make archive_handle->sub_archive handle that
+ * or if its a .tar.bz2 make archive_handle->sub_archive handle that
*/
extern char filter_accept_list_reassign(archive_handle_t *archive_handle)
{
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c
index 25eafe0bd..86e0bc08f 100644
--- a/archival/libunarchive/get_header_ar.c
+++ b/archival/libunarchive/get_header_ar.c
@@ -113,7 +113,7 @@ extern char get_header_ar(archive_handle_t *archive_handle)
archive_handle->action_data(archive_handle);
}
} else {
- data_skip(archive_handle);
+ data_skip(archive_handle);
}
archive_handle->offset += typed->size;
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c
index 25fdc0600..e8a68f1c3 100644
--- a/archival/libunarchive/get_header_cpio.c
+++ b/archival/libunarchive/get_header_cpio.c
@@ -36,7 +36,7 @@ extern char get_header_cpio(archive_handle_t *archive_handle)
int namesize;
char dummy[16];
int major, minor, nlink, inode;
-
+
if (pending_hardlinks) { /* Deal with any pending hardlinks */
hardlinks_t *tmp;
hardlinks_t *oldtmp;
@@ -77,7 +77,7 @@ extern char get_header_cpio(archive_handle_t *archive_handle)
{
unsigned long tmpsize;
sscanf(cpio_header, "%6c%8x%8x%8x%8x%8x%8lx%8lx%16c%8x%8x%8x%8c",
- dummy, &inode, (unsigned int*)&file_header->mode,
+ dummy, &inode, (unsigned int*)&file_header->mode,
(unsigned int*)&file_header->uid, (unsigned int*)&file_header->gid,
&nlink, &file_header->mtime, &tmpsize,
dummy, &major, &minor, &namesize, dummy);
@@ -147,7 +147,7 @@ extern char get_header_cpio(archive_handle_t *archive_handle)
archive_handle->action_data(archive_handle);
archive_handle->action_header(archive_handle->file_header);
} else {
- data_skip(archive_handle);
+ data_skip(archive_handle);
}
archive_handle->offset += file_header->size;
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index ad580617b..c6ebdae80 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -119,7 +119,7 @@ extern char get_header_tar(archive_handle_t *archive_handle)
file_header->gid = strtol(tar.formated.gid, NULL, 8);
file_header->size = strtol(tar.formated.size, NULL, 8);
file_header->mtime = strtol(tar.formated.mtime, NULL, 8);
- file_header->link_name = (tar.formated.linkname[0] != '\0') ?
+ file_header->link_name = (tar.formated.linkname[0] != '\0') ?
bb_xstrdup(tar.formated.linkname) : NULL;
file_header->device = (dev_t) ((strtol(tar.formated.devmajor, NULL, 8) << 8) +
strtol(tar.formated.devminor, NULL, 8));
@@ -205,7 +205,7 @@ extern char get_header_tar(archive_handle_t *archive_handle)
archive_handle->action_data(archive_handle);
archive_handle->passed = llist_add_to(archive_handle->passed, file_header->name);
} else {
- data_skip(archive_handle);
+ data_skip(archive_handle);
}
archive_handle->offset += file_header->size;
diff --git a/archival/libunarchive/uncompress.c b/archival/libunarchive/uncompress.c
index 65418a7ca..ddf293fd6 100644
--- a/archival/libunarchive/uncompress.c
+++ b/archival/libunarchive/uncompress.c
@@ -3,7 +3,7 @@
/* uncompress for busybox -- (c) 2002 Robert Griebl
*
- * based on the original compress42.c source
+ * based on the original compress42.c source
* (see disclaimer below)
*/
diff --git a/archival/libunarchive/unzip.c b/archival/libunarchive/unzip.c
index 29929c282..a436db191 100644
--- a/archival/libunarchive/unzip.c
+++ b/archival/libunarchive/unzip.c
@@ -13,7 +13,7 @@
*
* General cleanup to better adhere to the style guide and make use of standard
* busybox functions by Glenn McGrath <bug1@optushome.com.au>
- *
+ *
* read_gz interface + associated hacking by Laurence Anderson
*
* This program is free software; you can redistribute it and/or modify
@@ -148,7 +148,7 @@ static unsigned int fill_bitbuffer(unsigned int bitbuffer, unsigned int *current
{
while (*current < required) {
if (bytebuffer_offset >= bytebuffer_size) {
- /* Leave the first 4 bytes empty so we can always unwind the bitbuffer
+ /* Leave the first 4 bytes empty so we can always unwind the bitbuffer
* to the front of the bytebuffer, leave 4 bytes free at end of tail
* so we can easily top up buffer in check_trailer_gzip() */
bytebuffer_size = 4 + bb_xread(gunzip_src_fd, &bytebuffer[4], bytebuffer_max - 8);
@@ -193,7 +193,7 @@ static void make_gunzip_crc_table(void)
/*
* Free the malloc'ed tables built by huft_build(), which makes a linked
* list of the tables it made, with the links in a dummy first entry of
- * each table.
+ * each table.
* t: table to free
*/
static int huft_free(huft_t * t)
@@ -435,9 +435,9 @@ static int inflate_codes(huft_t * my_tl, huft_t * my_td, const unsigned int my_b
md = mask_bits[bd];
return 0; // Don't actually do anything the first time
}
-
+
if (resumeCopy) goto do_copy;
-
+
while (1) { /* do until end of block */
b = fill_bitbuffer(b, &k, bl);
if ((e = (t = tl + ((unsigned) b & ml))->e) > 16)
@@ -533,7 +533,7 @@ do_copy: do {
/* free the decoding tables, return */
huft_free(tl);
huft_free(td);
-
+
/* done */
return 0;
}
@@ -548,7 +548,7 @@ static int inflate_stored(int my_n, int my_b_stored, int my_k_stored, int setup)
w = gunzip_outbuf_count; /* initialize gunzip_window position */
return 0; // Don't do anything first time
}
-
+
/* read and output the compressed data */
while (n--) {
b_stored = fill_bitbuffer(b_stored, &k_stored, 8);
@@ -639,7 +639,7 @@ static int inflate_block(int *e)
inflate_stored(n, b_stored, k_stored, 1); // Setup inflate_stored
return -1;
}
- case 1: /* Inflate fixed
+ case 1: /* Inflate fixed
* decompress an inflated type 1 (fixed Huffman codes) block. We should
* either replace this with a custom decoder, or at least precompute the
* Huffman tables.
@@ -682,9 +682,9 @@ static int inflate_block(int *e)
/* decompress until an end-of-block code */
inflate_codes(tl, td, bl, bd, 1); // Setup inflate_codes
-
+
/* huft_free code moved into inflate_codes */
-
+
return -2;
}
case 2: /* Inflate dynamic */
@@ -836,7 +836,7 @@ static int inflate_block(int *e)
inflate_codes(tl, td, bl, bd, 1); // Setup inflate_codes
/* huft_free code moved into inflate_codes */
-
+
return -2;
}
default:
@@ -859,12 +859,12 @@ static int inflate_get_next_window(void)
static int method = -1; // Method == -1 for stored, -2 for codes
static int e = 0;
static int needAnotherBlock = 1;
-
+
gunzip_outbuf_count = 0;
while(1) {
int ret;
-
+
if (needAnotherBlock) {
if(e) {
calculate_gunzip_crc();
@@ -875,7 +875,7 @@ static int inflate_get_next_window(void)
method = inflate_block(&e);
needAnotherBlock = 0;
}
-
+
switch (method) {
case -1: ret = inflate_stored(0,0,0,0);
break;
@@ -920,7 +920,7 @@ extern int inflate_unzip(int in, int out)
make_gunzip_crc_table();
/* Allocate space for buffer */
- bytebuffer = xmalloc(bytebuffer_max);
+ bytebuffer = xmalloc(bytebuffer_max);
while(1) {
int ret = inflate_get_next_window();
@@ -977,6 +977,6 @@ extern int inflate_gunzip(int in, int out)
(bytebuffer[bytebuffer_offset+2] << 16) | (bytebuffer[bytebuffer_offset+3] << 24))) {
bb_error_msg("Incorrect length");
}
-
+
return 0;
}
diff --git a/archival/rpm.c b/archival/rpm.c
index eb2c0433b..30cdc93fb 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -204,12 +204,12 @@ void extract_cpio_gz(int fd) {
archive_handle->flags |= ARCHIVE_CREATE_LEADING_DIRS;
archive_handle->src_fd = fd;
archive_handle->offset = 0;
-
+
bb_xread_all(archive_handle->src_fd, &magic, 2);
if ((magic[0] != 0x1f) || (magic[1] != 0x8b)) {
bb_error_msg_and_die("Invalid gzip magic");
}
- check_header_gzip(archive_handle->src_fd);
+ check_header_gzip(archive_handle->src_fd);
chdir("/"); // Install RPM's to root
archive_handle->src_fd = open_transformer(archive_handle->src_fd, inflate_gunzip);
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index d0041a83c..7b5059518 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -89,7 +89,7 @@ extern int rpm2cpio_main(int argc, char **argv)
/* Skip the main header */
skip_header(rpm_fd);
-
+
bb_xread_all(rpm_fd, &magic, 2);
if ((magic[0] != 0x1f) || (magic[1] != 0x8b)) {
bb_error_msg_and_die("Invalid gzip magic");
diff --git a/archival/tar.c b/archival/tar.c
index cbd069425..2310e80cb 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * Mini tar implementation for busybox
+ * Mini tar implementation for busybox
*
* Modifed to use common extraction code used by ar, cpio, dpkg-deb, dpkg
* Glenn McGrath <bug1@optushome.com.au>
@@ -9,7 +9,7 @@
* ground up. It still has remnents of the old code lying about, but it is
* very different now (i.e., cleaner, less global variables, etc.)
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* Based in part in the tar implementation in sash
* Copyright (c) 1999 by David I. Bell
@@ -111,7 +111,7 @@ struct TarBallInfo {
for the tarball */
struct stat statBuf; /* Stat info for the tarball, letting
us know the inode and device that the
- tarball lives, so we can avoid trying
+ tarball lives, so we can avoid trying
to include the tarball into itself */
int verboseFlag; /* Whether to print extra stuff or not */
const llist_t *excludeList; /* List of files to not include */
@@ -470,7 +470,7 @@ static inline int writeTarFile(const int tar_fd, const int verboseFlag,
(void) &include;
(void) &errorFlag;
# endif
-
+
gzipPid = vfork();
if (gzipPid == 0) {
@@ -616,7 +616,7 @@ static char get_header_tar_Z(archive_handle_t *archive_handle)
#endif
#ifdef CONFIG_FEATURE_TAR_BZIP2
-# define TAR_OPT_BZIP2 (1 << (8 + TAR_OPT_FLAG_CREATE))
+# define TAR_OPT_BZIP2 (1 << (8 + TAR_OPT_FLAG_CREATE))
# define TAR_OPT_STR_BZIP2 "j"
# define TAR_OPT_FLAG_BZIP2 1
#else
@@ -646,7 +646,7 @@ static char get_header_tar_Z(archive_handle_t *archive_handle)
#ifdef CONFIG_FEATURE_TAR_COMPRESS
# define TAR_OPT_UNCOMPRESS (1 << (8 + TAR_OPT_FLAG_CREATE + TAR_OPT_FLAG_BZIP2 + TAR_OPT_FLAG_FROM + TAR_OPT_FLAG_GZIP))
# define TAR_OPT_STR_COMPRESS "Z"
-#else
+#else
# define TAR_OPT_STR_COMPRESS ""
#endif
@@ -740,7 +740,7 @@ int tar_main(int argc, char **argv)
bb_show_usage();
}
if(ctx_flag & CTX_TEST) {
- if ((tar_handle->action_header == header_list) ||
+ if ((tar_handle->action_header == header_list) ||
(tar_handle->action_header == header_verbose_list)) {
tar_handle->action_header = header_verbose_list;
} else {
@@ -756,8 +756,8 @@ int tar_main(int argc, char **argv)
tar_handle->action_data = data_extract_to_stdout;
}
if(opt & TAR_OPT_VERBOSE) {
- if ((tar_handle->action_header == header_list) ||
- (tar_handle->action_header == header_verbose_list))
+ if ((tar_handle->action_header == header_list) ||
+ (tar_handle->action_header == header_verbose_list))
{
tar_handle->action_header = header_verbose_list;
} else {
@@ -860,13 +860,13 @@ int tar_main(int argc, char **argv)
}
# endif /* CONFIG_FEATURE_TAR_BZIP2 */
- if ((tar_handle->action_header == header_list) ||
+ if ((tar_handle->action_header == header_list) ||
(tar_handle->action_header == header_verbose_list)) {
verboseFlag = TRUE;
}
writeTarFile(tar_handle->src_fd, verboseFlag, opt & TAR_OPT_DEREFERNCE, tar_handle->accept,
tar_handle->reject, gzipFlag);
- } else
+ } else
#endif /* CONFIG_FEATURE_TAR_CREATE */
{
while (get_header_ptr(tar_handle) == EXIT_SUCCESS);
diff --git a/console-tools/Makefile b/console-tools/Makefile
index d54c778d4..2ee51a5e6 100644
--- a/console-tools/Makefile
+++ b/console-tools/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/console-tools/Makefile.in b/console-tools/Makefile.in
index 032b194f6..1d756c721 100644
--- a/console-tools/Makefile.in
+++ b/console-tools/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index 8ea062cde..3398892f5 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -2,7 +2,7 @@
/*
* Mini chvt implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/console-tools/clear.c b/console-tools/clear.c
index 45976e1b5..e43ed0e02 100644
--- a/console-tools/clear.c
+++ b/console-tools/clear.c
@@ -2,7 +2,7 @@
/*
* Mini clear implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c
index 363ecdf12..08a9d2122 100644
--- a/console-tools/deallocvt.c
+++ b/console-tools/deallocvt.c
@@ -3,13 +3,13 @@
* Disallocate virtual terminal(s)
*
* Copyright (C) 2003 by Tito Ragusa <farmatito@tiscali.it>
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 19ba77d82..6085a446b 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -56,7 +56,7 @@ int dumpkmap_main(int argc, char **argv)
write(1, magic, 7);
for (i=0; i < MAX_NR_KEYMAPS; i++) flags[i]=0;
- flags[0]=1;
+ flags[0]=1;
flags[1]=1;
flags[2]=1;
flags[4]=1;
@@ -66,9 +66,9 @@ int dumpkmap_main(int argc, char **argv)
flags[9]=1;
flags[10]=1;
flags[12]=1;
-
+
/* dump flags */
- for (i=0; i < MAX_NR_KEYMAPS; i++) write(1,&flags[i],1);
+ for (i=0; i < MAX_NR_KEYMAPS; i++) write(1,&flags[i],1);
for (i = 0; i < MAX_NR_KEYMAPS; i++) {
if (flags[i] == 1) {
@@ -76,13 +76,13 @@ int dumpkmap_main(int argc, char **argv)
ke.kb_index = j;
ke.kb_table = i;
if (ioctl(fd, KDGKBENT, &ke) < 0) {
-
+
bb_error_msg("ioctl returned: %m, %s, %s, %xqq", (char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
}
else {
- write(1,(void*)&ke.kb_value,2);
- }
-
+ write(1,(void*)&ke.kb_value,2);
+ }
+
}
}
}
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c
index 5b2f31abc..849d747a6 100644
--- a/console-tools/loadkmap.c
+++ b/console-tools/loadkmap.c
@@ -75,7 +75,7 @@ int loadkmap_main(int argc, char **argv)
}
}
- /* Don't bother to close files. Exit does that
+ /* Don't bother to close files. Exit does that
* automagically, so we can save a few bytes */
/* close(fd); */
return EXIT_SUCCESS;
diff --git a/console-tools/openvt.c b/console-tools/openvt.c
index b0db33b33..5f244579c 100644
--- a/console-tools/openvt.c
+++ b/console-tools/openvt.c
@@ -56,7 +56,7 @@ int openvt_main(int argc, char **argv)
if (setsid() < 0) {
#endif
- bb_perror_msg_and_die("Unable to set new session");
+ bb_perror_msg_and_die("Unable to set new session");
}
close(0); /* so that new vt becomes stdin */
diff --git a/console-tools/reset.c b/console-tools/reset.c
index 3f9ae984d..9d38e7a28 100644
--- a/console-tools/reset.c
+++ b/console-tools/reset.c
@@ -2,7 +2,7 @@
/*
* Mini reset implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
* Written by Erik Andersen and Kent Robotti <robotti@metconnect.com>
*
* This program is free software; you can redistribute it and/or modify
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c
index 0a5366be9..169d0bb0a 100644
--- a/console-tools/setkeycodes.c
+++ b/console-tools/setkeycodes.c
@@ -35,7 +35,7 @@ struct kbkeycode {
};
static const int KDSETKEYCODE = 0x4B4D; /* write kernel keycode table entry */
-extern int
+extern int
setkeycodes_main(int argc, char** argv)
{
char *ep;
@@ -45,7 +45,7 @@ setkeycodes_main(int argc, char** argv)
if (argc % 2 != 1 || argc < 2) {
bb_show_usage();
}
-
+
fd = get_console_fd();
while (argc > 2) {
diff --git a/coreutils/Config.in b/coreutils/Config.in
index 900908a9e..5c0180a5e 100644
--- a/coreutils/Config.in
+++ b/coreutils/Config.in
@@ -10,7 +10,7 @@ config CONFIG_BASENAME
default n
help
basename is used to strip the directory and suffix from filenames,
- leaving just the filename itself. Enable this option if you wish
+ leaving just the filename itself. Enable this option if you wish
to enable the 'basename' utility.
config CONFIG_CAL
@@ -101,7 +101,7 @@ config CONFIG_DD
help
dd copies a file (from standard input to standard output,
by default) using specific input and output blocksizes,
- while optionally performing conversions on it.
+ while optionally performing conversions on it.
config CONFIG_DF
bool "df"
@@ -154,7 +154,7 @@ config CONFIG_FEATURE_FANCY_ECHO
default y
depends on CONFIG_ECHO
help
- This adds options (-n and -e) to echo.
+ This adds options (-n and -e) to echo.
config CONFIG_ENV
bool "env"
diff --git a/coreutils/Makefile b/coreutils/Makefile
index a5cdf6248..b42689a26 100644
--- a/coreutils/Makefile
+++ b/coreutils/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/coreutils/Makefile.in b/coreutils/Makefile.in
index 6c2547648..a5343c9c7 100644
--- a/coreutils/Makefile.in
+++ b/coreutils/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/coreutils/basename.c b/coreutils/basename.c
index 7fcdb8368..7b8b7b6f0 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -2,7 +2,7 @@
/*
* Mini basename implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/coreutils/cal.c b/coreutils/cal.c
index 786156253..cd7be0d30 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -161,7 +161,7 @@ int cal_main(int argc, char **argv)
int row, len, days[MAXDAYS];
int *dp = days;
char lineout[30];
-
+
day_array(month, year, dp);
len = sprintf(lineout, "%s %d", month_names[month - 1], year);
bb_printf("%*s%s\n%s\n",
@@ -176,7 +176,7 @@ int cal_main(int argc, char **argv)
int row, which_cal, week_len, days[12][MAXDAYS];
int *dp;
char lineout[80];
-
+
sprintf(lineout, "%d", year);
center(lineout,
(WEEK_LEN * 3 + HEAD_SEP * 2)
@@ -317,7 +317,7 @@ static void blank_string(char *buf, size_t buflen)
static char *build_row(char *p, int *dp)
{
int col, val, day;
-
+
memset(p, ' ', (julian + DAY_LEN) * 7);
col = 0;
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c
index 93e493869..8cfb54241 100644
--- a/coreutils/chgrp.c
+++ b/coreutils/chgrp.c
@@ -2,7 +2,7 @@
/*
* Mini chgrp implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -63,7 +63,7 @@ int chgrp_main(int argc, char **argv)
/* Ok, ready to do the deed now */
do {
- if (! recursive_action (*argv, recursiveFlag, FALSE, FALSE,
+ if (! recursive_action (*argv, recursiveFlag, FALSE, FALSE,
fileAction, fileAction, &gid)) {
retval = EXIT_FAILURE;
}
diff --git a/coreutils/chmod.c b/coreutils/chmod.c
index 390cc6d2c..0cb888628 100644
--- a/coreutils/chmod.c
+++ b/coreutils/chmod.c
@@ -2,7 +2,7 @@
/*
* Mini chmod implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* Reworked by (C) 2002 Vladimir Oleynik <dzo@simtreas.ru>
* to correctly parse '-rwxgoa'
diff --git a/coreutils/chown.c b/coreutils/chown.c
index 07d673f28..638745f17 100644
--- a/coreutils/chown.c
+++ b/coreutils/chown.c
@@ -2,7 +2,7 @@
/*
* Mini chown implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -84,10 +84,10 @@ int chown_main(int argc, char **argv)
uid = get_ug_id(*argv, my_getpwnam);
++argv;
-
+
/* Ok, ready to do the deed now */
do {
- if (! recursive_action (*argv, (flags & FLAG_R), FALSE, FALSE,
+ if (! recursive_action (*argv, (flags & FLAG_R), FALSE, FALSE,
fileAction, fileAction, NULL)) {
retval = EXIT_FAILURE;
}
diff --git a/coreutils/chroot.c b/coreutils/chroot.c
index eeed01302..62257021d 100644
--- a/coreutils/chroot.c
+++ b/coreutils/chroot.c
@@ -2,7 +2,7 @@
/*
* Mini chroot implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/coreutils/cut.c b/coreutils/cut.c
index 34ec3690c..d9f8161f3 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -3,7 +3,7 @@
* cut.c - minimalist version of cut
*
* Copyright (C) 1999,2000,2001 by Lineo, inc.
- * Written by Mark Whitley <markw@lineo.com>, <markw@codepoet.org>
+ * Written by Mark Whitley <markw@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -69,7 +69,7 @@ static int cmpfunc(const void *a, const void *b)
/*
* parse_lists() - parses a list and puts values into startpos and endpos.
- * valid list formats: N, N-, N-M, -M
+ * valid list formats: N, N-, N-M, -M
* more than one list can be seperated by commas
*/
static void parse_lists(char *lists)
@@ -96,7 +96,7 @@ static void parse_lists(char *lists)
s = strtoul(ntok, &junk, 10);
if(*junk != '\0' || s < 0)
bb_error_msg_and_die("invalid byte or field list");
-
+
/* account for the fact that arrays are zero based, while the user
* expects the first char on the line to be char # 1 */
if (s != 0)
@@ -125,7 +125,7 @@ static void parse_lists(char *lists)
/* if there's something left to tokenize, the user past an invalid list */
if (ltok)
bb_error_msg_and_die("invalid byte or field list");
-
+
/* add the new list */
cut_lists = xrealloc(cut_lists, sizeof(struct cut_list) * (++nlists));
cut_lists[nlists-1].startpos = s;
@@ -227,7 +227,7 @@ static void cut_file_by_lines(const char *line, unsigned int linenum)
{
static int c = 0;
static int l = -1;
-
+
/* I can't initialize this above cuz the "initializer isn't
* constant" *sigh* */
if (l == -1)
diff --git a/coreutils/date.c b/coreutils/date.c
index a6b595e57..9c763299f 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -3,7 +3,7 @@
* Mini date implementation for busybox
*
* by Matthew Grant <grantma@anathoth.gen.nz>
- *
+ *
* iso-format handling added by Robert Griebl <griebl@gmx.de>
*
* This program is free software; you can redistribute it and/or modify
@@ -33,7 +33,7 @@
#include "busybox.h"
-/* This 'date' command supports only 2 time setting formats,
+/* This 'date' command supports only 2 time setting formats,
all the GNU strftime stuff (its in libc, lets use it),
setting time using UTC and displaying int, as well as
an RFC 822 complient date output for shell scripting
diff --git a/coreutils/df.c b/coreutils/df.c
index 9c0d13f62..9d53f2bc4 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -2,7 +2,7 @@
/*
* Mini df implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
* based on original code by (I think) Bruce Perens <bruce@pixar.com>.
*
* This program is free software; you can redistribute it and/or modify
@@ -51,7 +51,7 @@ extern int df_main(int argc, char **argv)
long blocks_used;
long blocks_percent_used;
#ifdef CONFIG_FEATURE_HUMAN_READABLE
- unsigned long df_disp_hr = KILOBYTE;
+ unsigned long df_disp_hr = KILOBYTE;
#endif
int status = EXIT_SUCCESS;
unsigned long opt;
@@ -115,7 +115,7 @@ extern int df_main(int argc, char **argv)
bb_perror_msg("%s", mount_point);
goto SET_ERROR;
}
-
+
if ((s.f_blocks > 0) || !mount_table){
blocks_used = s.f_blocks - s.f_bfree;
blocks_percent_used = 0;
@@ -124,7 +124,7 @@ extern int df_main(int argc, char **argv)
+ (blocks_used + s.f_bavail)/2
) / (blocks_used + s.f_bavail);
}
-
+
if (strcmp(device, "rootfs") == 0) {
continue;
} else if (strcmp(device, "/dev/root") == 0) {
@@ -134,15 +134,15 @@ extern int df_main(int argc, char **argv)
goto SET_ERROR;
}
}
-
+
#ifdef CONFIG_FEATURE_HUMAN_READABLE
bb_printf("%-21s%9s ", device,
make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr));
-
+
bb_printf("%9s ",
make_human_readable_str( (s.f_blocks - s.f_bfree),
s.f_bsize, df_disp_hr));
-
+
bb_printf("%9s %3ld%% %s\n",
make_human_readable_str(s.f_bavail, s.f_bsize, df_disp_hr),
blocks_percent_used, mount_point);
diff --git a/coreutils/dirname.c b/coreutils/dirname.c
index d0c42b603..5136e4909 100644
--- a/coreutils/dirname.c
+++ b/coreutils/dirname.c
@@ -2,7 +2,7 @@
/*
* Mini dirname implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index c28e6a8b9..a21ed5bc3 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -50,7 +50,7 @@ typedef unsigned long int bb_uint64_t;
static const char letters[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
// if fn is NULL then input is stdin and output is stdout
-static int convert(char *fn, int ConvType)
+static int convert(char *fn, int ConvType)
{
int c, fd;
struct timeval tv;
@@ -156,12 +156,12 @@ static int convert(char *fn, int ConvType)
return 0;
}
-int dos2unix_main(int argc, char *argv[])
+int dos2unix_main(int argc, char *argv[])
{
int ConvType = CT_AUTO;
int o;
- //See if we are supposed to be doing dos2unix or unix2dos
+ //See if we are supposed to be doing dos2unix or unix2dos
if (argv[0][0]=='d') {
ConvType = CT_DOS2UNIX;
}
diff --git a/coreutils/du.c b/coreutils/du.c
index df75a6953..bfa44034a 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -181,7 +181,7 @@ int du_main(int argc, char **argv)
#else
disp_k = 0;
#endif
- }
+ }
#endif
/* Note: SUSv3 specifies that -a and -s options can not be used together
diff --git a/coreutils/echo.c b/coreutils/echo.c
index b600a1fbd..26a6fbf81 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -55,7 +55,7 @@ extern int echo_main(int argc, char** argv)
* that all of the options specified are actually valid.
* Otherwise, the string should just be echoed.
*/
-
+
if (!*(p = *argv + 1)) { /* A single '-', so echo it. */
goto just_echo;
}
@@ -87,7 +87,7 @@ just_echo:
while ((c = *(*argv)++)) {
if (c == eflag) { /* Check for escape seq. */
if (**argv == 'c') {
- /* '\c' means cancel newline and
+ /* '\c' means cancel newline and
* ignore all subsequent chars. */
goto DONE;
}
@@ -141,8 +141,8 @@ DONE:
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
+ * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
+ * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
*
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
diff --git a/coreutils/expr.c b/coreutils/expr.c
index 77d603b88..e5816371a 100644
--- a/coreutils/expr.c
+++ b/coreutils/expr.c
@@ -5,7 +5,7 @@
* based on GNU expr Mike Parker.
* Copyright (C) 86, 1991-1997, 1999 Free Software Foundation, Inc.
*
- * Busybox modifications
+ * Busybox modifications
* Copyright (c) 2000 Edward Betts <edward@debian.org>.
* Aug 2003 Vladimir Oleynik - reduced 464 bytes.
*
diff --git a/coreutils/false.c b/coreutils/false.c
index a07b99d95..5cf238409 100644
--- a/coreutils/false.c
+++ b/coreutils/false.c
@@ -2,7 +2,7 @@
/*
* Mini false implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/coreutils/id.c b/coreutils/id.c
index 971e7cdad..602b26ec3 100644
--- a/coreutils/id.c
+++ b/coreutils/id.c
@@ -47,7 +47,7 @@ extern int id_main(int argc, char **argv)
#ifdef CONFIG_SELINUX
int is_flask_enabled_flag = is_flask_enabled();
#endif
-
+
flags = bb_getopt_ulflags(argc, argv, "ugrn");
if (((flags & (JUST_USER | JUST_GROUP)) == (JUST_USER | JUST_GROUP))
diff --git a/coreutils/install.c b/coreutils/install.c
index 82773b8de..305e02b0d 100644
--- a/coreutils/install.c
+++ b/coreutils/install.c
@@ -48,7 +48,7 @@ static const struct option install_long_options[] = {
{ "owner", 0, NULL, 'o' },
{ 0, 0, 0, 0 }
};
-
+
extern int install_main(int argc, char **argv)
{
struct stat statbuf;
@@ -116,7 +116,7 @@ extern int install_main(int argc, char **argv)
}
return(ret);
}
-
+
cp_mv_stat2(argv[argc - 1], &statbuf, lstat);
for (i = optind; i < argc - 1; i++) {
unsigned char *dest;
@@ -137,15 +137,15 @@ extern int install_main(int argc, char **argv)
/* Set the user and group id */
if (lchown(dest, uid, gid) == -1) {
bb_perror_msg("cannot change ownership of %s", dest);
- ret = EXIT_FAILURE;
+ ret = EXIT_FAILURE;
}
if (flags & INSTALL_OPT_STRIP) {
if (execlp("strip", "strip", dest, NULL) == -1) {
bb_error_msg("strip failed");
- ret = EXIT_FAILURE;
+ ret = EXIT_FAILURE;
}
}
}
-
+
return(ret);
}
diff --git a/coreutils/libcoreutils/Makefile b/coreutils/libcoreutils/Makefile
index b3a4e79b6..11867c602 100644
--- a/coreutils/libcoreutils/Makefile
+++ b/coreutils/libcoreutils/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/coreutils/libcoreutils/Makefile.in b/coreutils/libcoreutils/Makefile.in
index a7481d40a..d0e8b3a05 100644
--- a/coreutils/libcoreutils/Makefile.in
+++ b/coreutils/libcoreutils/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/coreutils/ln.c b/coreutils/ln.c
index 7c282b001..885ba61db 100644
--- a/coreutils/ln.c
+++ b/coreutils/ln.c
@@ -2,7 +2,7 @@
/*
* Mini ln implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -88,14 +88,14 @@ extern int ln_main(int argc, char **argv)
if (flag & LN_SYMLINK) {
link_func = symlink;
}
-
+
if (link_func(*argv, src) != 0) {
bb_perror_msg(src);
status = EXIT_FAILURE;
}
free(src_name);
-
+
} while ((++argv)[1]);
return status;
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 2605ab12d..f7fa9a110 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -315,7 +315,7 @@ static int count_dirs(struct dnode **dn, int nfiles, int notsubdirs)
if (S_ISDIR(dn[i]->dstat.st_mode)
&& (notsubdirs
|| ((dn[i]->name[0] != '.')
- || (dn[i]->name[1]
+ || (dn[i]->name[1]
&& ((dn[i]->name[1] != '.')
|| dn[i]->name[2])))))
dirs++;
@@ -1055,7 +1055,7 @@ extern int ls_main(int argc, char **argv)
if ((all_fmt & STYLE_MASK) == STYLE_LONG && (all_fmt & LIST_ID_NUMERIC))
all_fmt &= ~LIST_ID_NAME; /* don't list names if numeric uid */
#endif
-
+
/* choose a display format */
if ((all_fmt & STYLE_MASK) == STYLE_AUTO)
#if STYLE_AUTO != 0
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index 83f6da180..64e069374 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2003 Glenn L. McGrath
- * Copyright (C) 2003 Erik Andersen
- *
+ * Copyright (C) 2003-2004 Erik Andersen
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
diff --git a/coreutils/mknod.c b/coreutils/mknod.c
index d5e9e17fe..7b2467b8f 100644
--- a/coreutils/mknod.c
+++ b/coreutils/mknod.c
@@ -50,7 +50,7 @@ extern int mknod_main(int argc, char **argv)
dev = (bb_xgetularg10_bnd(argv[2], 0, 255) << 8)
+ bb_xgetularg10_bnd(argv[3], 0, 255);
}
-
+
if (argc == 2) {
name = *argv;
if (mknod(name, mode, dev) == 0) {
diff --git a/coreutils/mv.c b/coreutils/mv.c
index c28d0500e..4f08dedc0 100644
--- a/coreutils/mv.c
+++ b/coreutils/mv.c
@@ -75,7 +75,7 @@ extern int mv_main(int argc, char **argv)
goto DO_MOVE;
}
}
-
+
do {
dest = concat_path_file(last, bb_get_last_path_component(*argv));
@@ -84,7 +84,7 @@ extern int mv_main(int argc, char **argv)
}
DO_MOVE:
-
+
if (dest_exists && !(flags & OPT_FILEUTILS_FORCE) &&
((access(dest, W_OK) < 0 && isatty(0)) ||
(flags & OPT_FILEUTILS_INTERACTIVE))) {
@@ -119,7 +119,7 @@ DO_MOVE:
bb_perror_msg("cannot remove `%s'", dest);
goto RET_1;
}
- }
+ }
if ((copy_file(*argv, dest,
FILEUTILS_RECUR | FILEUTILS_PRESERVE_STATUS) >= 0) &&
(remove_file(*argv, FILEUTILS_RECUR | FILEUTILS_FORCE) >= 0)) {
@@ -132,7 +132,7 @@ RET_1:
RET_0:
if (dest != last) {
free((void *) dest);
- }
+ }
} while (*++argv != last);
return (status);
diff --git a/coreutils/printf.c b/coreutils/printf.c
index 76f59686b..053b01ee5 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -106,7 +106,7 @@ static int print_esc __P((char *escstart));
static int print_formatted __P((char *format, int argc, char **argv));
static long xstrtol __P((char *s));
static unsigned long xstrtoul __P((char *s));
-static void print_direc __P( (char *start, size_t length,
+static void print_direc __P( (char *start, size_t length,
int field_width, int precision, char *argument));
static void print_esc_char __P((int c));
static void print_esc_string __P((char *str));
@@ -214,7 +214,7 @@ static int print_formatted(char *format, int argc, char **argv)
++f;
++direc_length;
}
- /*
+ /*
if (!strchr ("diouxXfeEgGcs", *f))
fprintf(stderr, "%%%c: invalid directive", *f);
*/
diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c
index 3f6037170..a10e5bb4f 100644
--- a/coreutils/rmdir.c
+++ b/coreutils/rmdir.c
@@ -66,7 +66,7 @@ extern int rmdir_main(int argc, char **argv)
}
break;
} while (1);
-
+
} while (*++argv);
return status;
diff --git a/coreutils/tail.c b/coreutils/tail.c
index d588ccdd1..b18064a38 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -118,7 +118,7 @@ int tail_main(int argc, char **argv)
/* Allow legacy syntax of an initial numeric option without -n. */
if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-')
/* && (isdigit)(argv[1][1]) */
- && (((unsigned int)(argv[1][1] - '0')) <= 9))))
+ && (((unsigned int)(argv[1][1] - '0')) <= 9))))
{
optind = 2;
optarg = argv[1];
diff --git a/coreutils/tee.c b/coreutils/tee.c
index 73c2f8e9d..bb2896663 100644
--- a/coreutils/tee.c
+++ b/coreutils/tee.c
@@ -97,7 +97,7 @@ int tee_main(int argc, char **argv)
}
#endif
- /* Now we need to check for i/o errors on stdin and the various
+ /* Now we need to check for i/o errors on stdin and the various
* output files. Since we know that the first entry in the output
* file table is stdout, we can save one "if ferror" test by
* setting the first entry to stdin and checking stdout error
diff --git a/coreutils/test.c b/coreutils/test.c
index 2ad326ea6..419da5101 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -2,7 +2,7 @@
/*
* test implementation for busybox
*
- * Copyright (c) by a whole pile of folks:
+ * Copyright (c) by a whole pile of folks:
*
* test(1); version 7-like -- author Erik Baalbergen
* modified by Eric Gisin to be used as built-in.
@@ -10,7 +10,7 @@
* (-x -c -b -p -u -g -k) plus Korn's -L -nt -ot -ef and new -S (socket).
* modified by J.T. Conklin for NetBSD.
* modified by Herbert Xu to be used as built-in in ash.
- * modified by Erik Andersen <andersen@codepoet.org> to be used
+ * modified by Erik Andersen <andersen@codepoet.org> to be used
* in busybox.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/coreutils/touch.c b/coreutils/touch.c
index 3d780e167..645fb2174 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -2,7 +2,7 @@
/*
* Mini touch implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/coreutils/tr.c b/coreutils/tr.c
index 958fc80b8..1325245b8 100644
--- a/coreutils/tr.c
+++ b/coreutils/tr.c
@@ -4,7 +4,7 @@
*
* Copyright (c) Michiel Huisjes
*
- * This version of tr is adapted from Minix tr and was modified
+ * This version of tr is adapted from Minix tr and was modified
* by Erik Andersen <andersen@codepoet.org> to be used in busybox.
*
* This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
+ *
* Original copyright notice is retained at the end of this file.
*/
@@ -213,24 +213,24 @@ extern int tr_main(int argc, char **argv)
/*
* Copyright (c) 1987,1997, Prentice Hall
* All rights reserved.
- *
+ *
* Redistribution and use of the MINIX operating system in source and
* binary forms, with or without modification, are permitted provided
* that the following conditions are met:
- *
+ *
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
- *
+ *
* Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
- *
+ *
* Neither the name of Prentice Hall nor the names of the software
* authors or contributors may be used to endorse or promote
* products derived from this software without specific prior
* written permission.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS, AUTHORS, AND
* CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
diff --git a/coreutils/true.c b/coreutils/true.c
index d19e749aa..3e7eb0111 100644
--- a/coreutils/true.c
+++ b/coreutils/true.c
@@ -2,7 +2,7 @@
/*
* Mini true implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index 1734ed419..96da7caf3 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -18,7 +18,7 @@
* Based on specification from
* http://www.opengroup.org/onlinepubs/007904975/utilities/uuencode.html
*
- * Bugs: the spec doesnt mention anything about "`\n`\n" prior to the "end" line
+ * Bugs: the spec doesnt mention anything about "`\n`\n" prior to the "end" line
*/
@@ -50,7 +50,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
if (length > 60) {
bb_error_msg_and_die("Line too long");
}
-
+
line_ptr++;
/* Tolerate an overly long line to acomadate a possible exta '`' */
if (strlen(line_ptr) < length) {
diff --git a/coreutils/wc.c b/coreutils/wc.c
index 779901524..0eb795c4b 100644
--- a/coreutils/wc.c
+++ b/coreutils/wc.c
@@ -26,7 +26,7 @@
/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
*
* Rewritten to fix a number of problems and do some size optimizations.
- * Problems in the previous busybox implementation (besides bloat) included:
+ * Problems in the previous busybox implementation (besides bloat) included:
* 1) broken 'wc -c' optimization (read note below)
* 2) broken handling of '-' args
* 3) no checking of ferror on EOF returns
@@ -110,33 +110,33 @@ int wc_main(int argc, char **argv)
char status = EXIT_SUCCESS;
char in_word;
char print_type;
-
+
print_type = bb_getopt_ulflags(argc, argv, wc_opts);
-
+
if (print_type == 0) {
print_type = (1 << WC_LINES) | (1 << WC_WORDS) | (1 << WC_CHARS);
}
-
+
argv += optind;
if (!*argv) {
*--argv = (char *) bb_msg_standard_input;
}
-
+
memset(totals, 0, sizeof(totals));
-
+
pcounts = counts;
-
+
do {
++num_files;
if (!(fp = bb_wfopen_input(*argv))) {
status = EXIT_FAILURE;
continue;
}
-
+
memset(counts, 0, sizeof(counts));
linepos = 0;
in_word = 0;
-
+
do {
++counts[WC_CHARS];
c = getc(fp);
@@ -177,21 +177,21 @@ int wc_main(int argc, char **argv)
} else {
continue;
}
-
+
counts[WC_WORDS] += in_word;
in_word = 0;
if (c == EOF) {
break;
}
} while (1);
-
+
if (totals[WC_LENGTH] < counts[WC_LENGTH]) {
totals[WC_LENGTH] = counts[WC_LENGTH];
}
totals[WC_LENGTH] -= counts[WC_LENGTH];
-
+
bb_fclose_nonstdin(fp);
-
+
OUTPUT:
s = fmt_str + 1; /* Skip the leading space on 1st pass. */
u = 0;
@@ -202,16 +202,16 @@ int wc_main(int argc, char **argv)
}
totals[u] += pcounts[u];
} while (++u < 4);
-
+
s += 8; /* Set the format to the empty string. */
-
+
if (*argv != bb_msg_standard_input) {
s -= 3; /* We have a name, so do %s conversion. */
}
bb_printf(s, *argv);
-
+
} while (*++argv);
-
+
/* If more than one file was processed, we want the totals. To save some
* space, we set the pcounts ptr to the totals array. This has the side
* effect of trashing the totals array after outputting it, but that's
@@ -222,6 +222,6 @@ int wc_main(int argc, char **argv)
pcounts = totals;
goto OUTPUT;
}
-
+
bb_fflush_stdout_and_exit(status);
}
diff --git a/coreutils/who.c b/coreutils/who.c
index 1bf552056..9561db132 100644
--- a/coreutils/who.c
+++ b/coreutils/who.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*----------------------------------------------------------------------
- * Mini who is used to display user name, login time,
+ * Mini who is used to display user name, login time,
* idle time and host name.
*
* Author: Da Chen <dchen@ayrnetworks.com>
@@ -10,7 +10,7 @@
* as published by the Free Software Foundation:
* http://www.gnu.org/copyleft/gpl.html
*
- * Copyright (c) 2002 AYR Networks, Inc.
+ * Copyright (c) 2002 AYR Networks, Inc.
*----------------------------------------------------------------------
*/
@@ -30,21 +30,21 @@ extern int who_main(int argc, char **argv)
struct utmp *ut;
struct stat st;
int devlen, len;
- time_t now, idle;
+ time_t now, idle;
- if (argc > 1)
+ if (argc > 1)
bb_show_usage();
setutent();
devlen = sizeof("/dev/") - 1;
- printf("USER TTY IDLE FROM HOST\n");
+ printf("USER TTY IDLE FROM HOST\n");
while ((ut = getutent()) != NULL) {
char name[40];
- if (ut->ut_user[0] && ut->ut_type == USER_PROCESS) {
+ if (ut->ut_user[0] && ut->ut_type == USER_PROCESS) {
len = strlen(ut->ut_line);
- if (ut->ut_line[0] == '/') {
+ if (ut->ut_line[0] == '/') {
strncpy(name, ut->ut_line, len);
name[len] = '\0';
strcpy(ut->ut_line, ut->ut_line + devlen);
@@ -53,27 +53,27 @@ extern int who_main(int argc, char **argv)
strncpy(name+devlen, ut->ut_line, len);
name[devlen+len] = '\0';
}
-
+
printf("%-10s %-8s ", ut->ut_user, ut->ut_line);
if (stat(name, &st) == 0) {
- now = time(NULL);
+ now = time(NULL);
idle = now - st.st_atime;
-
+
if (idle < 60)
printf("00:00m ");
- else if (idle < (60 * 60))
+ else if (idle < (60 * 60))
printf("00:%02dm ", (int)(idle / 60));
- else if (idle < (24 * 60 * 60))
+ else if (idle < (24 * 60 * 60))
printf("%02d:%02dm ", (int)(idle / (60 * 60)),
(int)(idle % (60 * 60)) / 60);
- else if (idle < (24 * 60 * 60 * 365))
+ else if (idle < (24 * 60 * 60 * 365))
printf("%03ddays ", (int)(idle / (24 * 60 * 60)));
- else
+ else
printf("%02dyears ", (int) (idle / (24 * 60 * 60 * 365)));
- } else
- printf("%-8s ", "?");
-
+ } else
+ printf("%-8s ", "?");
+
printf("%-12.12s %s\n", ctime(&(ut->ut_tv.tv_sec)) + 4, ut->ut_host);
}
}
diff --git a/debian/changelog b/debian/changelog
index 22d3ccb05..d9f82e376 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -100,7 +100,7 @@ busybox-cvs (0.60.99.cvs20030426-10) unstable; urgency=low
busybox-cvs (0.60.99.cvs20030426-9) unstable; urgency=low
* modutils/depmod.c
- - fix base_dir for modules.dep
+ - fix base_dir for modules.dep
-- Bastian Blank <waldi@debian.org> Sat, 07 Jun 2003 14:52:54 +0200
@@ -236,13 +236,13 @@ busybox-cvs (0.60.99.cvs20030114-1) unstable; urgency=low
busybox-cvs (0.60.99.cvs20030105-1) unstable; urgency=low
* Fix ip command build failure on ia64 (Closes: #172580
- * Dont build with BSD partition table support in fdisk, fails on m68k
+ * Dont build with BSD partition table support in fdisk, fails on m68k
-- Glenn McGrath <bug1@home> Sun, 5 Jan 2003 12:48:05 +1100
busybox-cvs (0.60.99.cvs20030104-2) unstable; urgency=low
- * floppy-retriever needs the cut command in the udeb
+ * floppy-retriever needs the cut command in the udeb
-- Glenn McGrath <bug1@debian.org> Sat, 4 Jan 2003 17:13:05 +1100
@@ -380,7 +380,7 @@ busybox (1:0.51-4) unstable; urgency=low
busybox (1:0.51-3) unstable; urgency=low
* This is the "I am an idiot" release.
- * Make cp and mv work again (closes: #97290)
+ * Make cp and mv work again (closes: #97290)
* Fix the version number.
-- Erik Andersen <andersee@debian.org> Sat, 12 May 2001 17:35:58 -0600
@@ -401,13 +401,13 @@ busybox (0.51-1) unstable; urgency=low
for complete details)
* Force USE_SYSTEM_PWD_GRP=false, so busybox bypasses
the glibc NSS libraries. (closes: #93362)
- * Fixed a bug in sed's address range handling (closes: #91758)
+ * Fixed a bug in sed's address range handling (closes: #91758)
* Removed irrelevant cruft from the bottem of debian/changelog
-- Erik Andersen <andersee@debian.org> Tue, 10 Apr 2001 14:07:29 -0600
busybox (0.50-2) unstable; urgency=low
-
+
* Enabled freeramdisk and pivot_root in the udeb (closes: #91336)
* Disabled lash (the busybox shell) in the udeb (closes: #91337)
* fixed a bug in syslog, a problem with rebooting when booted as
@@ -417,7 +417,7 @@ busybox (0.50-2) unstable; urgency=low
busybox (0.50-2) unstable; urgency=low
-
+
* Enabled freeramdisk and pivot_root in the udeb (closes: #91336)
* Disabled lash (the busybox shell) in the udeb (closes: #91337)
* fixed a bug in syslog, a problem with rebooting when booted as
@@ -446,7 +446,7 @@ busybox (0.49-1) unstable; urgency=low
busybox (0.48-1) unstable; urgency=low
* Lots more source updates and bug fixes. See changelog for details.
- * Now includes .udeb support for the debian-installer. The .udeb
+ * Now includes .udeb support for the debian-installer. The .udeb
probably needs some more work, but this should be a good start.
-- Erik Andersen <andersee@debian.org> Wed, 13 Dec 2000 08:36:07 -0700
@@ -465,11 +465,11 @@ busybox (0.46-1) unstable; urgency=low
busybox (0.45-1) unstable; urgency=low
- * First attempt at packaging BusyBox as a .deb. This has been in
+ * First attempt at packaging BusyBox as a .deb. This has been in
in the Debian boot-floppies CVS tree forever. Hopefully, having it as a
standalone app will make life easier for me, the debian-installer team, and
everyone else as well...
- * I have created a busybox-static that can be used as a rescue shell when you
+ * I have created a busybox-static that can be used as a rescue shell when you
hose your system. Just invoke "busybox sh" to fir up the shell. This has
every app provided by busybox staically linked in. There have been several
times in the past that I would have loved to have this sitting on my system
diff --git a/debian/control b/debian/control
index 232408048..391a02dcf 100644
--- a/debian/control
+++ b/debian/control
@@ -64,7 +64,7 @@ Description: Tiny utilities for the debian-installer
counterparts.
.
busybox-udeb is used by the debian-installer, so unless you are working
- on the debian-installer, this package is not for you. Installing this
+ on the debian-installer, this package is not for you. Installing this
on your Debian system is a very, very bad idea. You have been warned.
Package: busybox-cvs-floppy-udeb
@@ -83,6 +83,6 @@ Description: Tiny utilities for the debian-installer floppy images
counterparts.
.
busybox-udeb is used by the debian-installer, so unless you are working
- on the debian-installer, this package is not for you. Installing this
+ on the debian-installer, this package is not for you. Installing this
on your Debian system is a very, very bad idea. You have been warned.
diff --git a/debianutils/Config.in b/debianutils/Config.in
index 399ccae6b..7cf7cadb5 100644
--- a/debianutils/Config.in
+++ b/debianutils/Config.in
@@ -33,7 +33,7 @@ config CONFIG_RUN_PARTS
It is useful to set up a directory like cron.daily, where you need to
execute all the scripts in that directory.
- In this implementation of run-parts some features (such as report mode)
+ In this implementation of run-parts some features (such as report mode)
are not implemented.
Unless you know that run-parts is used in some of your scripts
diff --git a/debianutils/Makefile b/debianutils/Makefile
index 13181eadb..0282b83c4 100644
--- a/debianutils/Makefile
+++ b/debianutils/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/debianutils/Makefile.in b/debianutils/Makefile.in
index 46530174f..dabef27ef 100644
--- a/debianutils/Makefile.in
+++ b/debianutils/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/debianutils/mktemp.c b/debianutils/mktemp.c
index ecc985fb2..9fdf79bfa 100644
--- a/debianutils/mktemp.c
+++ b/debianutils/mktemp.c
@@ -40,7 +40,7 @@ extern int mktemp_main(int argc, char **argv)
}
else if (opt != 'q') {
bb_show_usage();
- }
+ }
}
if (optind + 1 != argc) {
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c
index 53d33cec5..6205595bf 100644
--- a/debianutils/run_parts.c
+++ b/debianutils/run_parts.c
@@ -8,7 +8,7 @@
* Based on the Debian run-parts program, version 1.15
* Copyright (C) 1996 Jeff Noxon <jeff@router.patch.net>,
* Copyright (C) 1996-1999 Guy Maor <maor@debian.org>
- *
+ *
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -31,21 +31,21 @@
* attempt to write a program! :-) . */
/* This piece of code is heavily based on the original version of run-parts,
- * taken from debian-utils. I've only removed the long options and a the
+ * taken from debian-utils. I've only removed the long options and a the
* report mode. As the original run-parts support only long options, I've
- * broken compatibility because the BusyBox policy doesn't allow them.
- * The supported options are:
+ * broken compatibility because the BusyBox policy doesn't allow them.
+ * The supported options are:
* -t test. Print the name of the files to be executed, without
* execute them.
- * -a ARG argument. Pass ARG as an argument the program executed. It can
+ * -a ARG argument. Pass ARG as an argument the program executed. It can
* be repeated to pass multiple arguments.
* -u MASK umask. Set the umask of the program executed to MASK. */
-/* TODO
+/* TODO
* done - convert calls to error in perror... and remove error()
- * done - convert malloc/realloc to their x... counterparts
+ * done - convert malloc/realloc to their x... counterparts
* done - remove catch_sigchld
- * done - use bb's concat_path_file()
+ * done - use bb's concat_path_file()
* done - declare run_parts_main() as extern and any other function as static?
*/
@@ -85,7 +85,7 @@ int run_parts_main(int argc, char **argv)
/* Set the umask of the programs executed */
case 'u':
/* Check and set the umask of the program executed. As stated in the original
- * run-parts, the octal conversion in libc is not foolproof; it will take the
+ * run-parts, the octal conversion in libc is not foolproof; it will take the
* 8 and 9 digits under some circumstances. We'll just have to live with it.
*/
umask(bb_xgetlarg(optarg, 8, 0, 07777));
diff --git a/debianutils/which.c b/debianutils/which.c
index ccfd16344..999dded36 100644
--- a/debianutils/which.c
+++ b/debianutils/which.c
@@ -2,7 +2,7 @@
/*
* Which implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -53,7 +53,7 @@ extern int which_main(int argc, char **argv)
count = 5;
}
- while (argc-- > 0) {
+ while (argc-- > 0) {
char *buf;
char *path_n;
char found = 0;
diff --git a/docs/busybox.net/about.html b/docs/busybox.net/about.html
index 9242e759e..c08626386 100644
--- a/docs/busybox.net/about.html
+++ b/docs/busybox.net/about.html
@@ -26,7 +26,7 @@ nodes in /dev, a few configuration files in /etc, and a Linux kernel.
BusyBox is maintained by <a href=
"http://codepoet.org/andersen/erik/erik.html">Erik Andersen</a>, and
-licensed under the
+licensed under the
<a href= "http://www.gnu.org/copyleft/gpl.html">GNU GENERAL PUBLIC LICENSE</a>
<p>
@@ -37,7 +37,7 @@ licensed under the
Please visit our sponsors and thank them for their
support! They have provided money for equipment and
bandwidth. Next time you need help with a project,
-consider these fine companies!
+consider these fine companies!
<ul>
@@ -57,7 +57,7 @@ consider these fine companies!
</ul>
If you wish to be a sponsor, or if you have already contributed and would like
-your name added here, email <a href= "mailto:andersen@codepoet.org">Erik</a>.
+your name added here, email <a href= "mailto:andersen@codepoet.org">Erik</a>.
<!--#include file="footer.html" -->
diff --git a/docs/busybox.net/busybox-growth.ps b/docs/busybox.net/busybox-growth.ps
index 123f38114..2379defa4 100644
--- a/docs/busybox.net/busybox-growth.ps
+++ b/docs/busybox.net/busybox-growth.ps
@@ -213,7 +213,7 @@ gnudict begin
/PentE { stroke [] 0 setdash gsave
translate 0 hpt M 4 {72 rotate 0 hpt L} repeat
closepath stroke grestore } def
-/CircE { stroke [] 0 setdash
+/CircE { stroke [] 0 setdash
hpt 0 360 arc stroke } def
/Opaque { gsave closepath 1 setgray fill grestore 0 setgray closepath } def
/DiaW { stroke [] 0 setdash vpt add M
@@ -233,7 +233,7 @@ gnudict begin
/PentW { stroke [] 0 setdash gsave
translate 0 hpt M 4 {72 rotate 0 hpt L} repeat
Opaque stroke grestore } def
-/CircW { stroke [] 0 setdash
+/CircW { stroke [] 0 setdash
hpt 0 360 arc Opaque stroke } def
/BoxFill { gsave Rec 1 setgray fill grestore } def
end
diff --git a/docs/busybox.net/copyright.txt b/docs/busybox.net/copyright.txt
index a2b8032a0..528338da9 100644
--- a/docs/busybox.net/copyright.txt
+++ b/docs/busybox.net/copyright.txt
@@ -1,6 +1,6 @@
The code and graphics on this website (and it's mirror sites, if any) are
-Copyright (c) 1999-2003 by Erik Andersen. All rights reserved.
+Copyright (c) 1999-2004 by Erik Andersen. All rights reserved.
Documents on this Web site including their graphical elements, design, and
layout are protected by trade dress and other laws and MAY BE COPIED OR
diff --git a/docs/busybox.net/cvs_anon.html b/docs/busybox.net/cvs_anon.html
index 896a38679..f823d0535 100644
--- a/docs/busybox.net/cvs_anon.html
+++ b/docs/busybox.net/cvs_anon.html
@@ -18,8 +18,8 @@ CVS modules by running the following command (all on one line):
cvs -z3 -d:pserver:anonymous@busybox.net:/var/cvs co -c </pre>
<p>
-If you wish, you can then check out a local copy of any of the
-available modules. The following is an example of how to grab
+If you wish, you can then check out a local copy of any of the
+available modules. The following is an example of how to grab
a copy of busybox and tinylogin:
<pre>
cvs -z3 -d:pserver:anonymous@busybox.net:/var/cvs co -P busybox tinylogin</pre>
@@ -41,7 +41,7 @@ recommend you should use the same:
diff -ubBwpN
checkout -P</pre>
-<p>
+<p>
Once you've checked out a copy of the source tree, you can update your
source tree at any time so it is in sync with the latest and greatest by
running the command:
diff --git a/docs/busybox.net/cvs_howto.html b/docs/busybox.net/cvs_howto.html
index cff3a353c..837d6cd61 100644
--- a/docs/busybox.net/cvs_howto.html
+++ b/docs/busybox.net/cvs_howto.html
@@ -12,16 +12,16 @@ For the impatient, the following is probably about all you need to know:
<dl>
<dt><pre>cvs checkout -c</pre>
<dd>Will list the modules available for checkout
- <dt><pre>cvs checkout &lt module name &gt</pre>
+ <dt><pre>cvs checkout &lt module name &gt</pre>
<dd>Will checkout the named module
- <dt><pre>cvs co &lt module name &gt</pre>
+ <dt><pre>cvs co &lt module name &gt</pre>
<dd>Same thing
<dt><pre>cvs update</pre>
- <dd>Updates your local archive so it is in sync with the repository
- -- your local updates are left intact. Tries to merge upstream updates
+ <dd>Updates your local archive so it is in sync with the repository
+ -- your local updates are left intact. Tries to merge upstream updates
into your local updates. You will see the following tags when it is
- updating your local repository: C means conflict, U means update,
+ updating your local repository: C means conflict, U means update,
P means patched, and M means modified.
<dt><pre>cvs up</pre>
<dd>Same thing
diff --git a/docs/busybox.net/cvs_write.html b/docs/busybox.net/cvs_write.html
index f7c642f7d..b27338d79 100644
--- a/docs/busybox.net/cvs_write.html
+++ b/docs/busybox.net/cvs_write.html
@@ -4,8 +4,8 @@
<h3>CVS Read/Write Access</h3>
If you want to be able to commit things to CVS, first contribute some
-stuff to show you are serious. Then, very nicely ask
-<a href="mailto:andersen@codepoet.org">Erik Andersen</a> if he will set you up with
+stuff to show you are serious. Then, very nicely ask
+<a href="mailto:andersen@codepoet.org">Erik Andersen</a> if he will set you up with
an account. To access CVS, you will want to add the following to set up your environment:
<pre>
$ export CVS_RSH=/usr/bin/ssh
@@ -16,7 +16,7 @@ username...
<p>
To obtain commit access, you will need to demonstrate you are
-serious by submitting a few good patches first. Then, you will need to
+serious by submitting a few good patches first. Then, you will need to
select a user-name to use when committing stuff, and finally, you will
need to send me the username you have selected, an ssh key, and the email
address where you prefer email to be sent (I will forward any email sent
@@ -24,8 +24,8 @@ to you, but not store it).
<p>
Note that if you would prefer to keep your communications with me
-private, you can encrypt your email using my
-<a href="http://www.codepoet.org/~andersen/erik/gpg.asc">public key</a>.
+private, you can encrypt your email using my
+<a href="http://www.codepoet.org/~andersen/erik/gpg.asc">public key</a>.
<!--#include file="footer.html" -->
diff --git a/docs/busybox.net/docs.html b/docs/busybox.net/docs.html
index 330b7162c..fc9ac6d2b 100644
--- a/docs/busybox.net/docs.html
+++ b/docs/busybox.net/docs.html
@@ -2,7 +2,7 @@
<h3>Documentation</h3>
-Current documentation for BusyBox includes:
+Current documentation for BusyBox includes:
<ul>
<li><a href=
diff --git a/docs/busybox.net/download.html b/docs/busybox.net/download.html
index d8a389023..a6a86ac33 100644
--- a/docs/busybox.net/download.html
+++ b/docs/busybox.net/download.html
@@ -8,7 +8,7 @@ Source for the latest release can always be
downloaded from <a href="downloads">http://www.busybox.net/downloads</a>.
<p>
-You can also obtain <a href= "downloads/snapshots/">Daily Snapshots</a> of
+You can also obtain <a href= "downloads/snapshots/">Daily Snapshots</a> of
the latest stable, and the latest development CVS source trees.
<p>
diff --git a/docs/busybox.net/footer.html b/docs/busybox.net/footer.html
index 3ca0e708b..9756f5dde 100644
--- a/docs/busybox.net/footer.html
+++ b/docs/busybox.net/footer.html
@@ -11,7 +11,7 @@
<font face="arial, helvetica, sans-serif" size="-1">
<a HREF="/copyright.txt">Copyright &copy; 1999-2003 Erik Andersen</a>
<br>
- Mail all comments, insults, suggestions and bribes to
+ Mail all comments, insults, suggestions and bribes to
<br>
Erik Andersen <A HREF="mailto:andersen@codepoet.org">andersen@codepoet.org</A><BR>
</font>
diff --git a/docs/busybox.net/header.html b/docs/busybox.net/header.html
index 809a7c921..33638f322 100644
--- a/docs/busybox.net/header.html
+++ b/docs/busybox.net/header.html
@@ -18,7 +18,7 @@
</head>
<body>
- <basefont face="lucida, helvetica, arial" size="3">
+ <basefont face="lucida, helvetica, arial" size="3">
@@ -42,7 +42,7 @@
<tr>
-<td valign="TOP">
+<td valign="TOP">
<br><a href="/about.html">About</a>
<br><a href="/screenshot.html">Screenshot</a>
<br><a href="/lists.html">Mailing Lists</a>
@@ -67,7 +67,7 @@
<br><a href="http://lwn.net/">Linux Weekly News</a>
<br><a href="http://www.tldp.org/HOWTO">Linux HOWTOs</a>
-<!--
+<!--
<a href="http://validator.w3.org/check/referer"><img
src="/images/vh40.gif" height=31 width=88
align=left border=0 alt="Valid HTML 4.0!"></a>
diff --git a/docs/busybox.net/images/busybox.png b/docs/busybox.net/images/busybox.png
index 5c4e82a8f..b1eb92f38 100644
--- a/docs/busybox.net/images/busybox.png
+++ b/docs/busybox.net/images/busybox.png
Binary files differ
diff --git a/docs/busybox.net/images/ltbutton2.png b/docs/busybox.net/images/ltbutton2.png
index 556f72a6c..9bad9496a 100644
--- a/docs/busybox.net/images/ltbutton2.png
+++ b/docs/busybox.net/images/ltbutton2.png
Binary files differ
diff --git a/docs/busybox.net/license.html b/docs/busybox.net/license.html
index ff1ba61f3..2cbf78b0b 100644
--- a/docs/busybox.net/license.html
+++ b/docs/busybox.net/license.html
@@ -18,11 +18,11 @@ is generally just abbreviated simply as the GPL license, or
just the GPL. <a href="/products.html">Anyone thinking of shipping
BusyBox as part of a product</a> should be familiar with the
licensing terms under which they are allowed to use and
-distribute BusyBox. You are advised to take a look over the
+distribute BusyBox. You are advised to take a look over the
<ul>
-<li><a href="http://www.gnu.org/licenses/gpl.html">full text of
-the GNU General Public License</a>, and
+<li><a href="http://www.gnu.org/licenses/gpl.html">full text of
+the GNU General Public License</a>, and
<li><a href="http://www.gnu.org/licenses/gpl-faq.html">
Frequently Asked Questions about the GNU GPL</a>
</ul>
@@ -59,15 +59,15 @@ somewhere.
<p>
-<b>A written offer</b> generally means that somewhere in the
-docs for your product, you write something like
+<b>A written offer</b> generally means that somewhere in the
+docs for your product, you write something like
<blockquote>
The GPL source code contained in this product is available as a
free download from http://blah.blah.blah/
</blockquote>
Or you can offer source by writing
-somewhere in the docs for your product something like
+somewhere in the docs for your product something like
<blockquote>
If you would like a copy of the GPL source code in this product
on a CD, please send $9.99 to &lt;address&gt; for the costs of
@@ -85,7 +85,7 @@ firmware updates of their right to obtain source.
Additionally, some people have the mistaken understanding that if
they use unmodified GPL'd source code, they do not need to
distribute anything. This belief is not correct, and is not
-supported by the
+supported by the
<a href="http://www.gnu.org/licenses/gpl.html">text of GPL</a>.
Please do re-read it, and you
will find there is no such provision. If you distribute any GPL'd
diff --git a/docs/busybox.net/lists.html b/docs/busybox.net/lists.html
index e44e7edf2..6e7d890d1 100644
--- a/docs/busybox.net/lists.html
+++ b/docs/busybox.net/lists.html
@@ -5,14 +5,14 @@
<h3>Mailing List Information</h3>
BusyBox has a <a href="/lists/busybox/">mailing list</a> for discussion and
-development. You can subscribe by visiting
-<a href="http://codepoet.org/mailman/listinfo/busybox">this page</a>.
+development. You can subscribe by visiting
+<a href="http://codepoet.org/mailman/listinfo/busybox">this page</a>.
<p>
There is also a mailing list for <a href="/lists/busybox-cvs/">active developers</a>
wishing to read the complete diff of each and every change to busybox -- not for the
-faint of heart. Active developers can subscribe by visiting
-<a href="http://codepoet.org/mailman/listinfo/busybox-cvs">this page</a>.
+faint of heart. Active developers can subscribe by visiting
+<a href="http://codepoet.org/mailman/listinfo/busybox-cvs">this page</a>.
<p>
diff --git a/docs/busybox.net/news.html b/docs/busybox.net/news.html
index 3af3dca33..9d06eb543 100644
--- a/docs/busybox.net/news.html
+++ b/docs/busybox.net/news.html
@@ -107,8 +107,8 @@
<p>
- The <a href="downloads/Changelog">changelog</a> has all
- the details. And as usual you can
+ The <a href="downloads/Changelog">changelog</a> has all
+ the details. And as usual you can
<a href="downloads">download busybox here</a>.
<p>Have Fun!
@@ -117,7 +117,7 @@
<p>
- <li><b>Old News</b><p>
+ <li><b>Old News</b><p>
<a href="/oldnews.html">Click here to read older news</a>
diff --git a/docs/busybox.net/oldnews.html b/docs/busybox.net/oldnews.html
index a13bf7733..fa7566c0c 100644
--- a/docs/busybox.net/oldnews.html
+++ b/docs/busybox.net/oldnews.html
@@ -3,7 +3,7 @@
<ul>
- <li><b>10 December 2003 -- BusyBox 1.0.0-pre4 released</b><p>
+ <li><b>10 December 2003 -- BusyBox 1.0.0-pre4 released</b><p>
Here goes the fourth pre-release for the new BusyBox stable
series. This release includes major rework to sed, lots of
@@ -13,7 +13,7 @@
common applet, the dpkg applets has been cleaned up, and tons
of random bugs have been fixed. Thanks everyone for all the
testing, bug reports, and patches! Once again, a big
- thank-you goes to Glenn McGrath (bug1) for stepping in and
+ thank-you goes to Glenn McGrath (bug1) for stepping in and
helping get patches merged!
<p>
@@ -26,8 +26,8 @@
<p>
- The <a href="downloads/Changelog">changelog</a> has all
- the details. And as usual you can
+ The <a href="downloads/Changelog">changelog</a> has all
+ the details. And as usual you can
<a href="downloads">download busybox here</a>.
<p>Have Fun!
@@ -35,7 +35,7 @@
<p>
- <li><b>12 Sept 2003 -- BusyBox 1.0.0-pre3 released</b><p>
+ <li><b>12 Sept 2003 -- BusyBox 1.0.0-pre3 released</b><p>
Here goes the third pre-release for the new BusyBox stable
series. The last prerelease has held up quite well under
@@ -44,7 +44,7 @@
the testing, bug reports, and patches!
<p>
-
+
If you have submitted a patch or a bug report to the busybox
mailing list and no one has emailed you explaining why your
patch was rejected, it is safe to say that your patch has
@@ -69,27 +69,27 @@
<p>
I had hoped this release would be out a month ago. And of
- course, it wasn't since Erik became busy getting a release of
- <a href="http://www.uclibc.org/">uClibc</a>
+ course, it wasn't since Erik became busy getting a release of
+ <a href="http://www.uclibc.org/">uClibc</a>
out the door. Many thanks to Glenn McGrath (bug1) for
stepping in and helping get a bunch of patches merged! I am
not even going to state a date for releasing BusyBox 1.0.0
-pre4 (or the final 1.0.0). We're aiming for late September...
But if this release proves as to be exceptionally stable (or
exceptionally unstable!), the next release may be very soon
- indeed.
+ indeed.
<p>
- The <a href="downloads/Changelog">changelog</a> has all
- the details. And as usual you can
+ The <a href="downloads/Changelog">changelog</a> has all
+ the details. And as usual you can
<a href="downloads">download busybox here</a>.
<p>Have Fun!
<p>
- <li><b>30 July 2003 -- BusyBox 1.0.0-pre2 released</b><p>
+ <li><b>30 July 2003 -- BusyBox 1.0.0-pre2 released</b><p>
Here goes another pre release for the new BusyBox stable
series. The last prerelease (pre1) was given quite a lot of
@@ -126,14 +126,14 @@
then...
<p>
- The <a href="downloads/Changelog">changelog</a> has all
+ The <a href="downloads/Changelog">changelog</a> has all
the details. As usual you can <a href="downloads">download busybox here</a>.
<p>Have Fun!
<p>
<p>
- <li><b>15 July 2003 -- BusyBox 1.0.0-pre1 released</b><p>
+ <li><b>15 July 2003 -- BusyBox 1.0.0-pre1 released</b><p>
The busybox development series has been under construction for
nearly two years now. Which is just entirely too long... So
@@ -153,7 +153,7 @@
up) the final BusyBox 1.0.0 release should be ready by the end
of July.
<p>
-
+
If you have submitted patches, and they are not in this release
and I have not emailed you explaining why your patch was
rejected, it is safe to say that I have lost your patch. That
@@ -171,7 +171,7 @@
<p>
As usual you can <a href="downloads">download busybox here</a>.
- You don't really need to bother with the
+ You don't really need to bother with the
<a href="downloads/Changelog">changelog</a>, as the changes
vs the stable version are way too extensive to easily enumerate.
But you can take a look if you really want too.
@@ -182,7 +182,7 @@
<p>
- <li><b>26 October 2002 -- BusyBox 0.60.5 released</b><p>
+ <li><b>26 October 2002 -- BusyBox 0.60.5 released</b><p>
I am very pleased to announce that the BusyBox 0.60.5 (stable)
is now available for download. This is a bugfix release for
@@ -195,7 +195,7 @@
0.60.x series. Well, it turns out I'm a liar. But this time I
mean it (just like last time ;-). This will be the last
release for the 0.60.x series -- all further development work
- will be done for the development busybox tree. Expect the development
+ will be done for the development busybox tree. Expect the development
version to have its first real release very very soon now...
<p>
@@ -205,14 +205,14 @@
<p>
<p>
- <li><b>18 September 2002 -- BusyBox 0.60.4 released</b><p>
+ <li><b>18 September 2002 -- BusyBox 0.60.4 released</b><p>
I am very pleased to announce that the BusyBox 0.60.4
- (stable) is now available for download. This is primarily
+ (stable) is now available for download. This is primarily
a bugfix release for the stable series to address all
the problems that have turned up since the last
release. This will be the last release for the 0.60.x series.
- I mean it this time -- all further development work will be done
+ I mean it this time -- all further development work will be done
on the development busybox tree, which is quite solid now and
should soon be getting its first real release.
@@ -224,13 +224,13 @@
<p>
- <li><b>27 April 2002 -- BusyBox 0.60.3 released</b><p>
+ <li><b>27 April 2002 -- BusyBox 0.60.3 released</b><p>
I am very pleased to announce that the BusyBox 0.60.3 (stable) is
now available for download. This is primarily a bugfix release
- for the stable series. A number of problems have turned up since
+ for the stable series. A number of problems have turned up since
the last release, and this should address most of those problems.
- This should be the last release for the 0.60.x series. The
+ This should be the last release for the 0.60.x series. The
development busybox tree has been progressing nicely, and will
hopefully be ready to become the next stable release.
@@ -242,21 +242,21 @@
<p>
- <li><b>6 March 2002 -- busybox.net now has mirrors!</b><p>
+ <li><b>6 March 2002 -- busybox.net now has mirrors!</b><p>
Busybox.net is now much more available, thanks to
the fine folks at <a href= "http://i-netinnovations.com/">http://i-netinnovations.com/</a>
who are providing hosting for busybox.net and
uclibc.org. In addition, we now have two mirrors:
<a href= "http://busybox.linuxmagic.com/">http://busybox.linuxmagic.com/</a>
- in Canada and
+ in Canada and
<a href= "http://busybox.csservers.de/">http://busybox.csservers.de/</a>
in Germany. I hope this makes things much more
accessible for everyone!
<li>
-<b>3 January 2002 -- Welcome to busybox.net!</b>
+<b>3 January 2002 -- Welcome to busybox.net!</b>
<p>Thanks to the generosity of a number of busybox
users, we have been able to purchase busybox.net
@@ -285,7 +285,7 @@ should be completely eliminated. Hopefully, too,
some of you will volunteer to set up some mirror
sites, to help to distribute the load a bit.</p>
-<p><!--
+<p><!--
<center>
Click here to help support busybox.net!
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
@@ -316,7 +316,7 @@ everyone that has contributed!<br>
</li>
<li>
-<b>20 November 2001 -- BusyBox 0.60.2 released</b>
+<b>20 November 2001 -- BusyBox 0.60.2 released</b>
<p>We am very pleased to announce that the BusyBox
0.60.2 (stable) is now released to the world. This
@@ -369,19 +369,19 @@ will not part with it... I will then need to pay the registry fee
for a couple of years and start paying for bandwidth, so this will
initially cost about $300. I would like to host busybox.net on my
home machine (codepoet.org) so I have full control over the system,
-but to do that would require that I increase the level of bandwidth
+but to do that would require that I increase the level of bandwidth
I am paying for. Did you know that so far this month, there
have been over 1.4 Gigabytes of busybox ftp downloads? I don't
even <em>know</em> how much CVS bandwidth it requires. For the
time being, Lineo has continued to graciously provide this
-bandwidth, despite the fact that I no longer work for them. If I
-start running this all on my home machine, paying for the needed bandwidth
+bandwidth, despite the fact that I no longer work for them. If I
+start running this all on my home machine, paying for the needed bandwidth
will start costing some money.
<p>
I was going to pay it all myself, but my wife didn't like that
idea at all (big surprise). It turns out &lt;insert argument
-where she wins and I don't&gt; she has better ideas
+where she wins and I don't&gt; she has better ideas
about what we should spend our money on that don't involve
busybox. She suggested I should ask for contributions on the
mailing list and web page. So...
@@ -390,8 +390,8 @@ mailing list and web page. So...
I am hoping that if everyone could contribute a bit, we could pick
up the busybox.net domain name and cover the bandwidth costs. I
know that busybox is being used by a lot of companies as well as
-individuals -- hopefully people and companies that are willing to
-contribute back a bit. So if everyone could please help out, that
+individuals -- hopefully people and companies that are willing to
+contribute back a bit. So if everyone could please help out, that
would be wonderful!
<p>
@@ -406,9 +406,9 @@ would be wonderful!
new features, no new applets. So without further ado,
here it is. Come and get it.
<p>
- The
+ The
<a href="downloads/Changelog">changelog</a> has all
- the details. As usual BusyBox 0.60.1 can be downloaded from
+ the details. As usual BusyBox 0.60.1 can be downloaded from
<a href="downloads">http://busybox.net/downloads</a>.
<p>Have Fun!
<p>
@@ -425,23 +425,23 @@ would be wonderful!
stable bug-free(tm) release out seems to be in order. This releases fixes
a memory leak in syslogd, a number of bugs in the ash and msh shells, and
cleans up a number of things.
-
+
<p>
- Those wanting an easy way to test the 0.60.0 release with uClibc can
+ Those wanting an easy way to test the 0.60.0 release with uClibc can
use <a href="http://user-mode-linux.sourceforge.net/">User-Mode Linux</a>
- to give it a try by downloading and compiling
+ to give it a try by downloading and compiling
<a href="ftp://busybox.net/buildroot.tar.gz">buildroot.tar.gz</a>.
You don't have to be root or reboot your machine to run test this way.
Preconfigured User-Mode Linux kernel source is also on busybox.net.
<p>
Another cool thing is the nifty <a href="downloads/tutorial/index.html">
- BusyBox Tutorial</a> contributed by K Computing. This requires
- a ShockWave plugin (or standalone viewer), so you may want to grab the
+ BusyBox Tutorial</a> contributed by K Computing. This requires
+ a ShockWave plugin (or standalone viewer), so you may want to grab the
the GPLed shockwave viewer from <a href="http://www.swift-tools.com/Flash/flash-0.4.10.tgz">here</a>
to view the tutorial.
<p>
-
+
Finally, In case you didn't notice anything odd about the
version number of this release, let me point out that this release
is <em>not</em> 0.53, because I bumped the version number up a
@@ -456,12 +456,12 @@ would be wonderful!
released as part of a new BusyBox development series that will
have some not-yet-decided-on odd version number. Once things
stabilize and the new build system is working for everyone, then
- I will release that as a new stable release series.
+ I will release that as a new stable release series.
<p>
- The
+ The
<a href="downloads/Changelog">changelog</a> has all
- the details. As usual BusyBox 0.60.0 can be downloaded from
+ the details. As usual BusyBox 0.60.0 can be downloaded from
<a href="downloads">http://busybox.net/downloads</a>.
<p>Have Fun!
<p>
@@ -478,18 +478,18 @@ would be wonderful!
and ash).
<p>
- The
- <a href="downloads/Changelog">changelog</a> covers
+ The
+ <a href="downloads/Changelog">changelog</a> covers
some of the more obvious details, but there are many many things that
are not mentioned, but have been improved in subtle ways. As usual,
- BusyBox 0.52 can be downloaded from
+ BusyBox 0.52 can be downloaded from
<a href="downloads">http://busybox.net/downloads</a>.
<p>Have Fun!
<p>
<li> <b>10 April 2001 - Graph of Busybox Growth </b>
-<br>
+<br>
The illustrious Larry Doolittle has made a PostScript chart of the growth
of the Busybox tarball size over time. It is available for downloading /
viewing <a href= "busybox-growth.ps"> right here</a>.
@@ -523,9 +523,9 @@ turning off whichever applets you don't need.)
compiles on itanium systems (thanks to the Debian itanium porters
for letting me use their system!).
<p>
- You can read the
+ You can read the
<a href="downloads/Changelog">changelog</a> for
- complete details. BusyBox 0.51 can be downloaded from
+ complete details. BusyBox 0.51 can be downloaded from
<a href="downloads">http://busybox.net/downloads</a>.
<p>Have Fun!
<p>
@@ -551,9 +551,9 @@ image</a>. Here's how you use it:
<p> If you want to look at the contents of the initrd image, do this:
<pre>
- mount ./busybox.floppy.img /mnt -o loop -t msdos
- cp /mnt/initrd.gz /tmp
- umount /mnt
+ mount ./busybox.floppy.img /mnt -o loop -t msdos
+ cp /mnt/initrd.gz /tmp
+ umount /mnt
gunzip /tmp/initrd.gz
mount /tmp/initrd /mnt -o loop -t minix
</pre>
@@ -566,7 +566,7 @@ image</a>. Here's how you use it:
and tftp, and also fixes tons of bugs. Tab completion in the
shell is now working very well, and the shell's environment variable
expansion was fixed. Tons of other things were fixed or made
- smaller. For a fairly complete overview, see the
+ smaller. For a fairly complete overview, see the
<a href="downloads/Changelog">changelog</a>.
<p>
lash (the busybox shell) is still with us, fixed up a bit so it
@@ -577,21 +577,21 @@ image</a>. Here's how you use it:
this shell, while very usable, does not provide an extensible
framework for adding in full Bourne shell behavior. So the first order of
business as we begin working on the next BusyBox release will be to merge in the new shell
- currently in progress at
- <a href="http://doolittle.faludi.com/~larry/parser.html">Larry Doolittle's website</a>.
+ currently in progress at
+ <a href="http://doolittle.faludi.com/~larry/parser.html">Larry Doolittle's website</a>.
<p>
<li> <b>27 January 2001 -- BusyBox 0.49 released</b>
<br>
- Several new applets, lots of bug fixes, cleanups, and many smaller
+ Several new applets, lots of bug fixes, cleanups, and many smaller
things made nicer. Several cleanups and improvements to the shell.
- For a list of the most interesting changes
- you might want to look at the <a href="downloads/Changelog">changelog</a>.
+ For a list of the most interesting changes
+ you might want to look at the <a href="downloads/Changelog">changelog</a>.
<p>
Special thanks go out to Matt Kraai and Larry Doolittle for all their
- work on this release, and for keeping on top of things while I've been
+ work on this release, and for keeping on top of things while I've been
out of town.
<p>
<em>Special Note</em><br>
@@ -602,8 +602,8 @@ image</a>. Here's how you use it:
shell that will eventually replace lash is already under
construction. This new shell is being developed by Larry
Doolittle, and could use all of our help. Please see the work in
- progress on <a href="http://doolittle.faludi.com/~larry/parser.html">Larry's website</a>
- and help out if you can. This shell will be included in the next
+ progress on <a href="http://doolittle.faludi.com/~larry/parser.html">Larry's website</a>
+ and help out if you can. This shell will be included in the next
release of BusyBox.
<p>
@@ -617,12 +617,12 @@ image</a>. Here's how you use it:
that 'tar -X' and 'tar --exclude' are both now in. Applets are
now looked up using a binary search making lash (the busybox
shell) much faster. For the new debian-installer (for Debian
- woody) a .udeb can now be generated.
+ woody) a .udeb can now be generated.
<p>
- The curious can get a list of some of the more interesting changes by reading
- the <a href="downloads/Changelog">changelog</a>.
+ The curious can get a list of some of the more interesting changes by reading
+ the <a href="downloads/Changelog">changelog</a>.
<p>
- Many thanks go out to the many many people that have contributed to
+ Many thanks go out to the many many people that have contributed to
this release, especially Matt Kraai, Larry Doolittle, and Kent Robotti.
<p>
<p> <li> <b>26 September 2000 -- BusyBox 0.47 released</b>
@@ -630,11 +630,11 @@ image</a>. Here's how you use it:
This release fixes lots of bugs (including an ugly bug in 0.46
syslogd that could fork-bomb your system). Added several new
- apps: rdate, wget, getopt, dos2unix, unix2dos, reset, unrpm,
+ apps: rdate, wget, getopt, dos2unix, unix2dos, reset, unrpm,
renice, xargs, and expr. syslogd now supports network logging.
There are the usual tar updates. Most apps now use getopt for
more correct option parsing.
- See the <a href="downloads/Changelog">changelog</a>
+ See the <a href="downloads/Changelog">changelog</a>
for complete details.
@@ -642,11 +642,11 @@ image</a>. Here's how you use it:
<br>
This release fixes several bugs (including a ugly bug in tar,
- and fixes for NFSv3 mount support). Added a dumpkmap to allow
+ and fixes for NFSv3 mount support). Added a dumpkmap to allow
people to dump a binary keymaps for use with 'loadkmap', and a
completely reworked 'grep' and 'sed' which should behave better.
BusyBox shell can now also be used as a login shell.
- See the <a href="downloads/Changelog">changelog</a>
+ See the <a href="downloads/Changelog">changelog</a>
for complete details.
@@ -661,13 +661,13 @@ image</a>. Here's how you use it:
the <a href="downloads/Changelog">changelog</a> for
details).
<p>
- Also, some exciting infrastructure news! Busybox now has its own
- <a href="lists/busybox/">mailing list</a>,
+ Also, some exciting infrastructure news! Busybox now has its own
+ <a href="lists/busybox/">mailing list</a>,
publically browsable
- <a href="/cgi-bin/cvsweb/busybox/">CVS tree</a>,
+ <a href="/cgi-bin/cvsweb/busybox/">CVS tree</a>,
anonymous
<a href="cvs_anon.html">CVS access</a>, and
- for those that are actively contributing there is even
+ for those that are actively contributing there is even
<a href="cvs_write.html">CVS write access</a>.
I think this will be a huge help to the ongoing development of BusyBox.
<p>
@@ -708,7 +708,7 @@ it should be logging stuff from both "A" and "B". As released in 0.43 only stuf
from "A" would have been logged. This means that if init tries to log something
while say ppp has the syslog open, init would block (which is bad, bad, bad).
<p>
-Karl M. Hegbloom has created a fix for the problem.
+Karl M. Hegbloom has created a fix for the problem.
Thanks Karl!
@@ -717,17 +717,17 @@ Thanks Karl!
I have finally gotten everything into a state where I feel pretty
good about things. This is definitely the most stable, solid release
so far. A lot of bugs have been fixed, and the following new apps
-have been added: sh, basename, dirname, killall, uptime,
+have been added: sh, basename, dirname, killall, uptime,
freeramdisk, tr, echo, test, and usleep. Tar has been completely
rewritten from scratch. Bss size has also been greatly reduced.
-More details are available in the
+More details are available in the
<a href="downloads/Changelog">changelog</a>.
Oh, and as a special bonus, I wrote some fairly comprehensive
<em>documentation</em>, complete with examples and full usage information.
<p>
Many thanks go out to the fine people that have helped by submitting patches
-and bug reports; particularly instrumental in helping for this release were
+and bug reports; particularly instrumental in helping for this release were
Karl Hegbloom, Pavel Roskin, Friedrich Vedder, Emanuele Caratti,
Bob Tinsley, Nicolas Pitre, Avery Pennarun, Arne Bernin, John Beppu, and Jim Gleason.
There were others so if I somehow forgot to mention you, I'm very sorry.
@@ -770,9 +770,9 @@ labor, both Shaunalei and our new baby boy are doing wonderfully.
So now that I am done with my excuse for the slow release cycle...
Progress on the next release of BusyBox has been slow but steady. I expect
to have a release sometime during the first week of April. This release will
-include a number of important changes, including the addition of a shell, a
+include a number of important changes, including the addition of a shell, a
re-write of tar (to accommodate the Linux Router Project), and syslogd can now
-accept multiple concurrent connections, fixing lots of unexpected blocking
+accept multiple concurrent connections, fixing lots of unexpected blocking
problems.
@@ -780,22 +780,22 @@ problems.
<br>
This is the most solid BusyBox release so far. Many, many
- bugs have been fixed. See the
+ bugs have been fixed. See the
<a href="downloads/Changelog">changelog</a> for details.
- Of particular interest, init will now cleanly unmount
- filesystems on reboot, cp and mv have been rewritten and
- behave much better, and mount and umount no longer leak
- loop devices. Many thanks go out to Randolph Chung,
- Karl M. Hegbloom, Taketoshi Sano, and Pavel Roskin for
- their hard work on this release of BusyBox. Please pound
+ Of particular interest, init will now cleanly unmount
+ filesystems on reboot, cp and mv have been rewritten and
+ behave much better, and mount and umount no longer leak
+ loop devices. Many thanks go out to Randolph Chung,
+ Karl M. Hegbloom, Taketoshi Sano, and Pavel Roskin for
+ their hard work on this release of BusyBox. Please pound
on it and let me know if you find any bugs.
<p> <li> <b>19 January 2000 -- BusyBox 0.41 released</b>
<br>
This release includes bugfixes to cp, mv, logger, true, false,
- mkdir, syslogd, and init. New apps include wc, hostid,
+ mkdir, syslogd, and init. New apps include wc, hostid,
logname, tty, whoami, and yes. New features include loop device
support in mount and umount, and better TERM handling by init.
The changelog can be found <a href="downloads/Changelog">here</a>.
@@ -806,7 +806,7 @@ problems.
This release includes bugfixes to init (now includes inittab support),
syslogd, head, logger, du, grep, cp, mv, sed, dmesg, ls, kill, gunzip, and mknod.
New apps include sort, uniq, lsmod, rmmod, fbset, and loadacm.
- In particular, this release fixes an important bug in tar which
+ In particular, this release fixes an important bug in tar which
in some cases produced serious security problems.
As always, the changelog can be found <a href="downloads/Changelog">here</a>.
@@ -814,19 +814,19 @@ problems.
<br>
I have received permission from Bruce Perens (the original author of BusyBox)
to set up this site as the new primary website for BusyBox. This website
- will always contain pointers to the latest and greatest, and will also
+ will always contain pointers to the latest and greatest, and will also
contain the latest documentation on how to use BusyBox, what it can do,
what arguments its apps support, etc.
<p> <li> <b>10 December 1999 -- BusyBox 0.39 released</b>
<br>
- This release includes fixes to init, reboot, halt, kill, and ls, and contains
+ This release includes fixes to init, reboot, halt, kill, and ls, and contains
the new apps ping, hostname, mkfifo, free, tail, du, tee, and head. A full
changelog can be found <a href="downloads/Changelog">here</a>.
<p> <li> <b>5 December 1999 -- BusyBox 0.38 released</b>
<br>
- This release includes fixes to tar, cat, ls, dd, rm, umount, find, df,
- and make install, and includes new apps syslogd/klogd and logger.
+ This release includes fixes to tar, cat, ls, dd, rm, umount, find, df,
+ and make install, and includes new apps syslogd/klogd and logger.
</ul>
diff --git a/docs/busybox.net/screenshot.html b/docs/busybox.net/screenshot.html
index 5f1035489..1f8e8c81b 100644
--- a/docs/busybox.net/screenshot.html
+++ b/docs/busybox.net/screenshot.html
@@ -12,7 +12,7 @@ Everybody loves to look at screenshots, so here is a live action screenshot of B
font-family: monospace; font-size: smaller;" width="100">
-$ ./busybox
+$ ./busybox
BusyBox v1.00-pre3 (2003.09.12-05:48+0000) multi-call binary
Usage: busybox [function] [arguments]...
diff --git a/docs/busybox.sgml b/docs/busybox.sgml
index bd8b1697c..b581868ef 100644
--- a/docs/busybox.sgml
+++ b/docs/busybox.sgml
@@ -2,7 +2,7 @@
<book id="BusyBoxDocumentation">
<bookinfo>
<title>BusyBox - The Swiss Army Knife of Embedded Linux</title>
-
+
<legalnotice>
<para>
This documentation is free software; you can redistribute
@@ -11,21 +11,21 @@
version 2 of the License, or (at your option) any later
version.
</para>
-
+
<para>
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
</para>
-
+
<para>
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
</para>
-
+
<para>
For more details see the file COPYING in the source
distribution of Linux.
@@ -45,7 +45,7 @@
for any small or embedded system. The utilities in BusyBox generally have
fewer options than their full-featured GNU cousins; however, the options
that are included provide the expected functionality and behave very much
- like their GNU counterparts.
+ like their GNU counterparts.
</para>
<para>
@@ -97,7 +97,7 @@
<para>
will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
- into BusyBox).
+ into BusyBox).
</para>
<para>
@@ -112,7 +112,7 @@
</para>
<para>
- will also cause BusyBox to behave as 'ls'.
+ will also cause BusyBox to behave as 'ls'.
</para>
</sect1>
@@ -121,8 +121,8 @@
<title>Common options</title>
<para>
- Most BusyBox commands support the <emphasis>--help</emphasis> option to provide
- a terse runtime description of their behavior.
+ Most BusyBox commands support the <emphasis>--help</emphasis> option to provide
+ a terse runtime description of their behavior.
</para>
</sect1>
</chapter>
@@ -143,7 +143,7 @@
dpkg-deb, du, dumpkmap, dumpleases, dutmp, echo, egrep, env, expr,
false, fbset, fdflush, fdformat, fgrep, find, fold, free, freeramdisk,
fsck.minix, ftpget, ftpput, getopt, getty, grep, gunzip, gzip,
- halt, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock,
+ halt, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock,
id, ifconfig, ifdown, ifup, inetd, init, insmod, ip, ipcalc, iplink,
iproute, iptunnel, kill, killall, klogd, lash, length, linuxrc,
ln, loadfont, loadkmap, logger, login, logname, logread,
@@ -156,7 +156,7 @@
sha1sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin,
swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, telnetd,
test, tftp, time, top, touch, tr, traceroute, true, tty, udhcpc,
- udhcpd, umount, uname, uncompress, uniq, unix2dos, unzip,
+ udhcpd, umount, uname, uncompress, uniq, unix2dos, unzip,
uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch,
watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, [
@@ -382,7 +382,7 @@
</screen>
</para>
</sect1>
-
+
<sect1 id="chown">
<title>chown</title>
<para>
@@ -706,7 +706,7 @@
</screen>
</para>
</sect1>
-
+
<sect1 id="dirname">
<title>dirname</title>
@@ -773,24 +773,24 @@
<title>dpkg-deb</title>
<para>
- Usage: dpkg-deb [OPTION] archive [directory]
+ Usage: dpkg-deb [OPTION] archive [directory]
</para>
<para>
- Debian package archive (.deb) manipulation tool
+ Debian package archive (.deb) manipulation tool
</para>
<para>
Options:
</para>
-
+
<para>
<screen>
- -c List the contents of the filesystem tree archive portion of the package
+ -c List the contents of the filesystem tree archive portion of the package
-e Extracts the control information files from a package archive into the specified directory.
If no directory is specified then a subdirectory DEBIAN in the current directory is used.
-x Silently extracts the filesystem tree from a package archive into the specified directory.
- -X Extracts the filesystem tree from a package archive into the specified directory, listing the files as it goes.
+ -X Extracts the filesystem tree from a package archive into the specified directory, listing the files as it goes.
If required the specified directory (but not its parents) will be created.
</screen>
<para>
@@ -1193,7 +1193,7 @@
</screen>
</para>
</sect1>
-
+
<sect1 id="getopt">
<title>getopt</title>
@@ -1426,7 +1426,7 @@
<para>
Prints out a unique 32-bit identifier for the current
machine. The 32-bit identifier is intended to be unique
- among all UNIX systems in existence.
+ among all UNIX systems in existence.
</para>
</sect1>
@@ -1592,7 +1592,7 @@
<para>
- Valid actions include: sysinit, respawn, askfirst, wait,
+ Valid actions include: sysinit, respawn, askfirst, wait,
once, and ctrlaltdel.
</para>
@@ -1631,7 +1631,7 @@
respawn, except that before running the specified process it
displays the line "Please press Enter to activate this console."
and then waits for the user to press enter before starting the
- specified process.
+ specified process.
</para>
<para>
@@ -1994,7 +1994,7 @@
</para>
<para>
-
+
</para>
<para>
@@ -2266,7 +2266,7 @@
<para>
<screen>
- $ mknod /dev/fd0 b 2 0
+ $ mknod /dev/fd0 b 2 0
$ mknod -m 644 /tmp/pipe p
</screen>
</para>
@@ -2822,19 +2822,19 @@
<sect1 id="run-parts">
<title>run-parts</title>
-
+
<para>
Usage: run-parts [-t] [-a ARG] [-u MASK] DIRECTORY
</para>
-
+
<para>
Run a bunch of scripts in a directory.
</para>
-
+
<para>
Options:
</para>
-
+
<para>
<screen>
-t Test only. It only print the file to be executed,
@@ -2844,9 +2844,9 @@
</screen>
</para>
</sect1>
-
-
+
+
<sect1 id="sed">
<title>sed</title>
@@ -2962,7 +2962,7 @@
</para>
<para>
- This command does not yet have proper documentation.
+ This command does not yet have proper documentation.
</para>
<para>
@@ -3182,7 +3182,7 @@
</para>
<para>
-
+
</para>
<para>
@@ -3445,7 +3445,7 @@
</para>
<para>
-
+
</para>
<para>
@@ -3467,7 +3467,7 @@
<para>
<screen>
- $ umount /dev/hdc1
+ $ umount /dev/hdc1
</screen>
</para>
</sect1>
@@ -3549,7 +3549,7 @@
</screen>
</para>
</sect1>
-
+
<sect1 id="unix2dos">
<title>unix2dos</title>
@@ -3869,7 +3869,7 @@
</para>
<para>
- Uncompress FILE (or stdin if FILE is '-') to stdout.
+ Uncompress FILE (or stdin if FILE is '-') to stdout.
</para>
<para>
@@ -3938,7 +3938,7 @@
<title>AUTHORS</title>
<para>
- The following people have made significant contributions to
+ The following people have made significant contributions to
BusyBox -- whether they know it or not.
</para>
@@ -3963,7 +3963,7 @@
</para>
<para>
- Dave Cinege &lt;dcinege@psychosis.com&gt;
+ Dave Cinege &lt;dcinege@psychosis.com&gt;
</para>
<para>
@@ -3979,7 +3979,7 @@
</para>
<para>
- John Lombardo &lt;john@deltanet.com&gt;
+ John Lombardo &lt;john@deltanet.com&gt;
</para>
<para>
diff --git a/docs/busybox_header.pod b/docs/busybox_header.pod
index 047c4d067..132aa3b65 100644
--- a/docs/busybox_header.pod
+++ b/docs/busybox_header.pod
@@ -18,7 +18,7 @@ you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
tar, etc. BusyBox provides a fairly complete POSIX environment for any small
or embedded system. The utilities in BusyBox generally have fewer options than
their full-featured GNU cousins; however, the options that are included provide
-the expected functionality and behave very much like their GNU counterparts.
+the expected functionality and behave very much like their GNU counterparts.
BusyBox has been written with size-optimization and limited resources in mind.
It is also extremely modular so you can easily include or exclude commands (or
@@ -37,19 +37,19 @@ For example, entering
./ls
will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
-into BusyBox).
+into BusyBox).
You can also invoke BusyBox by issuing the command as an argument on the
command line. For example, entering
./BusyBox ls
-will also cause BusyBox to behave as 'ls'.
+will also cause BusyBox to behave as 'ls'.
=head1 COMMON OPTIONS
Most BusyBox commands support the B<-h> option to provide a
-terse runtime description of their behavior.
+terse runtime description of their behavior.
=head1 COMMANDS
diff --git a/docs/contributing.txt b/docs/contributing.txt
index 0d2f553ed..ae4ec3ef7 100644
--- a/docs/contributing.txt
+++ b/docs/contributing.txt
@@ -116,7 +116,7 @@ Bug Reporting
If you find bugs, please submit a detailed bug report to the busybox mailing
list at busybox@busybox.net. A well-written bug report should include a
transcript of a shell session that demonstrates the bad behavior and enables
-anyone else to duplicate the bug on their own machine. The following is such
+anyone else to duplicate the bug on their own machine. The following is such
an example:
To: busybox@busybox.net
@@ -137,7 +137,7 @@ an example:
$ date
llegal instruction
- I am using Debian unstable, kernel version 2.4.19-rmk1 on an Netwinder,
+ I am using Debian unstable, kernel version 2.4.19-rmk1 on an Netwinder,
and the latest uClibc from CVS. Thanks for the wonderful program!
-Diligent
@@ -231,7 +231,7 @@ These are dirty jobs, but somebody's gotta do 'em.
- "Ten Commandments" compliance: (this is a "maybe", certainly not as
important as any of the previous items.)
- http://www.lysator.liu.se/c/ten-commandments.html
+ http://www.lysator.liu.se/c/ten-commandments.html
Other useful links:
diff --git a/docs/new-applet-HOWTO.txt b/docs/new-applet-HOWTO.txt
index 54940957c..2fc95d36d 100644
--- a/docs/new-applet-HOWTO.txt
+++ b/docs/new-applet-HOWTO.txt
@@ -106,7 +106,7 @@ config CONFIG_MU
Usage String(s)
---------------
-Next, add usage information for you applet to include/usage.h.
+Next, add usage information for you applet to include/usage.h.
This should look like the following:
#define mu_trivial_usage \
@@ -126,8 +126,8 @@ currently exist in usage.h.)
Header Files
------------
-Next, add an entry to include/applets.h. Be *sure* to keep the list
-in alphabetical order, or else it will break the binary-search lookup
+Next, add an entry to include/applets.h. Be *sure* to keep the list
+in alphabetical order, or else it will break the binary-search lookup
algorithm in busybox.c and the Gods of BusyBox smite you. Yea, verily:
/* all programs above here are alphabetically "less than" 'mu' */
@@ -154,10 +154,10 @@ Adding some text to docs/Configure.help is a nice start.
The Grand Announcement
----------------------
-Then create a diff -urN of the files you added (<appletdir/><applet>.c,
-include/usage.c, include/applets.h, include/config.h, <appletdir>/Makefile.in, <appletdir>/config.in)
+Then create a diff -urN of the files you added (<appletdir/><applet>.c,
+include/usage.c, include/applets.h, include/config.h, <appletdir>/Makefile.in, <appletdir>/config.in)
and send it to the mailing list:
-busybox@busybox.net.
+busybox@busybox.net.
Sending patches as attachments is preferred, but not required.
diff --git a/docs/style-guide.txt b/docs/style-guide.txt
index 25c676ca2..915d9b27d 100644
--- a/docs/style-guide.txt
+++ b/docs/style-guide.txt
@@ -266,7 +266,7 @@ these steps:
conversion.
- Compile and see if everything still works.
-
+
Please be aware of changes that have cascading effects into other files. For
example, if you're changing the name of something in, say utility.c, you
should probably run 'examples/mk2knr.pl utility.c' at first, but when you run
@@ -293,13 +293,13 @@ Use 'const <type> var' for declaring constants.
#define var 80
Do this instead, when the variable is in a header file and will be used in
- several source files:
+ several source files:
- const int var = 80;
+ const int var = 80;
Or do this when the variable is used only in a single source file:
- static const int var = 80;
+ static const int var = 80;
Declaring variables as '[static] const' gives variables an actual type and
makes the compiler do type checking for you; the preprocessor does _no_ type
@@ -336,7 +336,7 @@ The Folly of #ifdef
Code cluttered with ifdefs is difficult to read and maintain. Don't do it.
Instead, put your ifdefs at the top of your .c file (or in a header), and
conditionally define 'static inline' functions, (or *maybe* macros), which are
-used in the code.
+used in the code.
Don't do this:
@@ -650,7 +650,7 @@ line in the midst of your #includes:
And a code block similar to the following near the top of your applet_main()
routine:
- while ((opt = getopt(argc, argv, "abc")) > 0) {
+ while ((opt = getopt(argc, argv, "abc")) > 0) {
switch (opt) {
case 'a':
do_a_opt = 1;
diff --git a/editors/Config.in b/editors/Config.in
index e2055cede..bb0285976 100644
--- a/editors/Config.in
+++ b/editors/Config.in
@@ -38,7 +38,7 @@ config CONFIG_VI
default n
help
'vi' is a text editor. More specifically, it is the One True
- text editor <grin>. It does, however, have a rather steep
+ text editor <grin>. It does, however, have a rather steep
learning curve. If you are not already comfortable with 'vi'
you may wish to use something else.
diff --git a/editors/Makefile b/editors/Makefile
index 00ef6d502..1c8223124 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/editors/Makefile.in b/editors/Makefile.in
index 97450479d..017f30934 100644
--- a/editors/Makefile.in
+++ b/editors/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/editors/awk.c b/editors/awk.c
index 09fb41d68..cb74a9832 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -378,7 +378,7 @@ static unsigned long tokeninfo[] = {
};
/* internal variable names and their initial values */
-/* asterisk marks SPECIAL vars; $ is just no-named Field0 */
+/* asterisk marks SPECIAL vars; $ is just no-named Field0 */
enum {
CONVFMT=0, OFMT, FS, OFS,
ORS, RS, RT, FILENAME,
@@ -390,7 +390,7 @@ enum {
static char * vNames =
"CONVFMT\0" "OFMT\0" "FS\0*" "OFS\0"
- "ORS\0" "RS\0*" "RT\0" "FILENAME\0"
+ "ORS\0" "RS\0*" "RT\0" "FILENAME\0"
"SUBSEP\0" "ARGIND\0" "ARGC\0" "ARGV\0"
"ERRNO\0" "FNR\0"
"NR\0" "NF\0*" "IGNORECASE\0*"
@@ -486,7 +486,7 @@ static unsigned int hashidx(char *name) {
static xhash *hash_init(void) {
xhash *newhash;
-
+
newhash = (xhash *)xcalloc(1, sizeof(xhash));
newhash->csize = FIRST_PRIME;
newhash->items = (hash_item **)xcalloc(newhash->csize, sizeof(hash_item *));
@@ -1053,7 +1053,7 @@ static node *parse_expr(unsigned long iexp) {
/* for binary and postfix-unary operators, jump back over
* previous operators with higher priority */
vn = cn;
- while ( ((t.info & PRIMASK) > (vn->a.n->info & PRIMASK2)) ||
+ while ( ((t.info & PRIMASK) > (vn->a.n->info & PRIMASK2)) ||
((t.info == vn->info) && ((t.info & OPCLSMASK) == OC_COLON)) )
vn = vn->a.n;
if ((t.info & OPCLSMASK) == OC_TERNARY)
@@ -1085,7 +1085,7 @@ static node *parse_expr(unsigned long iexp) {
xtc = TC_OPERAND | TC_UOPPRE | TC_REGEXP;
if (tc & (TC_OPERAND | TC_REGEXP)) {
xtc = TC_UOPPRE | TC_BINOP | TC_OPERAND | iexp;
- /* one should be very careful with switch on tclass -
+ /* one should be very careful with switch on tclass -
* only simple tclasses should be used! */
switch (tc) {
case TC_VARIABLE:
@@ -1103,7 +1103,7 @@ static node *parse_expr(unsigned long iexp) {
}
xtc = TC_UOPPOST | TC_UOPPRE | TC_BINOP | TC_OPERAND | iexp;
break;
-
+
case TC_NUMBER:
case TC_STRING:
cn->info = OC_VAR;
@@ -1763,7 +1763,7 @@ static char *awk_printf(node *n) {
s = f;
while (*f && (*f != '%' || *(++f) == '%'))
f++;
- while (*f && !isalpha(*f))
+ while (*f && !isalpha(*f))
f++;
incr = (f - s) + MAXVARFMT;
diff --git a/editors/patch.c b/editors/patch.c
index 1587919bc..e3745ef39 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -31,7 +31,7 @@
* - Non-interactive
* - Patches must apply cleanly or the hunk will fail.
* - Reject file isnt saved
- * -
+ * -
*/
#include <getopt.h>
@@ -55,7 +55,7 @@ static int copy_lines(FILE *src_stream, FILE *dest_stream, const unsigned int li
bb_perror_msg_and_die("Error writing to new file");
}
free(line);
-
+
i++;
}
return(i);
@@ -282,7 +282,7 @@ extern int patch_main(int argc, char **argv)
}
}
- /* 0 = SUCCESS
+ /* 0 = SUCCESS
* 1 = Some hunks failed
* 2 = More serious problems
*/
diff --git a/editors/sed.c b/editors/sed.c
index a7c99a16b..c97092a5c 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -209,7 +209,7 @@ static char *copy_parsing_slashn(const char *string, int len)
/*
* index_of_next_unescaped_regexp_delim - walks left to right through a string
* beginning at a specified index and returns the index of the next regular
- * expression delimiter (typically a forward * slash ('/')) not preceeded by
+ * expression delimiter (typically a forward * slash ('/')) not preceeded by
* a backslash ('\').
*/
static int index_of_next_unescaped_regexp_delim(const char delimiter,
@@ -294,7 +294,7 @@ static int get_address(char *my_str, int *linenum, regex_t ** regex)
next = index_of_next_unescaped_regexp_delim(delimiter, ++pos);
if (next == -1)
bb_error_msg_and_die("unterminated match expression");
-
+
temp=copy_parsing_slashn(pos,next);
*regex = (regex_t *) xmalloc(sizeof(regex_t));
xregcomp(*regex, temp, REG_NEWLINE);
@@ -372,7 +372,7 @@ static int parse_subst_cmd(sed_cmd_t * const sed_cmd, char *substr)
{
char *temp;
idx+=parse_file_cmd(sed_cmd,substr+idx,&temp);
-
+
break;
}
/* Ignore case (gnu exension) */
diff --git a/editors/vi.c b/editors/vi.c
index 1932742ec..28eca754a 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -19,7 +19,7 @@
*/
static const char vi_Version[] =
- "$Id: vi.c,v 1.33 2004/02/06 10:36:08 andersen Exp $";
+ "$Id: vi.c,v 1.34 2004/03/15 08:28:32 andersen Exp $";
/*
* To compile for standalone use:
@@ -2548,14 +2548,14 @@ static void place_cursor(int row, int col, int opti)
// char cm3[BUFSIZ];
int Rrow= last_row;
#endif /* CONFIG_FEATURE_VI_OPTIMIZE_CURSOR */
-
+
memset(cm1, '\0', BUFSIZ - 1); // clear the buffer
if (row < 0) row = 0;
if (row >= rows) row = rows - 1;
if (col < 0) col = 0;
if (col >= columns) col = columns - 1;
-
+
//----- 1. Try the standard terminal ESC sequence
sprintf((char *) cm1, CMrc, row + 1, col + 1);
cm= cm1;
@@ -2565,7 +2565,7 @@ static void place_cursor(int row, int col, int opti)
//----- find the minimum # of chars to move cursor -------------
//----- 2. Try moving with discreet chars (Newline, [back]space, ...)
memset(cm2, '\0', BUFSIZ - 1); // clear the buffer
-
+
// move to the correct row
while (row < Rrow) {
// the cursor has to move up
@@ -2577,7 +2577,7 @@ static void place_cursor(int row, int col, int opti)
strcat(cm2, CMdown);
Rrow++;
}
-
+
// now move to the correct column
strcat(cm2, "\r"); // start at col 0
// just send out orignal source char to get to correct place
@@ -2748,7 +2748,7 @@ static void format_line(Byte *dest, Byte *src, int li)
{
int co;
Byte c;
-
+
for (co= 0; co < MAX_SCR_COLS; co++) {
c= ' '; // assume blank
if (li > 0 && co == 0) {
@@ -2899,7 +2899,7 @@ static void refresh(int full_screen)
#else
place_cursor(crow, ccol, FALSE);
#endif /* CONFIG_FEATURE_VI_OPTIMIZE_CURSOR */
-
+
if (offset != old_offset)
old_offset = offset;
}
@@ -2997,29 +2997,29 @@ key_cmd_mode:
//case 0x1d: // gs
//case 0x1e: // rs
//case 0x1f: // us
- //case '!': // !-
- //case '#': // #-
- //case '&': // &-
- //case '(': // (-
- //case ')': // )-
- //case '*': // *-
- //case ',': // ,-
- //case '=': // =-
- //case '@': // @-
- //case 'F': // F-
- //case 'K': // K-
- //case 'Q': // Q-
- //case 'S': // S-
- //case 'T': // T-
- //case 'V': // V-
- //case '[': // [-
- //case '\\': // \-
- //case ']': // ]-
- //case '_': // _-
- //case '`': // `-
- //case 'g': // g-
+ //case '!': // !-
+ //case '#': // #-
+ //case '&': // &-
+ //case '(': // (-
+ //case ')': // )-
+ //case '*': // *-
+ //case ',': // ,-
+ //case '=': // =-
+ //case '@': // @-
+ //case 'F': // F-
+ //case 'K': // K-
+ //case 'Q': // Q-
+ //case 'S': // S-
+ //case 'T': // T-
+ //case 'V': // V-
+ //case '[': // [-
+ //case '\\': // \-
+ //case ']': // ]-
+ //case '_': // _-
+ //case '`': // `-
+ //case 'g': // g-
//case 'u': // u- FIXME- there is no undo
- //case 'v': // v-
+ //case 'v': // v-
default: // unrecognised command
buf[0] = c;
buf[1] = '\0';
@@ -3338,15 +3338,15 @@ key_cmd_mode:
break;
#endif /* CONFIG_FEATURE_VI_SEARCH */
case '0': // 0- goto begining of line
- case '1': // 1-
- case '2': // 2-
- case '3': // 3-
- case '4': // 4-
- case '5': // 5-
- case '6': // 6-
- case '7': // 7-
- case '8': // 8-
- case '9': // 9-
+ case '1': // 1-
+ case '2': // 2-
+ case '3': // 3-
+ case '4': // 4-
+ case '5': // 5-
+ case '6': // 6-
+ case '7': // 7-
+ case '8': // 8-
+ case '9': // 9-
if (c == '0' && cmdcnt < 1) {
dot_begin(); // this was a standalone zero
} else {
diff --git a/examples/bootfloppy/bootfloppy.txt b/examples/bootfloppy/bootfloppy.txt
index 090ef0499..16f2c130f 100644
--- a/examples/bootfloppy/bootfloppy.txt
+++ b/examples/bootfloppy/bootfloppy.txt
@@ -38,13 +38,13 @@ Making a Root File System
The following steps will create a root file system.
- Create an empty file that you can format as a filesystem:
-
+
dd if=/dev/zero of=rootfs bs=1k count=4000
- Set up the rootfs file we just created to be used as a loop device (may not
- be necessary)
+ be necessary)
- losetup /dev/loop0 rootfs
+ losetup /dev/loop0 rootfs
- Format the rootfs file with a filesystem:
@@ -101,15 +101,15 @@ The following steps will create the boot floppy.
Note: You will need to have the mtools package installed beforehand.
- Insert a floppy in the drive and format it with an MSDOS filesystem:
-
+
mformat a:
(if the system doesn't know what device 'a:' is, look at /etc/mtools.conf)
- Run syslinux on the floppy:
-
+
syslinux -s /dev/fd0
-
+
(the -s stands for "safe, slow, and stupid" and should work better with
buggy BIOSes; it can be omitted)
diff --git a/examples/bootfloppy/etc/profile b/examples/bootfloppy/etc/profile
index e9b11e90a..8a7c77d78 100644
--- a/examples/bootfloppy/etc/profile
+++ b/examples/bootfloppy/etc/profile
@@ -4,5 +4,5 @@ echo
echo -n "Processing /etc/profile... "
# no-op
echo "Done"
-echo
+echo
diff --git a/examples/bootfloppy/mkrootfs.sh b/examples/bootfloppy/mkrootfs.sh
index e56d10469..e79ed418e 100755
--- a/examples/bootfloppy/mkrootfs.sh
+++ b/examples/bootfloppy/mkrootfs.sh
@@ -63,10 +63,10 @@ mount -o loop,exec rootfs $TARGET_DIR # must be root
# install uClibc
mkdir -p $TARGET_DIR/lib
cd $UCLIBC_DIR
-make INSTALL_DIR=
+make INSTALL_DIR=
cp -a libc.so* $BASE_DIR/$TARGET_DIR/lib
cp -a uClibc*.so $BASE_DIR/$TARGET_DIR/lib
-cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib
+cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib
cp -a ld.so-1/libdl/libdl.so* $BASE_DIR/$TARGET_DIR/lib
cp -a crypt/libcrypt.so* $BASE_DIR/$TARGET_DIR/lib
cd $BASE_DIR
diff --git a/examples/bootfloppy/syslinux.cfg b/examples/bootfloppy/syslinux.cfg
index 8d407cad4..fa2677ca8 100644
--- a/examples/bootfloppy/syslinux.cfg
+++ b/examples/bootfloppy/syslinux.cfg
@@ -4,4 +4,4 @@ timeout 10
prompt 1
label linux
kernel linux
- append initrd=rootfs.gz root=/dev/ram0
+ append initrd=rootfs.gz root=/dev/ram0
diff --git a/examples/busybox.spec b/examples/busybox.spec
index 188b09b29..3986436c1 100644
--- a/examples/busybox.spec
+++ b/examples/busybox.spec
@@ -39,6 +39,6 @@ make PREFIX=$RPM_BUILD_ROOT install
%Clean
rm -rf $RPM_BUILD_ROOT
-%Files
+%Files
%defattr(-,root,root)
/
diff --git a/examples/depmod.pl b/examples/depmod.pl
index ea29e8883..9af192208 100755
--- a/examples/depmod.pl
+++ b/examples/depmod.pl
@@ -4,7 +4,7 @@
# Copyright (c) 2001 Erik Andersen <andersen@codepoet.org>
# Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com>
# Copyright (c) 2002 Steven J. Hill <shill@broadcom.com>
-# This program is free software; you can redistribute it and/or modify it
+# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
# TODO -- use strict mode...
@@ -54,13 +54,13 @@ if($basedir !~ m-/lib/modules-) {
warn "WARNING: base directory does not match ..../lib/modules\n";
}
-# Find the list of .o files living under $basedir
+# Find the list of .o files living under $basedir
#if ($verbose) { printf "Locating all modules\n"; }
my($ofile) = "";
my($file) = "";
my(@liblist) = ();
-find sub {
- if ( -f $_ && ! -d $_ ) {
+find sub {
+ if ( -f $_ && ! -d $_ ) {
$file = $File::Find::name;
if ( $file =~ /.o$/ ) {
push(@liblist, $file);
@@ -118,14 +118,14 @@ foreach $obj ( @liblist, $kernel ){
foreach $module (keys %$dep) {
$mod->{$module} = {};
foreach (@{$dep->{$module}}) {
- if( $exp->{$_} ) {
+ if( $exp->{$_} ) {
warn "resolved symbol $_ in file $exp->{$_}\n" if $verbose;
next if $exp->{$_} =~ /vmlinux/;
$mod->{$module}{$exp->{$_}} = 1;
} else {
warn "unresolved symbol $_ in file $module\n";
}
- }
+ }
}
# resolve the dependancies for each module
@@ -222,9 +222,9 @@ Be verbose (not implemented)
=head1 COPYRIGHT
Copyright (c) 2001 David Schleef <ds@schleef.org>
-Copyright (c) 2001 Erik Andersen <andersen@lineo.com>
+Copyright (c) 2001 Erik Andersen <andersen@codepoet.org>
Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com>
-This program is free software; you can redistribute it and/or modify it
+This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=head1 AUTHOR
@@ -233,5 +233,5 @@ David Schleef <ds@schleef.org>
=cut
-# $Id: depmod.pl,v 1.3 2003/07/14 21:20:51 andersen Exp $
+# $Id: depmod.pl,v 1.4 2004/03/15 08:28:33 andersen Exp $
diff --git a/examples/inittab b/examples/inittab
index 38df92497..ce711ac6c 100644
--- a/examples/inittab
+++ b/examples/inittab
@@ -1,6 +1,6 @@
# /etc/inittab init(8) configuration for BusyBox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
#
# Note, BusyBox init doesn't support runlevels. The runlevels field is
@@ -22,7 +22,7 @@
#
# <runlevels>: The runlevels field is completely ignored.
#
-# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
+# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
# restart, ctrlaltdel, and shutdown.
#
# Note: askfirst acts just like respawn, but before running the specified
diff --git a/examples/udhcp/udhcpd.conf b/examples/udhcp/udhcpd.conf
index 2b93e0fae..00105b3e5 100644
--- a/examples/udhcp/udhcpd.conf
+++ b/examples/udhcp/udhcpd.conf
@@ -33,7 +33,7 @@ interface eth0 #default: eth0
#auto_time 7200 #default: 7200 (2 hours)
-# The amount of time that an IP will be reserved (leased) for if a
+# The amount of time that an IP will be reserved (leased) for if a
# DHCP decline message is received (seconds).
#decline_time 3600 #default: 3600 (1 hour)
diff --git a/examples/undeb b/examples/undeb
index a72e1e2ba..37104e9d8 100644
--- a/examples/undeb
+++ b/examples/undeb
@@ -8,12 +8,12 @@ usage() {
echo "Usage: undeb -c package.deb <Print control file info>"
echo " undeb -l package.deb <List contents of deb package>"
echo " undeb -x package.deb /foo/boo <Extract deb package to this directory,"
-echo " put . for current directory>"
+echo " put . for current directory>"
exit
}
deb=$2
-
+
exist() {
if [ "$deb" = "" ]; then
usage
@@ -30,11 +30,11 @@ exist
type more >/dev/null 2>&1 && pager=more
type less >/dev/null 2>&1 && pager=less
[ "$pager" = "" ] && echo "No pager found!" && exit
-(ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager
+(ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager
exit
elif [ "$1" = "-c" ]; then
exist
-ar -p $deb control.tar.gz | tar -xzO *control
+ar -p $deb control.tar.gz | tar -xzO *control
exit
elif [ "$1" = "-x" ]; then
exist
@@ -44,7 +44,7 @@ elif [ ! -d "$3" ]; then
echo "No such directory $3!"
exit
fi
-ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit
+ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit
echo
echo "Extracted $deb to $3!"
exit
diff --git a/examples/unrpm b/examples/unrpm
index 376286a6f..7fd3676f6 100644
--- a/examples/unrpm
+++ b/examples/unrpm
@@ -7,12 +7,12 @@
usage() {
echo "Usage: unrpm -l package.rpm <List contents of rpm package>"
echo " unrpm -x package.rpm /foo/boo <Extract rpm package to this directory,"
-echo " put . for current directory>"
+echo " put . for current directory>"
exit
}
rpm=$2
-
+
exist() {
if [ "$rpm" = "" ]; then
usage
diff --git a/findutils/Config.in b/findutils/Config.in
index a432ad876..3143bd438 100644
--- a/findutils/Config.in
+++ b/findutils/Config.in
@@ -95,7 +95,7 @@ config CONFIG_XARGS
default n
help
xargs is used to execute a specified command on
- every item from standard input.
+ every item from standard input.
config CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION
bool " Enable prompt and confirmation option -p"
diff --git a/findutils/Makefile b/findutils/Makefile
index fffee8f2c..ba65a0e1d 100644
--- a/findutils/Makefile
+++ b/findutils/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/findutils/Makefile.in b/findutils/Makefile.in
index 6413a7fd1..2d2f242a0 100644
--- a/findutils/Makefile.in
+++ b/findutils/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/findutils/find.c b/findutils/find.c
index 661030460..11a838e9f 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -2,7 +2,7 @@
/*
* Mini find implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* Reworked by David Douthitt <n9ubh@callsign.net> and
* Matt Kraai <kraai@alumni.carnegiemellon.edu>.
@@ -98,7 +98,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
time_t mtime_secs = mtime_days * 24 * 60 * 60;
if (!((isdigit(mtime_char) && file_age >= mtime_secs &&
file_age < mtime_secs + 24 * 60 * 60) ||
- (mtime_char == '+' && file_age >= mtime_secs + 24 * 60 * 60) ||
+ (mtime_char == '+' && file_age >= mtime_secs + 24 * 60 * 60) ||
(mtime_char == '-' && file_age < mtime_secs)))
goto no_match;
}
@@ -234,13 +234,13 @@ int find_main(int argc, char **argv)
xdev_dev [0] = stbuf. st_dev;
}
else {
-
+
for (i = 1; i < firstopt; i++) {
if ( stat ( argv [i], &stbuf ) < 0 )
bb_error_msg_and_die("could not stat '%s'", argv [i] );
xdev_dev [i-1] = stbuf. st_dev;
}
- }
+ }
#endif
#ifdef CONFIG_FEATURE_FIND_NEWER
} else if (strcmp(argv[i], "-newer") == 0) {
diff --git a/findutils/grep.c b/findutils/grep.c
index 241099c79..229508cda 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -2,7 +2,7 @@
* Mini grep implementation for busybox using libc regex.
*
* Copyright (C) 1999,2000,2001 by Lineo, inc. and Mark Whitley
- * Copyright (C) 1999,2000,2001 by Mark Whitley <markw@codepoet.org>
+ * Copyright (C) 1999,2000,2001 by Mark Whitley <markw@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -116,7 +116,7 @@ static int grep_file(FILE *file)
int print_n_lines_after = 0;
int curpos = 0; /* track where we are in the circular 'before' buffer */
int idx = 0; /* used for iteration through the circular buffer */
-#endif /* CONFIG_FEATURE_GREP_CONTEXT */
+#endif /* CONFIG_FEATURE_GREP_CONTEXT */
while ((line = bb_get_chomped_line_from_file(file)) != NULL) {
llist_t *pattern_ptr = pattern_head;
@@ -190,7 +190,7 @@ static int grep_file(FILE *file)
/* make a note that we need to print 'after' lines */
print_n_lines_after = lines_after;
-#endif /* CONFIG_FEATURE_GREP_CONTEXT */
+#endif /* CONFIG_FEATURE_GREP_CONTEXT */
print_line(line, linenum, ':');
}
}
@@ -209,7 +209,7 @@ static int grep_file(FILE *file)
print_line(line, linenum, '-');
print_n_lines_after--;
}
-#endif /* CONFIG_FEATURE_GREP_CONTEXT */
+#endif /* CONFIG_FEATURE_GREP_CONTEXT */
free(line);
}
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 8d7e813b5..16b94e20f 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -96,12 +96,12 @@ static int xargs_exec(char *const *args)
return 124;
}
if (WIFSTOPPED(status)) {
- bb_error_msg("%s: stopped by signal %d",
+ bb_error_msg("%s: stopped by signal %d",
args[0], WSTOPSIG(status));
return 125;
}
if (WIFSIGNALED(status)) {
- bb_error_msg("%s: terminated by signal %d",
+ bb_error_msg("%s: terminated by signal %d",
args[0], WTERMSIG(status));
return 125;
}
@@ -129,7 +129,7 @@ static int eof_stdin_detected;
|| (c) == '\f' || (c) == '\v')
#ifdef CONFIG_FEATURE_XARGS_SUPPORT_QUOTES
-static xlist_t *process_stdin(xlist_t * list_arg,
+static xlist_t *process_stdin(xlist_t * list_arg,
const char *eof_str, size_t mc, char *buf)
{
#define NORM 0
@@ -200,7 +200,7 @@ set:
}
if (state == SPACE) { /* word's delimiter or EOF detected */
if (q) {
- bb_error_msg_and_die("unmatched %s quote",
+ bb_error_msg_and_die("unmatched %s quote",
q == '\'' ? "single" : "double");
}
/* word loaded */
@@ -234,7 +234,7 @@ set:
}
#else
/* The variant does not support single quotes, double quotes or backslash */
-static xlist_t *process_stdin(xlist_t * list_arg,
+static xlist_t *process_stdin(xlist_t * list_arg,
const char *eof_str, size_t mc, char *buf)
{
@@ -496,8 +496,8 @@ int xargs_main(int argc, char **argv)
read_args = process0_stdin;
#endif
- while ((list = READ_ARGS(list, eof_str, n_max_chars, max_chars)) != NULL ||
- (opt & OPT_NO_EMPTY) == 0)
+ while ((list = READ_ARGS(list, eof_str, n_max_chars, max_chars)) != NULL ||
+ (opt & OPT_NO_EMPTY) == 0)
{
opt |= OPT_NO_EMPTY;
n = 0;
@@ -574,7 +574,7 @@ const char *bb_applet_name = "debug stuff usage";
void bb_show_usage(void)
{
- fprintf(stderr, "Usage: %s [-p] [-r] [-t] -[x] [-n max_arg] [-s max_chars]\n",
+ fprintf(stderr, "Usage: %s [-p] [-r] [-t] -[x] [-n max_arg] [-s max_chars]\n",
bb_applet_name);
exit(1);
}
diff --git a/include/busybox.h b/include/busybox.h
index ba4edcaba..f6f575957 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
+ * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
* Permission has been granted to redistribute this code under the GPL.
*
*/
@@ -81,7 +81,7 @@ extern const struct BB_applet applets[];
* applet usage strings. These are all of the form:
* extern int foo_main(int argc, char **argv);
* extern const char foo_usage[];
- * These are all autogenerated from the set of currently defined applets.
+ * These are all autogenerated from the set of currently defined applets.
*/
#define PROTOTYPES
#include "applets.h"
diff --git a/include/libbb.h b/include/libbb.h
index 7814c4b8e..a01a0ca3e 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
+ * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
* Permission has been granted to redistribute this code under the GPL.
*
*/
@@ -130,7 +130,7 @@ extern int get_kernel_revision(void);
extern int get_console_fd(void);
extern struct mntent *find_mount_point(const char *name, const char *table);
-extern void write_mtab(char* blockDevice, char* directory,
+extern void write_mtab(char* blockDevice, char* directory,
char* filesystemType, long flags, char* string_flags);
extern void erase_mtab(const char * name);
extern long *find_pid_by_name( const char* pidName);
@@ -276,7 +276,7 @@ enum {
MEGABYTE = (KILOBYTE*1024),
GIGABYTE = (MEGABYTE*1024)
};
-const char *make_human_readable_str(unsigned long long size,
+const char *make_human_readable_str(unsigned long long size,
unsigned long block_size, unsigned long display_unit);
int bb_ask_confirmation(void);
diff --git a/include/unarchive.h b/include/unarchive.h
index bbf11b557..1679b73ab 100644
--- a/include/unarchive.h
+++ b/include/unarchive.h
@@ -37,7 +37,7 @@ typedef struct archive_handle_s {
/* process the data component, e.g. extract to filesystem */
void (*action_data)(struct archive_handle_s *);
-
+
/* How to process any sub archive, e.g. get_header_tar_gz */
char (*action_data_subarchive)(struct archive_handle_s *);
diff --git a/init/Makefile b/init/Makefile
index 816230bf3..d23532735 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/init/Makefile.in b/init/Makefile.in
index 1b13f693b..039921435 100644
--- a/init/Makefile.in
+++ b/init/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/init/halt.c b/init/halt.c
index decdaeafd..bfc0042fa 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -2,7 +2,7 @@
/*
* Mini halt implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/init/init.c b/init/init.c
index d332ccdbe..159b53912 100644
--- a/init/init.c
+++ b/init/init.c
@@ -3,7 +3,7 @@
* Mini init implementation for busybox
*
* Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
* Adjusted by so many folks, it's impossible to keep track.
*
* This program is free software; you can redistribute it and/or modify
@@ -22,7 +22,7 @@
*
*/
-/* Turn this on to disable all the dangerous
+/* Turn this on to disable all the dangerous
rebooting stuff when debugging.
#define DEBUG_INIT
*/
@@ -97,7 +97,7 @@ struct serial_struct {
#if defined CONFIG_FEATURE_INIT_COREDUMPS
/*
- * When a file named CORE_ENABLE_FLAG_FILE exists, setrlimit is called
+ * When a file named CORE_ENABLE_FLAG_FILE exists, setrlimit is called
* before processes are spawned to set core file size as unlimited.
* This is for debugging only. Don't use this is production, unless
* you want core dumps lying about....
@@ -351,7 +351,7 @@ static void console_init(void)
if ((s = getenv("CONSOLE")) != NULL || (s = getenv("console")) != NULL) {
safe_strncpy(console, s, sizeof(console));
#if #cpu(sparc)
- /* sparc kernel supports console=tty[ab] parameter which is also
+ /* sparc kernel supports console=tty[ab] parameter which is also
* passed to init, so catch it here */
/* remap tty[ab] to /dev/ttyS[01] */
if (strcmp(s, "ttya") == 0)
@@ -555,8 +555,8 @@ static pid_t run(const struct init_action *a)
/*
Interactive shells want to see a dash in argv[0]. This
- typically is handled by login, argv will be setup this
- way if a dash appears at the front of the command path
+ typically is handled by login, argv will be setup this
+ way if a dash appears at the front of the command path
(like "-/bin/sh").
*/
@@ -585,7 +585,7 @@ static pid_t run(const struct init_action *a)
* before the user wants it. This is critical if swap is not
* enabled and the system has low memory. Generally this will
* be run on the second virtual console, and the first will
- * be allowed to start a shell or whatever an init script
+ * be allowed to start a shell or whatever an init script
* specifies.
*/
messageD(LOG, "Waiting for enter to start '%s'"
@@ -610,7 +610,7 @@ static pid_t run(const struct init_action *a)
}
#endif
- /* Now run it. The new program will take over this PID,
+ /* Now run it. The new program will take over this PID,
* so nothing further in init.c should be run. */
execv(cmdpath, cmd);
@@ -672,7 +672,7 @@ static void init_reboot(unsigned long magic)
{
pid_t pid;
/* We have to fork here, since the kernel calls do_exit(0) in
- * linux/kernel/sys.c, which can cause the machine to panic when
+ * linux/kernel/sys.c, which can cause the machine to panic when
* the init process is killed.... */
if ((pid = fork()) == 0) {
reboot(magic);
@@ -866,7 +866,7 @@ static void new_init_action(int action, const char *command, const char *cons)
/* Append to the end of the list */
for (a = init_action_list; a && a->next; a = a->next) {
/* don't enter action if it's already in the list */
- if ((strcmp(a->command, command) == 0) &&
+ if ((strcmp(a->command, command) == 0) &&
(strcmp(a->terminal, cons) ==0)) {
free(new_action);
return;
@@ -934,9 +934,9 @@ static void check_memory(void)
/* NOTE that if CONFIG_FEATURE_USE_INITTAB is NOT defined,
* then parse_inittab() simply adds in some default
- * actions(i.e., runs INIT_SCRIPT and then starts a pair
- * of "askfirst" shells). If CONFIG_FEATURE_USE_INITTAB
- * _is_ defined, but /etc/inittab is missing, this
+ * actions(i.e., runs INIT_SCRIPT and then starts a pair
+ * of "askfirst" shells). If CONFIG_FEATURE_USE_INITTAB
+ * _is_ defined, but /etc/inittab is missing, this
* results in the same set of default behaviors.
*/
static void parse_inittab(void)
@@ -1053,7 +1053,7 @@ static void reload_signal(int sig)
run_actions(RESPAWN);
return;
}
-
+
extern int init_main(int argc, char **argv)
{
struct init_action *a;
@@ -1083,7 +1083,7 @@ extern int init_main(int argc, char **argv)
signal(SIGSTOP, stop_handler);
signal(SIGTSTP, stop_handler);
- /* Turn off rebooting via CTL-ALT-DEL -- we get a
+ /* Turn off rebooting via CTL-ALT-DEL -- we get a
* SIGINT on CAD so we can shut things down gracefully... */
init_reboot(RB_DISABLE_CAD);
#endif
@@ -1125,7 +1125,7 @@ extern int init_main(int argc, char **argv)
/* NOTE that if CONFIG_FEATURE_USE_INITTAB is NOT defined,
* then parse_inittab() simply adds in some default
- * actions(i.e., runs INIT_SCRIPT and then starts a pair
+ * actions(i.e., runs INIT_SCRIPT and then starts a pair
* of "askfirst" shells */
parse_inittab();
}
diff --git a/init/init_shared.c b/init/init_shared.c
index 4b822fa94..0ad55a433 100644
--- a/init/init_shared.c
+++ b/init/init_shared.c
@@ -2,7 +2,7 @@
/*
* Stuff shared between init, reboot, halt, and poweroff
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/init/poweroff.c b/init/poweroff.c
index e5d45dfa0..81695087d 100644
--- a/init/poweroff.c
+++ b/init/poweroff.c
@@ -2,7 +2,7 @@
/*
* Mini poweroff implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/init/reboot.c b/init/reboot.c
index 185152a71..ca4e9a240 100644
--- a/init/reboot.c
+++ b/init/reboot.c
@@ -2,7 +2,7 @@
/*
* Mini reboot implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/Makefile b/libbb/Makefile
index 774cc75ed..fbcb12330 100644
--- a/libbb/Makefile
+++ b/libbb/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/libbb/README b/libbb/README
index b92910055..4f28f7e34 100644
--- a/libbb/README
+++ b/libbb/README
@@ -1,11 +1,11 @@
Please see the LICENSE file for copyright information (GPLv2)
-
+
libbb is BusyBox's utility library. All of this stuff used to be stuffed into
a single file named utility.c. When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time). If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.
- Erik Andersen
+ Erik Andersen
<andersen@codepoet.org>
diff --git a/libbb/bb_asprintf.c b/libbb/bb_asprintf.c
index 7075b46de..a3ba42454 100644
--- a/libbb/bb_asprintf.c
+++ b/libbb/bb_asprintf.c
@@ -11,7 +11,7 @@ void bb_xasprintf(char **string_ptr, const char *format, ...)
{
va_list p;
int r;
-
+
va_start(p, format);
r = vasprintf(string_ptr, format, p);
va_end(p);
diff --git a/libbb/chomp.c b/libbb/chomp.c
index 4fcbb263d..774e533d4 100644
--- a/libbb/chomp.c
+++ b/libbb/chomp.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
@@ -29,7 +29,7 @@
void chomp(char *s)
{
char *lc = last_char_is(s, '\n');
-
+
if(lc)
*lc = 0;
}
diff --git a/libbb/concat_path_file.c b/libbb/concat_path_file.c
index f0ce3d91c..77c054530 100644
--- a/libbb/concat_path_file.c
+++ b/libbb/concat_path_file.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/libbb/copyfd.c b/libbb/copyfd.c
index 00115e2c9..bf0a390a3 100644
--- a/libbb/copyfd.c
+++ b/libbb/copyfd.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/correct_password.c b/libbb/correct_password.c
index 396253614..1da83c441 100644
--- a/libbb/correct_password.c
+++ b/libbb/correct_password.c
@@ -49,14 +49,14 @@
int correct_password ( const struct passwd *pw )
{
char *unencrypted, *encrypted, *correct;
-
+
#ifdef CONFIG_FEATURE_SHADOWPASSWDS
if (( strcmp ( pw-> pw_passwd, "x" ) == 0 ) || ( strcmp ( pw-> pw_passwd, "*" ) == 0 )) {
struct spwd *sp = getspnam ( pw-> pw_name );
-
+
if ( !sp )
bb_error_msg_and_die ( "no valid shadow password" );
-
+
correct = sp-> sp_pwdp;
}
else
diff --git a/libbb/device_open.c b/libbb/device_open.c
index abfe2318a..61f954f46 100644
--- a/libbb/device_open.c
+++ b/libbb/device_open.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/dump.c b/libbb/dump.c
index 5046b926b..f169da677 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -248,8 +248,8 @@ static void rewrite(FS * fs)
pr->cchar = pr->fmt + (p1 - fmtp);
/* DBU:[dave@cray.com] w/o this, trailing fmt text, space is lost.
- * Skip subsequent text and up to the next % sign and tack the
- * additional text onto fmt: eg. if fmt is "%x is a HEX number",
+ * Skip subsequent text and up to the next % sign and tack the
+ * additional text onto fmt: eg. if fmt is "%x is a HEX number",
* we lose the " is a HEX number" part of fmt.
*/
for (p3 = p2; *p3 && *p3 != '%'; p3++);
diff --git a/libbb/error_msg.c b/libbb/error_msg.c
index dbb25b7c9..18811b8d1 100644
--- a/libbb/error_msg.c
+++ b/libbb/error_msg.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/error_msg_and_die.c b/libbb/error_msg_and_die.c
index 433f29d0f..0937658a3 100644
--- a/libbb/error_msg_and_die.c
+++ b/libbb/error_msg_and_die.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/fgets_str.c b/libbb/fgets_str.c
index 72fde58d1..bf828be95 100644
--- a/libbb/fgets_str.c
+++ b/libbb/fgets_str.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/libbb/find_mount_point.c b/libbb/find_mount_point.c
index b63203852..83824de9e 100644
--- a/libbb/find_mount_point.c
+++ b/libbb/find_mount_point.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c
index 77fa0179e..930710f32 100644
--- a/libbb/find_pid_by_name.c
+++ b/libbb/find_pid_by_name.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,15 +25,15 @@
#include <stdlib.h>
#include "libbb.h"
-#define COMM_LEN 16 /* synchronize with size of comm in struct task_struct
+#define COMM_LEN 16 /* synchronize with size of comm in struct task_struct
in /usr/include/linux/sched.h */
/* find_pid_by_name()
- *
+ *
* Modified by Vladimir Oleynik for use with libbb/procps.c
* This finds the pid of the specified process.
- * Currently, it's implemented by rummaging through
+ * Currently, it's implemented by rummaging through
* the proc filesystem.
*
* Returns a list of all matching PIDs
diff --git a/libbb/find_root_device.c b/libbb/find_root_device.c
index 836ce44d5..81824a216 100644
--- a/libbb/find_root_device.c
+++ b/libbb/find_root_device.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@ extern char *find_real_root_device_name(const char* name)
char *fileName = NULL;
dev_t dev;
- if (stat("/", &rootStat) != 0)
+ if (stat("/", &rootStat) != 0)
bb_perror_msg("could not stat '/'");
else {
/* This check is here in case they pass in /dev name */
@@ -45,7 +45,7 @@ extern char *find_real_root_device_name(const char* name)
dev = rootStat.st_dev;
dir = opendir("/dev");
- if (!dir)
+ if (!dir)
bb_perror_msg("could not open '/dev'");
else {
while((entry = readdir(dir)) != NULL) {
@@ -59,9 +59,9 @@ extern char *find_real_root_device_name(const char* name)
/* Some char devices have the same dev_t as block
* devices, so make sure this is a block device */
- if (stat(fileName, &statBuf) == 0 &&
+ if (stat(fileName, &statBuf) == 0 &&
S_ISBLK(statBuf.st_mode)!=0 &&
- statBuf.st_rdev == dev)
+ statBuf.st_rdev == dev)
break;
free(fileName);
fileName=NULL;
diff --git a/libbb/full_read.c b/libbb/full_read.c
index f4b332dca..221fc947b 100644
--- a/libbb/full_read.c
+++ b/libbb/full_read.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/full_write.c b/libbb/full_write.c
index 30c7a5079..30de4078a 100644
--- a/libbb/full_write.c
+++ b/libbb/full_write.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/get_console.c b/libbb/get_console.c
index 0dc24cb78..bfb7468a8 100644
--- a/libbb/get_console.c
+++ b/libbb/get_console.c
@@ -29,7 +29,7 @@
-/* From <linux/kd.h> */
+/* From <linux/kd.h> */
static const int KDGKBTYPE = 0x4B33; /* get keyboard type */
diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c
index 9a831f184..6d12b21c4 100644
--- a/libbb/get_line_from_file.c
+++ b/libbb/get_line_from_file.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/libbb/get_terminal_width_height.c b/libbb/get_terminal_width_height.c
index 69f6a17e5..ef90463fb 100644
--- a/libbb/get_terminal_width_height.c
+++ b/libbb/get_terminal_width_height.c
@@ -2,7 +2,7 @@
/*
* Determine the width and height of the terminal.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -30,7 +30,7 @@
/* It is perfectly ok to pass in a NULL for either width or for
* height, in which case that value will not be set. It is also
- * perfectly ok to have CONFIG_FEATURE_AUTOWIDTH disabled, in
+ * perfectly ok to have CONFIG_FEATURE_AUTOWIDTH disabled, in
* which case you will always get 80x24 */
void get_terminal_width_height(int fd, int *width, int *height)
{
diff --git a/libbb/hash_fd.c b/libbb/hash_fd.c
index e79d6d6f6..e37ac549a 100644
--- a/libbb/hash_fd.c
+++ b/libbb/hash_fd.c
@@ -4,7 +4,7 @@
*
* Copyright (C) 2003 Glenn L. McGrath
* Copyright (C) 2003 Erik Andersen
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@@ -47,27 +47,27 @@
LICENSE TERMS
- The free distribution and use of this software in both source and binary
+ The free distribution and use of this software in both source and binary
form is allowed (with or without changes) provided that:
- 1. distributions of this source code include the above copyright
+ 1. distributions of this source code include the above copyright
notice, this list of conditions and the following disclaimer;
2. distributions in binary form include the above copyright
notice, this list of conditions and the following disclaimer
in the documentation and/or other associated materials;
- 3. the copyright holder's name is not used to endorse products
- built using this software without specific written permission.
+ 3. the copyright holder's name is not used to endorse products
+ built using this software without specific written permission.
ALTERNATIVELY, provided that this notice is retained in full, this product
may be distributed under the terms of the GNU General Public License (GPL),
in which case the provisions of the GPL apply INSTEAD OF those given above.
-
+
DISCLAIMER
This software is provided 'as is' with no explicit or implied warranties
- in respect of its properties, including, but not limited to, correctness
+ in respect of its properties, including, but not limited to, correctness
and/or fitness for purpose.
---------------------------------------------------------------------------
Issue Date: 10/11/2002
@@ -805,7 +805,7 @@ extern int hash_fd(int src_fd, const size_t size, const uint8_t hash_algo,
cx = &md5_cx;
}
#endif
-
+
/* Initialize the computation context. */
#ifdef CONFIG_SHA1SUM
if (hash_algo == HASH_SHA1) {
diff --git a/libbb/herror_msg.c b/libbb/herror_msg.c
index fb2a17b73..87ec15acc 100644
--- a/libbb/herror_msg.c
+++ b/libbb/herror_msg.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/herror_msg_and_die.c b/libbb/herror_msg_and_die.c
index b53a56de8..5c765f1be 100644
--- a/libbb/herror_msg_and_die.c
+++ b/libbb/herror_msg_and_die.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/human_readable.c b/libbb/human_readable.c
index 656889150..ad9025c08 100644
--- a/libbb/human_readable.c
+++ b/libbb/human_readable.c
@@ -13,8 +13,8 @@
* representations (say, powers of 1024) and manipulating coefficients.
* The base ten "bytes" output could be handled similarly.
*
- * 2) This routine always outputs a decimal point and a tenths digit when
- * display_unit != 0. Hence, it isn't uncommon for the returned string
+ * 2) This routine always outputs a decimal point and a tenths digit when
+ * display_unit != 0. Hence, it isn't uncommon for the returned string
* to have a length of 5 or 6.
*
* It might be nice to add a flag to indicate no decimal digits in
@@ -28,7 +28,7 @@
#include <stdio.h>
#include "libbb.h"
-const char *make_human_readable_str(unsigned long long size,
+const char *make_human_readable_str(unsigned long long size,
unsigned long block_size, unsigned long display_unit)
{
/* The code will adjust for additional (appended) units. */
@@ -37,7 +37,7 @@ const char *make_human_readable_str(unsigned long long size,
static const char fmt_tenths[] = "%Lu.%d%c";
static char str[21]; /* Sufficient for 64 bit unsigned integers. */
-
+
unsigned long long val;
int frac;
const char *u;
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c
index ea82e8ce6..fbcd81327 100644
--- a/libbb/inode_hash.c
+++ b/libbb/inode_hash.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
@@ -69,7 +69,7 @@ void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name)
int i;
size_t s;
ino_dev_hashtable_bucket_t *bucket;
-
+
i = hash_inode(statbuf->st_ino);
s = name ? strlen(name) : 0;
bucket = xmalloc(sizeof(ino_dev_hashtable_bucket_t) + s);
diff --git a/libbb/interface.c b/libbb/interface.c
index 28007f443..f44e866df 100644
--- a/libbb/interface.c
+++ b/libbb/interface.c
@@ -1,5 +1,5 @@
/*
- * stolen from net-tools-1.59 and stripped down for busybox by
+ * stolen from net-tools-1.59 and stripped down for busybox by
* Erik Andersen <andersen@codepoet.org>
*
* Heavily modified by Manuel Novoa III Mar 12, 2001
@@ -15,7 +15,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
- * Version: $Id: interface.c,v 1.20 2003/08/29 11:34:08 bug1 Exp $
+ * Version: $Id: interface.c,v 1.21 2004/03/15 08:28:42 andersen Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
@@ -31,17 +31,17 @@
*
* {1.34} - 19980630 - Arnaldo Carvalho de Melo <acme@conectiva.com.br>
* - gettext instead of catgets for i18n
- * 10/1998 - Andi Kleen. Use interface list primitives.
- * 20001008 - Bernd Eckenfels, Patch from RH for setting mtu
+ * 10/1998 - Andi Kleen. Use interface list primitives.
+ * 20001008 - Bernd Eckenfels, Patch from RH for setting mtu
* (default AF was wrong)
*/
/* #define KEEP_UNUSED */
-/*
- *
+/*
+ *
* Protocol Families.
- *
+ *
*/
#define HAVE_AFINET 1
#undef HAVE_AFIPX
@@ -51,10 +51,10 @@
#undef HAVE_AFECONET
#undef HAVE_AFASH
-/*
- *
+/*
+ *
* Device Hardware types.
- *
+ *
*/
#define HAVE_HWETHER 1
#define HAVE_HWPPP 1
@@ -1822,7 +1822,7 @@ static void ife_print(struct interface *ptr)
hw = get_hwntype(-1);
printf(_("%-9.9s Link encap:%s "), ptr->name, _(hw->title));
- /* For some hardware types (eg Ash, ATM) we don't print the
+ /* For some hardware types (eg Ash, ATM) we don't print the
hardware address if it's null. */
if (hw->print != NULL && (!(hw_null_address(hw, ptr->hwaddr) &&
hw->suppress_null_addr)))
@@ -2011,7 +2011,7 @@ static void ife_print(struct interface *ptr)
printf(" ");
if (ptr->map.irq)
printf(_("Interrupt:%d "), ptr->map.irq);
- if (ptr->map.base_addr >= 0x100) /* Only print devices using it for
+ if (ptr->map.base_addr >= 0x100) /* Only print devices using it for
I/O maps */
printf(_("Base address:0x%lx "),
(unsigned long) ptr->map.base_addr);
diff --git a/libbb/isdirectory.c b/libbb/isdirectory.c
index e9b106aa3..f3caaf178 100644
--- a/libbb/isdirectory.c
+++ b/libbb/isdirectory.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
+ * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
* Permission has been granted to redistribute this code under the GPL.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/libbb/kernel_version.c b/libbb/kernel_version.c
index 740ac523c..e01aafa25 100644
--- a/libbb/kernel_version.c
+++ b/libbb/kernel_version.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/loop.c b/libbb/loop.c
index 4d73dc4cc..81d1f0ab6 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/messages.c b/libbb/messages.c
index adfd1ffcc..671c452d2 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/module_syscalls.c b/libbb/module_syscalls.c
index 81fb8f255..a2ff5284a 100644
--- a/libbb/module_syscalls.c
+++ b/libbb/module_syscalls.c
@@ -2,7 +2,7 @@
/*
* some system calls possibly missing from libc
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/mtab.c b/libbb/mtab.c
index a62169a26..528422567 100644
--- a/libbb/mtab.c
+++ b/libbb/mtab.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/mtab_file.c b/libbb/mtab_file.c
index 58b0f66e2..42504e81f 100644
--- a/libbb/mtab_file.c
+++ b/libbb/mtab_file.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@
#include "libbb.h"
-/* Busybox mount uses either /proc/mounts or /etc/mtab to
- * get the list of currently mounted filesystems */
+/* Busybox mount uses either /proc/mounts or /etc/mtab to
+ * get the list of currently mounted filesystems */
#if defined CONFIG_FEATURE_MTAB_SUPPORT
const char bb_path_mtab_file[] = CONFIG_FEATURE_MTAB_FILENAME;
#else
diff --git a/libbb/my_getgrgid.c b/libbb/my_getgrgid.c
index 5a36c890d..907a47486 100644
--- a/libbb/my_getgrgid.c
+++ b/libbb/my_getgrgid.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/my_getgrnam.c b/libbb/my_getgrnam.c
index 906727b76..22a617cc8 100644
--- a/libbb/my_getgrnam.c
+++ b/libbb/my_getgrnam.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/my_getpwnam.c b/libbb/my_getpwnam.c
index 57c2a01ec..a9fd0cd09 100644
--- a/libbb/my_getpwnam.c
+++ b/libbb/my_getpwnam.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/my_getpwnamegid.c b/libbb/my_getpwnamegid.c
index 1dd5674ec..d1457900e 100644
--- a/libbb/my_getpwnamegid.c
+++ b/libbb/my_getpwnamegid.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/my_getpwuid.c b/libbb/my_getpwuid.c
index ec2fcce74..21a037f75 100644
--- a/libbb/my_getpwuid.c
+++ b/libbb/my_getpwuid.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/parse_mode.c b/libbb/parse_mode.c
index 7132c76ef..185957bc3 100644
--- a/libbb/parse_mode.c
+++ b/libbb/parse_mode.c
@@ -31,7 +31,7 @@
extern int bb_parse_mode(const char *s, mode_t *current_mode)
{
- static const mode_t who_mask[] = {
+ static const mode_t who_mask[] = {
S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO, /* a */
S_ISUID | S_IRWXU, /* u */
S_ISGID | S_IRWXG, /* g */
diff --git a/libbb/parse_number.c b/libbb/parse_number.c
index 92ad6a216..5262239ff 100644
--- a/libbb/parse_number.c
+++ b/libbb/parse_number.c
@@ -34,7 +34,7 @@ unsigned long bb_xparse_number(const char *numstr,
unsigned long int r;
char *e;
int old_errno;
-
+
/* Since this is a lib function, we're not allowed to reset errno to 0.
* Doing so could break an app that is deferring checking of errno.
* So, save the old value so that we can restore it if successful. */
diff --git a/libbb/perror_msg.c b/libbb/perror_msg.c
index 0928e4371..8ba053188 100644
--- a/libbb/perror_msg.c
+++ b/libbb/perror_msg.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/perror_msg_and_die.c b/libbb/perror_msg_and_die.c
index 122f3972b..15bf0421e 100644
--- a/libbb/perror_msg_and_die.c
+++ b/libbb/perror_msg_and_die.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/print_file.c b/libbb/print_file.c
index 161b398fa..bd7108d2f 100644
--- a/libbb/print_file.c
+++ b/libbb/print_file.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/printf.c b/libbb/printf.c
index 3e69331c5..3c438b2c9 100644
--- a/libbb/printf.c
+++ b/libbb/printf.c
@@ -46,7 +46,7 @@
#include <stdarg.h>
#include "libbb.h"
-#if defined(__UCLIBC__)
+#if defined(__UCLIBC__)
# if defined(__FLAG_ERROR)
/* Using my newer stdio implementation. Unlocked macros are:
diff --git a/libbb/process_escape_sequence.c b/libbb/process_escape_sequence.c
index ef2717bdd..f5ac500fa 100644
--- a/libbb/process_escape_sequence.c
+++ b/libbb/process_escape_sequence.c
@@ -19,7 +19,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- *
+ *
*/
#include <stdio.h>
@@ -37,7 +37,7 @@ char bb_process_escape_sequence(const char **ptr)
unsigned int num_digits;
unsigned int r;
unsigned int n;
-
+
n = 0;
q = *ptr;
diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c
index ce6078539..727149d0c 100644
--- a/libbb/pw_encrypt.c
+++ b/libbb/pw_encrypt.c
@@ -2,7 +2,7 @@
/*
* Utility routine.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/read_package_field.c b/libbb/read_package_field.c
index abe8e06fd..4292689ca 100644
--- a/libbb/read_package_field.c
+++ b/libbb/read_package_field.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c
index 6ee59e8f1..d27629829 100644
--- a/libbb/recursive_action.c
+++ b/libbb/recursive_action.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -30,12 +30,12 @@
/*
- * Walk down all the directories under the specified
+ * Walk down all the directories under the specified
* location, and do something (something specified
* by the fileAction and dirAction function pointers).
*
- * Unfortunately, while nftw(3) could replace this and reduce
- * code size a bit, nftw() wasn't supported before GNU libc 2.1,
+ * Unfortunately, while nftw(3) could replace this and reduce
+ * code size a bit, nftw() wasn't supported before GNU libc 2.1,
* and so isn't sufficiently portable to take over since glibc2.1
* is so stinking huge.
*/
diff --git a/libbb/run_parts.c b/libbb/run_parts.c
index 0eb766086..607b84190 100644
--- a/libbb/run_parts.c
+++ b/libbb/run_parts.c
@@ -111,7 +111,7 @@ extern int run_parts(char **args, const unsigned char test_mode, char **env)
exitstatus = 1;
}
}
- }
+ }
else if (!S_ISDIR(st.st_mode)) {
bb_error_msg("component %s is not an executable plain file", filename);
exitstatus = 1;
@@ -121,6 +121,6 @@ extern int run_parts(char **args, const unsigned char test_mode, char **env)
free(filename);
}
free(namelist);
-
+
return(exitstatus);
}
diff --git a/libbb/run_shell.c b/libbb/run_shell.c
index 4855d763e..993b4e711 100644
--- a/libbb/run_shell.c
+++ b/libbb/run_shell.c
@@ -54,20 +54,20 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c
const char **args;
int argno = 1;
int additional_args_cnt = 0;
-
+
for ( args = additional_args; args && *args; args++ )
additional_args_cnt++;
args = (const char **) xmalloc (sizeof (char *) * ( 4 + additional_args_cnt ));
-
+
args [0] = bb_get_last_path_component ( bb_xstrdup ( shell ));
-
+
if ( loginshell ) {
char *args0;
bb_xasprintf ( &args0, "-%s", args [0] );
args [0] = args0;
}
-
+
if ( command ) {
args [argno++] = "-c";
args [argno++] = command;
diff --git a/libbb/safe_read.c b/libbb/safe_read.c
index 67f3268c5..92e1d8a4b 100644
--- a/libbb/safe_read.c
+++ b/libbb/safe_read.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/safe_strncpy.c b/libbb/safe_strncpy.c
index 08a2a0d9c..2016e6b52 100644
--- a/libbb/safe_strncpy.c
+++ b/libbb/safe_strncpy.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,11 +24,11 @@
-/* Like strncpy but make sure the resulting string is always 0 terminated. */
+/* Like strncpy but make sure the resulting string is always 0 terminated. */
extern char * safe_strncpy(char *dst, const char *src, size_t size)
-{
+{
dst[size-1] = '\0';
- return strncpy(dst, src, size-1);
+ return strncpy(dst, src, size-1);
}
diff --git a/libbb/safe_write.c b/libbb/safe_write.c
index 0ac6c2d96..201ea1cd3 100644
--- a/libbb/safe_write.c
+++ b/libbb/safe_write.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/setup_environment.c b/libbb/setup_environment.c
index b18f8967e..aeb285a53 100644
--- a/libbb/setup_environment.c
+++ b/libbb/setup_environment.c
@@ -52,13 +52,13 @@ void setup_environment ( const char *shell, int loginshell, int changeenv, const
{
if ( loginshell ) {
const char *term;
-
+
/* Change the current working directory to be the home directory
* of the user. It is a fatal error for this process to be unable
* to change to that directory. There is no "default" home
* directory.
* Some systems default to HOME=/
- */
+ */
if ( chdir ( pw-> pw_dir )) {
if ( chdir ( "/" )) {
syslog ( LOG_WARNING, "unable to cd to %s' for user %s'\n", pw-> pw_dir, pw-> pw_name );
diff --git a/libbb/syscalls.c b/libbb/syscalls.c
index 8ceb35695..9e89dbd39 100644
--- a/libbb/syscalls.c
+++ b/libbb/syscalls.c
@@ -2,7 +2,7 @@
/*
* some system calls possibly missing from libc
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/syslog_msg_with_name.c b/libbb/syslog_msg_with_name.c
index 4b530416a..ac472dbda 100644
--- a/libbb/syslog_msg_with_name.c
+++ b/libbb/syslog_msg_with_name.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/trim.c b/libbb/trim.c
index 75e7c2d43..38aa28231 100644
--- a/libbb/trim.c
+++ b/libbb/trim.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/libbb/u_signal_names.c b/libbb/u_signal_names.c
index 681358414..be444a97b 100644
--- a/libbb/u_signal_names.c
+++ b/libbb/u_signal_names.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/libbb/vdprintf.c b/libbb/vdprintf.c
index 2a19dd182..53fdbd37a 100644
--- a/libbb/vdprintf.c
+++ b/libbb/vdprintf.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c
index 9270290cd..07b37e4ad 100644
--- a/libbb/verror_msg.c
+++ b/libbb/verror_msg.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 2fd70ba1a..0601121ad 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -40,9 +40,9 @@ void vfork_daemon_rexec(int nochdir, int noclose,
int fd;
char **vfork_args;
int a = 0;
-
+
setsid();
-
+
if (!nochdir)
chdir("/");
@@ -73,6 +73,6 @@ void vfork_daemon_rexec(int nochdir, int noclose,
bb_perror_msg_and_die("vfork");
default: /* parent */
exit(0);
- }
+ }
}
#endif /* uClinux */
diff --git a/libbb/vherror_msg.c b/libbb/vherror_msg.c
index ffdfd5283..1560eb595 100644
--- a/libbb/vherror_msg.c
+++ b/libbb/vherror_msg.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/vperror_msg.c b/libbb/vperror_msg.c
index cd48af259..5c446967a 100644
--- a/libbb/vperror_msg.c
+++ b/libbb/vperror_msg.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/wfopen.c b/libbb/wfopen.c
index 368451c52..ab77cb19e 100644
--- a/libbb/wfopen.c
+++ b/libbb/wfopen.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 2443bb299..4cd22c74f 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -64,7 +64,7 @@ int xconnect(struct sockaddr_in *s_addr)
int s = socket(AF_INET, SOCK_STREAM, 0);
if (connect(s, (struct sockaddr_in *)s_addr, sizeof(struct sockaddr_in)) < 0)
{
- bb_perror_msg_and_die("Unable to connect to remote host (%s)",
+ bb_perror_msg_and_die("Unable to connect to remote host (%s)",
inet_ntoa(s_addr->sin_addr));
}
return s;
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index da3775a59..01b2f87bc 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -85,7 +85,7 @@ extern char * bb_xstrndup (const char *s, int n) {
bb_error_msg_and_die("bb_xstrndup bug");
t = xmalloc(++n);
-
+
return safe_strncpy(t,s,n);
}
#endif
@@ -104,7 +104,7 @@ FILE *bb_xfopen(const char *path, const char *mode)
extern int bb_xopen(const char *pathname, int flags)
{
int ret;
-
+
ret = open(pathname, flags, 0777);
if (ret == -1) {
bb_perror_msg_and_die("%s", pathname);
@@ -146,10 +146,10 @@ extern void bb_xread_all(int fd, void *buf, size_t count)
extern unsigned char bb_xread_char(int fd)
{
char tmp;
-
+
bb_xread_all(fd, &tmp, 1);
- return(tmp);
+ return(tmp);
}
#endif
diff --git a/libbb/xgetlarg.c b/libbb/xgetlarg.c
index ed5d3eb4f..56fb60e82 100644
--- a/libbb/xgetlarg.c
+++ b/libbb/xgetlarg.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * Copyright (C) 2003 Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 2003-2004 Erik Andersen <andersen@codepoet.org>
*/
diff --git a/libbb/xgetularg.c b/libbb/xgetularg.c
index d743520c3..e90085446 100644
--- a/libbb/xgetularg.c
+++ b/libbb/xgetularg.c
@@ -29,7 +29,7 @@
#include "libbb.h"
#ifdef L_xgetularg_bnd_sfx
-extern
+extern
unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
unsigned long lower,
unsigned long upper,
@@ -61,7 +61,7 @@ unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
bb_show_usage();
}
errno = old_errno; /* Ok. So restore errno. */
-
+
/* Do optional suffix parsing. Allow 'empty' suffix tables.
* Note that we also all nul suffixes with associated multipliers,
* to allow for scaling of the arg by some default multiplier. */
@@ -78,7 +78,7 @@ unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
}
++suffixes;
}
- }
+ }
/* Finally, check for illegal trailing chars and range limits. */
/* Note: although we allow leading space (via stroul), trailing space
@@ -92,7 +92,7 @@ unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
#endif
#ifdef L_xgetlarg_bnd_sfx
-extern
+extern
long bb_xgetlarg_bnd_sfx(const char *arg, int base,
long lower,
long upper,
@@ -124,7 +124,7 @@ long bb_xgetlarg_bnd_sfx(const char *arg, int base,
#endif
#ifdef L_getlarg10_sfx
-extern
+extern
long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes)
{
return bb_xgetlarg_bnd_sfx(arg, 10, LONG_MIN, LONG_MAX, suffixes);
@@ -132,7 +132,7 @@ long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes)
#endif
#ifdef L_xgetularg_bnd
-extern
+extern
unsigned long bb_xgetularg_bnd(const char *arg, int base,
unsigned long lower,
unsigned long upper)
@@ -142,7 +142,7 @@ unsigned long bb_xgetularg_bnd(const char *arg, int base,
#endif
#ifdef L_xgetularg10_bnd
-extern
+extern
unsigned long bb_xgetularg10_bnd(const char *arg,
unsigned long lower,
unsigned long upper)
@@ -152,7 +152,7 @@ unsigned long bb_xgetularg10_bnd(const char *arg,
#endif
#ifdef L_xgetularg10
-extern
+extern
unsigned long bb_xgetularg10(const char *arg)
{
return bb_xgetularg10_bnd(arg, 0, ULONG_MAX);
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c
index b8cfe617a..21a657dfc 100644
--- a/libbb/xreadlink.c
+++ b/libbb/xreadlink.c
@@ -14,10 +14,10 @@
#include "libbb.h"
extern char *xreadlink(const char *path)
-{
+{
static const int GROWBY = 80; /* how large we will grow strings by */
- char *buf = NULL;
+ char *buf = NULL;
int bufsize = 0, readsize = 0;
do {
@@ -27,10 +27,10 @@ extern char *xreadlink(const char *path)
bb_perror_msg("%s", path);
return NULL;
}
- }
+ }
while (bufsize < readsize + 1);
buf[readsize] = '\0';
return buf;
-}
+}
diff --git a/libbb/xregcomp.c b/libbb/xregcomp.c
index bfccfec69..fa6c0fa2b 100644
--- a/libbb/xregcomp.c
+++ b/libbb/xregcomp.c
@@ -2,7 +2,7 @@
/*
* Utility routines.
*
- * Copyright (C) many different people.
+ * Copyright (C) many different people.
* If you wrote this, please acknowledge your work.
*
* This program is free software; you can redistribute it and/or modify
diff --git a/libpwdgrp/Makefile b/libpwdgrp/Makefile
index 5c54be325..79dbb462f 100644
--- a/libpwdgrp/Makefile
+++ b/libpwdgrp/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/libpwdgrp/Makefile.in b/libpwdgrp/Makefile.in
index 886639e1f..cb7cbde76 100644
--- a/libpwdgrp/Makefile.in
+++ b/libpwdgrp/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/libpwdgrp/__getgrent.c b/libpwdgrp/__getgrent.c
index a20b3a260..ed4f59c5b 100644
--- a/libpwdgrp/__getgrent.c
+++ b/libpwdgrp/__getgrent.c
@@ -1,7 +1,7 @@
/*
* __getgrent.c - This file is part of the libc-8086/grp package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -187,7 +187,7 @@ struct group *bb_getgrent(int grp_fd)
}
#else /* !GR_SCALE_DYNAMIC */
free(members);
- members = (char **) malloc((member_num + 1) * sizeof(char *));
+ members = (char **) malloc((member_num + 1) * sizeof(char *));
for ( ; field_begin && *field_begin != '\0'; field_begin = ptr) {
if ((ptr = strchr(field_begin, ',')) != NULL)
*ptr++ = '\0';
diff --git a/libpwdgrp/__getpwent.c b/libpwdgrp/__getpwent.c
index 1b38c27ef..09ed63139 100644
--- a/libpwdgrp/__getpwent.c
+++ b/libpwdgrp/__getpwent.c
@@ -1,7 +1,7 @@
/*
* __getpwent.c - This file is part of the libc-8086/pwd package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
diff --git a/libpwdgrp/fgetgrent.c b/libpwdgrp/fgetgrent.c
index da4ca053f..77c2884ed 100644
--- a/libpwdgrp/fgetgrent.c
+++ b/libpwdgrp/fgetgrent.c
@@ -1,7 +1,7 @@
/*
* fgetgrent.c - This file is part of the libc-8086/grp package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
*
*/
-#include "busybox.h"
+#include "busybox.h"
#include <stdio.h>
#include <errno.h>
diff --git a/libpwdgrp/fgetpwent.c b/libpwdgrp/fgetpwent.c
index 54c3b3adc..74bf922d7 100644
--- a/libpwdgrp/fgetpwent.c
+++ b/libpwdgrp/fgetpwent.c
@@ -1,7 +1,7 @@
/*
* fgetpwent.c - This file is part of the libc-8086/pwd package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
*
*/
-#include "busybox.h"
+#include "busybox.h"
#include <errno.h>
#include <stdio.h>
diff --git a/libpwdgrp/getgrgid.c b/libpwdgrp/getgrgid.c
index 0f5ce1cac..4502e2b42 100644
--- a/libpwdgrp/getgrgid.c
+++ b/libpwdgrp/getgrgid.c
@@ -1,7 +1,7 @@
/*
* getgrgid.c - This file is part of the libc-8086/grp package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
*
*/
-#include "busybox.h"
+#include "busybox.h"
#include <sys/types.h>
#include <unistd.h>
diff --git a/libpwdgrp/getgrnam.c b/libpwdgrp/getgrnam.c
index 46950e2b6..766b7bc5d 100644
--- a/libpwdgrp/getgrnam.c
+++ b/libpwdgrp/getgrnam.c
@@ -1,7 +1,7 @@
/*
* getgrnam.c - This file is part of the libc-8086/grp package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
diff --git a/libpwdgrp/getpw.c b/libpwdgrp/getpw.c
index d46e2c7da..8494a6ae9 100644
--- a/libpwdgrp/getpw.c
+++ b/libpwdgrp/getpw.c
@@ -1,7 +1,7 @@
/*
* getpw.c - This file is part of the libc-8086/pwd package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
*
*/
-#include "busybox.h"
+#include "busybox.h"
#include <sys/types.h>
#include <errno.h>
diff --git a/libpwdgrp/getpwnam.c b/libpwdgrp/getpwnam.c
index 013f155bc..f4caeeab1 100644
--- a/libpwdgrp/getpwnam.c
+++ b/libpwdgrp/getpwnam.c
@@ -1,7 +1,7 @@
/*
* getpwnam.c - This file is part of the libc-8086/pwd package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
*
*/
-#include "busybox.h"
+#include "busybox.h"
#include <unistd.h>
#include <string.h>
diff --git a/libpwdgrp/getpwuid.c b/libpwdgrp/getpwuid.c
index bae6e15e6..7fa7ed956 100644
--- a/libpwdgrp/getpwuid.c
+++ b/libpwdgrp/getpwuid.c
@@ -1,7 +1,7 @@
/*
* getpwuid.c - This file is part of the libc-8086/pwd package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
diff --git a/libpwdgrp/grent.c b/libpwdgrp/grent.c
index ff3c49e68..753026c29 100644
--- a/libpwdgrp/grent.c
+++ b/libpwdgrp/grent.c
@@ -1,7 +1,7 @@
/*
* grent.c - This file is part of the libc-8086/grp package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -24,7 +24,7 @@
* in together.
*/
-#include "busybox.h"
+#include "busybox.h"
#include <unistd.h>
#include <fcntl.h>
diff --git a/libpwdgrp/initgroups.c b/libpwdgrp/initgroups.c
index f97948379..9243fd3ac 100644
--- a/libpwdgrp/initgroups.c
+++ b/libpwdgrp/initgroups.c
@@ -1,7 +1,7 @@
/*
* initgroups.c - This file is part of the libc-8086/grp package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
*
*/
-#include "busybox.h"
+#include "busybox.h"
#include <unistd.h>
#include <string.h>
diff --git a/libpwdgrp/putpwent.c b/libpwdgrp/putpwent.c
index f6b3a2577..0710ff5b2 100644
--- a/libpwdgrp/putpwent.c
+++ b/libpwdgrp/putpwent.c
@@ -1,7 +1,7 @@
/*
* putpwent.c - This file is part of the libc-8086/pwd package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
*
*/
-#include "busybox.h"
+#include "busybox.h"
#include <stdio.h>
#include <errno.h>
diff --git a/libpwdgrp/pwent.c b/libpwdgrp/pwent.c
index f7f8581f3..1cdb2d454 100644
--- a/libpwdgrp/pwent.c
+++ b/libpwdgrp/pwent.c
@@ -1,7 +1,7 @@
/*
* pwent.c - This file is part of the libc-8086/pwd package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
diff --git a/libpwdgrp/setgroups.c b/libpwdgrp/setgroups.c
index 449e811dc..15a16f4e6 100644
--- a/libpwdgrp/setgroups.c
+++ b/libpwdgrp/setgroups.c
@@ -2,7 +2,7 @@
/*
* Taken from the set of syscalls for uClibc
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published by
@@ -20,7 +20,7 @@
*
*/
-#include "busybox.h"
+#include "busybox.h"
#include <errno.h>
#include <unistd.h>
diff --git a/libpwdgrp/shadow.c b/libpwdgrp/shadow.c
index 9e218f96f..b3a4901f5 100644
--- a/libpwdgrp/shadow.c
+++ b/libpwdgrp/shadow.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * Copyright 1989 - 1994, Julianne Frances Haugh
+ * Copyright 1989 - 1994, Julianne Frances Haugh
* <jockgrrl@austin.rr.com>, <jfh@austin.ibm.com>
* All rights reserved.
*
@@ -29,8 +29,8 @@
* SUCH DAMAGE.
*/
-/* TODO: fgetspent_r.c getspent_r.c getspnam_r.c sgetspent_r.c
- * lckpwdf ulckpwdf
+/* TODO: fgetspent_r.c getspent_r.c getspnam_r.c sgetspent_r.c
+ * lckpwdf ulckpwdf
*/
#include <stdio.h>
@@ -267,7 +267,7 @@ struct spwd *fgetspent(FILE *fp)
/*
* putspent - put a (struct spwd *) into the (FILE *) you provide.
- *
+ *
* this was described in shadow_.h but not implemented, so here
* I go. -beppu
*
@@ -290,7 +290,7 @@ int putspent(const struct spwd *sp, FILE *fp)
sp->sp_min, /* minimum number of days between changes */
sp->sp_max, /* maximum number of days between changes */
sp->sp_warn, /* number of days of warning before password expires */
- sp->sp_inact, /* number of days after password expires until
+ sp->sp_inact, /* number of days after password expires until
the account becomes unusable */
sp->sp_expire, /* days since 1/1/70 until account expires */
"");
diff --git a/loginutils/Makefile b/loginutils/Makefile
index 3359d5638..a013d141f 100644
--- a/loginutils/Makefile
+++ b/loginutils/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/loginutils/Makefile.in b/loginutils/Makefile.in
index 160051094..87c0a5c4e 100644
--- a/loginutils/Makefile.in
+++ b/loginutils/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c
index af1cd7a83..cfbd71624 100644
--- a/loginutils/addgroup.c
+++ b/loginutils/addgroup.c
@@ -136,7 +136,7 @@ extern void if_i_am_not_root(void);
/*
* addgroup will take a login_name as its first parameter.
*
- * gid
+ * gid
*
* can be customized via command-line parameters.
* ________________________________________________________________________ */
@@ -157,7 +157,7 @@ int addgroup_main(int argc, char **argv)
} else {
bb_show_usage();
}
-
+
if (optind < argc) {
user = argv[optind];
optind++;
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
index c4ab557d0..3e10fd398 100644
--- a/loginutils/adduser.c
+++ b/loginutils/adduser.c
@@ -77,7 +77,7 @@ static int passwd_study(const char *filename, struct passwd *p)
if ((p->pw_uid > max) || (p->pw_uid < min))
p->pw_uid = min;
- /* stuff to do:
+ /* stuff to do:
* make sure login isn't taken;
* find free uid and gid;
*/
@@ -246,7 +246,7 @@ void if_i_am_not_root(void)
*
* home
* shell
- * gecos
+ * gecos
*
* can be customized via command-line parameters.
* ________________________________________________________________________ */
diff --git a/loginutils/getty.c b/loginutils/getty.c
index b12b88fb1..0e475e4c0 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -5,13 +5,13 @@
be here. Now read the real man-page agetty.8 instead.
-f option added by Eric Rasmussen <ear@usfirst.org> - 12/28/95
-
+
1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
- added Native Language Support
1999-05-05 Thorsten Kranzkowski <dl8bcu@gmx.net>
- enable hardware flow control before displaying /etc/issue
-
+
*/
#include <stdio.h>
@@ -54,11 +54,11 @@ extern void updwtmp(const char *filename, const struct utmp *ut);
/*
* Things you may want to modify.
- *
+ *
* If ISSUE is not defined, agetty will never display the contents of the
* /etc/issue file. You will not want to spit out large "issue" files at the
* wrong baud rate. Relevant for System V only.
- *
+ *
* You may disagree with the default line-editing etc. characters defined
* below. Note, however, that DEL cannot be used for interrupt generation
* and for line editing at the same time.
@@ -386,7 +386,7 @@ static void parse_args(int argc, char **argv, struct options *op)
case 'I':
if (!(op->initstring = strdup(optarg)))
error(bb_msg_memory_exhausted);
-
+
{
const char *p;
char *q;
@@ -700,9 +700,9 @@ static void auto_baud(struct termio *tp)
* the DCD line, and if the computer is fast enough to set the proper
* baud rate before the message has gone by. We expect a message of the
* following format:
- *
+ *
* <junk><number><junk>
- *
+ *
* The number is interpreted as the baud rate of the incoming call. If the
* modem does not tell us the baud rate within one second, we will keep
* using the current baud rate. It is advisable to enable BREAK
diff --git a/loginutils/login.c b/loginutils/login.c
index ee50a175a..99f66b53b 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -77,7 +77,7 @@ extern int login_main(int argc, char **argv)
int opt_preserve = 0;
int opt_fflag = 0;
char *opt_host = 0;
- int alarmstarted = 0;
+ int alarmstarted = 0;
#ifdef CONFIG_SELINUX
int flask_enabled = is_flask_enabled();
security_id_t sid = 0, old_tty_sid, new_tty_sid;
@@ -88,7 +88,7 @@ extern int login_main(int argc, char **argv)
signal ( SIGALRM, alarm_handler );
alarm ( TIMEOUT );
alarmstarted = 1;
-
+
while (( flag = getopt(argc, argv, "f:h:p")) != EOF ) {
switch ( flag ) {
case 'p':
@@ -104,7 +104,7 @@ extern int login_main(int argc, char **argv)
if ( !amroot ) /* Auth bypass only if real UID is zero */
bb_error_msg_and_die ( "-f permission denied" );
-
+
safe_strncpy(username, optarg, USERNAME_SIZE);
opt_fflag = 1;
break;
@@ -119,7 +119,7 @@ extern int login_main(int argc, char **argv)
if (optind < argc) // user from command line (getty)
safe_strncpy(username, argv[optind], USERNAME_SIZE);
- if ( !isatty ( 0 ) || !isatty ( 1 ) || !isatty ( 2 ))
+ if ( !isatty ( 0 ) || !isatty ( 1 ) || !isatty ( 2 ))
return EXIT_FAILURE; /* Must be a terminal */
#ifdef CONFIG_FEATURE_U_W_TMP
@@ -136,7 +136,7 @@ extern int login_main(int argc, char **argv)
if ( amroot )
memset ( utent.ut_host, 0, sizeof utent.ut_host );
#endif
-
+
if ( opt_host ) {
#ifdef CONFIG_FEATURE_U_W_TMP
safe_strncpy ( utent.ut_host, opt_host, sizeof( utent. ut_host ));
@@ -145,7 +145,7 @@ extern int login_main(int argc, char **argv)
}
else
snprintf ( fromhost, sizeof( fromhost ) - 1, " on `%.100s'", tty );
-
+
setpgrp();
openlog ( "login", LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH );
@@ -167,14 +167,14 @@ extern int login_main(int argc, char **argv)
pw_copy.pw_passwd = "!";
opt_fflag = 0;
failed = 1;
- } else
+ } else
pw_copy = *pw;
pw = &pw_copy;
if (( pw-> pw_passwd [0] == '!' ) || ( pw-> pw_passwd[0] == '*' ))
failed = 1;
-
+
if ( opt_fflag ) {
opt_fflag = 0;
goto auth_ok;
@@ -192,14 +192,14 @@ extern int login_main(int argc, char **argv)
goto auth_ok;
failed = 1;
-
+
auth_ok:
- if ( !failed)
+ if ( !failed)
break;
{ // delay next try
time_t start, now;
-
+
time ( &start );
now = start;
while ( difftime ( now, start ) < FAIL_DELAY) {
@@ -215,7 +215,7 @@ auth_ok:
return EXIT_FAILURE;
}
}
-
+
alarm ( 0 );
if ( check_nologin ( pw-> pw_uid == 0 ))
return EXIT_FAILURE;
@@ -253,15 +253,15 @@ auth_ok:
sid = 0;
#endif
- if ( *tty != '/' )
+ if ( *tty != '/' )
snprintf ( full_tty, sizeof( full_tty ) - 1, "/dev/%s", tty);
else
safe_strncpy ( full_tty, tty, sizeof( full_tty ) - 1 );
-
- if ( !is_my_tty ( full_tty ))
+
+ if ( !is_my_tty ( full_tty ))
syslog ( LOG_ERR, "unable to determine TTY name, got %s\n", full_tty );
-
- /* Try these, but don't complain if they fail
+
+ /* Try these, but don't complain if they fail
* (for example when the root fs is read only) */
chown ( full_tty, pw-> pw_uid, pw-> pw_gid );
chmod ( full_tty, 0600 );
@@ -275,14 +275,14 @@ auth_ok:
motd ( );
signal ( SIGALRM, SIG_DFL ); /* default alarm signal */
- if ( pw-> pw_uid == 0 )
+ if ( pw-> pw_uid == 0 )
syslog ( LOG_INFO, "root login %s\n", fromhost );
run_shell ( tmp, 1, 0, 0
#ifdef CONFIG_SELINUX
, sid
#endif
); /* exec the shell finally. */
-
+
return EXIT_FAILURE;
}
@@ -306,7 +306,7 @@ static int login_prompt ( char *buf_name )
for ( sp = buf; isspace ( *sp ); sp++ ) { }
for ( ep = sp; isgraph ( *ep ); ep++ ) { }
- *ep = 0;
+ *ep = 0;
safe_strncpy(buf_name, sp, USERNAME_SIZE);
if(buf_name[0])
return 1;
@@ -332,7 +332,7 @@ static int check_nologin ( int amroot )
}
if ( !amroot )
return 1;
-
+
puts ( "\r\n[Disconnect bypassed -- root login allowed.]\r" );
}
return 0;
@@ -377,7 +377,7 @@ static int is_my_tty ( const char *tty )
if ( stat ( tty, &by_name ) || fstat ( 0, &by_fd ))
return 0;
-
+
if ( by_name. st_rdev != by_fd. st_rdev )
return 0;
else
@@ -391,8 +391,8 @@ static void motd ( )
register int c;
if (( fp = fopen ( bb_path_motd_file, "r" ))) {
- while (( c = getc ( fp )) != EOF )
- putchar ( c );
+ while (( c = getc ( fp )) != EOF )
+ putchar ( c );
fclose ( fp );
}
}
diff --git a/loginutils/su.c b/loginutils/su.c
index 2d7a7ac05..ec0c16c7d 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -84,12 +84,12 @@ int su_main ( int argc, char **argv )
}
/* get user if specified */
- if ( optind < argc )
+ if ( optind < argc )
opt_username = argv [optind++];
if ( optind < argc )
opt_args = argv + optind;
-
+
#if defined( SYSLOG_SUCCESS ) || defined( SYSLOG_FAILURE )
#ifdef CONFIG_FEATURE_U_W_TMP
/* The utmp entry (via getlogin) is probably the best way to identify
@@ -108,11 +108,11 @@ int su_main ( int argc, char **argv )
openlog ( bb_applet_name, 0, LOG_AUTH );
#endif
-
+
pw = getpwnam ( opt_username );
if ( !pw )
bb_error_msg_and_die ( "user %s does not exist", opt_username );
-
+
/* Make sure pw->pw_shell is non-NULL. It may be NULL when NEW_USER
is a username that is retrieved via NIS (YP), but that doesn't have
a default shell listed. */
@@ -145,13 +145,13 @@ int su_main ( int argc, char **argv )
if ( !opt_shell )
opt_shell = pw->pw_shell;
- change_identity ( pw );
+ change_identity ( pw );
setup_environment ( opt_shell, opt_loginshell, !opt_preserve, pw );
run_shell ( opt_shell, opt_loginshell, opt_command, (const char**)opt_args
#ifdef CONFIG_SELINUX
, 0
#endif
);
-
+
return EXIT_FAILURE;
}
diff --git a/miscutils/Config.in b/miscutils/Config.in
index c5327c201..7e18c16a0 100644
--- a/miscutils/Config.in
+++ b/miscutils/Config.in
@@ -86,11 +86,11 @@ config CONFIG_HDPARM
default n
help
Get/Set hard drive parameters. Primarily intended for ATA
- drives. Adds about 13k (or around 30k if you enable the
+ drives. Adds about 13k (or around 30k if you enable the
CONFIG_FEATURE_HDPARM_GET_IDENTITY option)....
config CONFIG_FEATURE_HDPARM_GET_IDENTITY
- bool " Support obtaining detailed information directly from drives"
+ bool " Support obtaining detailed information directly from drives"
default y
depends on CONFIG_HDPARM
help
@@ -99,7 +99,7 @@ config CONFIG_FEATURE_HDPARM_GET_IDENTITY
feature set. Enabling this option will add about 16k...
config CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
- bool " Register an IDE interface (DANGEROUS)"
+ bool " Register an IDE interface (DANGEROUS)"
default n
depends on CONFIG_HDPARM
help
@@ -107,7 +107,7 @@ config CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
This is dangerous stuff, so you should probably say N.
config CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF
- bool " Un-register an IDE interface (DANGEROUS)"
+ bool " Un-register an IDE interface (DANGEROUS)"
default n
depends on CONFIG_HDPARM
help
@@ -115,7 +115,7 @@ config CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF
This is dangerous stuff, so you should probably say N.
config CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET
- bool " perform device reset (DANGEROUS)"
+ bool " perform device reset (DANGEROUS)"
default n
depends on CONFIG_HDPARM
help
@@ -123,7 +123,7 @@ config CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET
This is dangerous stuff, so you should probably say N.
config CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF
- bool " tristate device for hotswap (DANGEROUS)"
+ bool " tristate device for hotswap (DANGEROUS)"
default n
depends on CONFIG_HDPARM
help
diff --git a/miscutils/Makefile b/miscutils/Makefile
index 374ce68f8..4bae72476 100644
--- a/miscutils/Makefile
+++ b/miscutils/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/miscutils/Makefile.in b/miscutils/Makefile.in
index fea9b8926..89e3208a6 100644
--- a/miscutils/Makefile.in
+++ b/miscutils/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index e941f6b4f..110c02654 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -76,7 +76,7 @@ static char *ret_code_descript[] = {
#else
void usage(char *prog)
{
- fprintf(stderr,
+ fprintf(stderr,
"Usage: %s [ -q ] [ -o offset ] [ -f frequency ] [ -p timeconstant ] [ -t tick ]\n",
prog);
}
@@ -126,7 +126,7 @@ int main(int argc, char ** argv)
ret = adjtimex(&txc);
if (ret < 0) perror("adjtimex");
-
+
if (!quiet && ret>=0) {
printf(
" mode: %d\n"
diff --git a/miscutils/dc.c b/miscutils/dc.c
index f574ae4a0..0ac658d9c 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -87,7 +87,7 @@ static void not(void)
static void set_output_base(void)
{
- base=(unsigned char)pop();
+ base=(unsigned char)pop();
if ((base != 10) && (base != 16)) {
fprintf(stderr, "Error: base = %d is not supported.\n", base);
base=10;
@@ -96,7 +96,7 @@ static void set_output_base(void)
static void print_base(double print)
{
- if (base == 16)
+ if (base == 16)
printf("%x\n", (unsigned int)print);
else
printf("%g\n", print);
@@ -178,7 +178,7 @@ static void stack_machine(const char *argument)
}
/* return pointer to next token in buffer and set *buffer to one char
- * past the end of the above mentioned token
+ * past the end of the above mentioned token
*/
static char *get_token(char **buffer)
{
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 5c91b522d..eaa61c102 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -606,7 +606,7 @@ static uint8_t mode_loop(uint16_t mode_sup, uint16_t mode_sel, int cc, uint8_t *
static void print_ascii(uint16_t *p, uint8_t length) {
uint8_t ii;
char cl;
-
+
/* find first non-space & print it */
for(ii = 0; ii< length; ii++)
{
@@ -1080,7 +1080,7 @@ static void identify (uint16_t *id_supplied, const char *devname)
if_printf(((dev == ATAPI_DEV) && (eqpt != CDROM) && (val[CAPAB_0] & DMA_IL_SUP)),
"\t Interleaved DMA support\n");
- if((val[WHATS_VALID] & OK_W64_70) &&
+ if((val[WHATS_VALID] & OK_W64_70) &&
(val[DMA_TIME_MIN] || val[DMA_TIME_NORM]))
{
printf("\t Cycle time:");
@@ -1241,7 +1241,7 @@ static int do_ctimings, do_timings = 0;
static unsigned long set_readahead= 0, get_readahead= 0, bbreadahead= 0;
static unsigned long set_readonly = 0, get_readonly = 0, readonly = 0;
static unsigned long set_unmask = 0, get_unmask = 0, unmask = 0;
-static unsigned long set_mult = 0, get_mult = 0, mult = 0;
+static unsigned long set_mult = 0, get_mult = 0, mult = 0;
#ifdef CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA
static unsigned long set_dma = 0, get_dma = 0, dma = 0;
#endif
diff --git a/miscutils/last.c b/miscutils/last.c
index e7f9eb57a..86613bf27 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -2,7 +2,7 @@
/*
* last implementation for busybox
*
- * Copyright (C) 2003 Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 2003-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -68,10 +68,10 @@ extern int last_main(int argc, char **argv)
else if (strncmp(ut.ut_user, "runlevel", 7) == 0)
ut.ut_type = RUN_LVL;
} else {
- if (!ut.ut_name[0] || strcmp(ut.ut_name, "LOGIN") == 0 ||
+ if (!ut.ut_name[0] || strcmp(ut.ut_name, "LOGIN") == 0 ||
ut.ut_name[0] == 0)
{
- /* Don't bother. This means we can't find how long
+ /* Don't bother. This means we can't find how long
* someone was logged in for. Oh well. */
continue;
}
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index 308d651ae..45498bb1d 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -1,9 +1,9 @@
/* vi: set sw=4 ts=4: */
/*
* public domain -- Dave 'Kill a Cop' Cinege <dcinege@psychosis.com>
- *
+ *
* makedevs
- * Make ranges of device files quickly.
+ * Make ranges of device files quickly.
* known bugs: can't deal with alpha ranges
*/
diff --git a/miscutils/mt.c b/miscutils/mt.c
index e79954552..b0cdaccb9 100644
--- a/miscutils/mt.c
+++ b/miscutils/mt.c
@@ -57,7 +57,7 @@ extern int mt_main(int argc, char **argv)
struct mtop op;
struct mtpos position;
int fd, mode;
-
+
if (argc < 2) {
bb_show_usage();
}
diff --git a/miscutils/rx.c b/miscutils/rx.c
index 2b16f2e22..8edc8877a 100644
--- a/miscutils/rx.c
+++ b/miscutils/rx.c
@@ -1,14 +1,14 @@
/*-------------------------------------------------------------------------
* Filename: xmodem.c
- * Version: $Id: rx.c,v 1.1 2003/12/20 07:30:35 bug1 Exp $
+ * Version: $Id: rx.c,v 1.2 2004/03/15 08:28:46 andersen Exp $
* Copyright: Copyright (C) 2001, Hewlett-Packard Company
* Author: Christopher Hoover <ch@hpl.hp.com>
- * Description: xmodem functionality for uploading of kernels
+ * Description: xmodem functionality for uploading of kernels
* and the like
* Created at: Thu Dec 20 01:58:08 PST 2001
*-----------------------------------------------------------------------*/
/*
- * xmodem.c: xmodem functionality for uploading of kernels and
+ * xmodem.c: xmodem functionality for uploading of kernels and
* the like
*
* Copyright (C) 2001 Hewlett-Packard Laboratories
@@ -69,7 +69,7 @@ Cf:
#define TIMEOUT_LONG 10
#define MAXERRORS 10
-static inline void write_byte(int fd, char cc) {
+static inline void write_byte(int fd, char cc) {
write(fd, &cc, 1);
}
@@ -80,7 +80,7 @@ static inline void write_flush(int fd) {
static inline void read_flush(int fd) {
tcflush(fd, TCIFLUSH);
}
-
+
static int read_byte(int fd, unsigned int timeout) {
char buf[1];
int n;
@@ -312,12 +312,12 @@ int rx_main(int argc, char **argv)
if (tcgetattr(ttyfd, &tty) < 0)
bb_error_msg_and_die("%s: tcgetattr failed: %m\n", argv[0]);
-
+
orig_tty = tty;
cfmakeraw(&tty);
tcsetattr(ttyfd, TCSAFLUSH, &tty);
-
+
memset(&act, 0, sizeof(act));
act.sa_handler = sigalrm_handler;
sigaction(SIGALRM, &act, 0);
diff --git a/miscutils/strings.c b/miscutils/strings.c
index 4778cfb5f..5dcd876e9 100644
--- a/miscutils/strings.c
+++ b/miscutils/strings.c
@@ -136,7 +136,7 @@ pipe:
* documentation and/or other materials provided with the distribution.
*
* 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
+ * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
*
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
diff --git a/miscutils/time.c b/miscutils/time.c
index 7aaa12e2a..ca896a1c5 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -17,7 +17,7 @@
02111-1307, USA. */
/* Originally written by David Keppel <pardo@cs.washington.edu>.
- Heavily modified by David MacKenzie <djm@gnu.ai.mit.edu>.
+ Heavily modified by David MacKenzie <djm@gnu.ai.mit.edu>.
Heavily modified for busybox by Erik Andersen <andersen@codepoet.org>
*/
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c
index b1167dc90..276fadebd 100644
--- a/miscutils/watchdog.c
+++ b/miscutils/watchdog.c
@@ -67,7 +67,7 @@ extern int watchdog_main(int argc, char **argv)
fd = bb_xopen(argv[argc - 1], O_WRONLY);
while (1) {
- /*
+ /*
* Make sure we clear the counter before sleeping, as the counter value
* is undefined at this point -- PFM
*/
diff --git a/modutils/Config.in b/modutils/Config.in
index d9f76d1b4..faccee88f 100644
--- a/modutils/Config.in
+++ b/modutils/Config.in
@@ -45,9 +45,9 @@ config CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS
default n
depends on CONFIG_INSMOD && ( CONFIG_FEATURE_2_2_MODULES || CONFIG_FEATURE_2_4_MODULES )
help
- By adding module symbols to the kernel symbol table, Oops messages
+ By adding module symbols to the kernel symbol table, Oops messages
occuring within kernel modules can be properly debugged. By enabling
- this feature, module symbols will always be added to the kernel symbol
+ this feature, module symbols will always be added to the kernel symbol
table for properly debugging support. If you are not interested in
Oops messages from kernel modules, say N.
@@ -62,7 +62,7 @@ config CONFIG_FEATURE_INSMOD_LOADINKMEM
being loaded into memory.
config CONFIG_FEATURE_INSMOD_LOAD_MAP
- bool " Enable load map (-m) option"
+ bool " Enable load map (-m) option"
default n
depends on CONFIG_INSMOD && ( CONFIG_FEATURE_2_2_MODULES || CONFIG_FEATURE_2_4_MODULES )
help
@@ -78,7 +78,7 @@ config CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL
depends on CONFIG_FEATURE_INSMOD_LOAD_MAP
help
Without this option, -m will only output section
- load map. With this option, -m will also output
+ load map. With this option, -m will also output
symbols load map.
config CONFIG_LSMOD
@@ -100,7 +100,7 @@ config CONFIG_MODPROBE
bool "modprobe"
default n
help
- Handle the loading of modules, and their dependancies on a high
+ Handle the loading of modules, and their dependancies on a high
level.
config CONFIG_RMMOD
diff --git a/modutils/Makefile b/modutils/Makefile
index 646e4489e..5e1c886c0 100644
--- a/modutils/Makefile
+++ b/modutils/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/modutils/Makefile.in b/modutils/Makefile.in
index f6d5887fc..a92befafb 100644
--- a/modutils/Makefile.in
+++ b/modutils/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 73259131b..eaa425f5d 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -2,11 +2,10 @@
/*
* Mini insmod implementation for busybox
*
- * This version of insmod supports x86, ARM, SH3/4/5, powerpc, m68k,
+ * This version of insmod supports x86, ARM, SH3/4/5, powerpc, m68k,
* MIPS, and v850e.
*
- * Copyright (C) 1999,2000 by Lineo, inc. and Erik Andersen
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
* and Ron Alder <alder@lineo.com>
*
* Miles Bader <miles@gnu.org> added NEC V850E support.
@@ -32,7 +31,7 @@
* These blocks should be easy maintain and sync with obj_xxx.c in modutils.
*
* Magnus Damm <damm@opensource.se> added PowerPC support 20-Feb-2001.
- * PowerPC specific code stolen from modutils-2.3.16,
+ * PowerPC specific code stolen from modutils-2.3.16,
* written by Paul Mackerras, Copyright 1996, 1997 Linux International.
* I've only tested the code on mpc8xx platforms in big-endian mode.
* Did some cleanup and added CONFIG_USE_xxx_ENTRIES...
@@ -104,7 +103,7 @@ extern int insmod_ng_main( int argc, char **argv);
#endif
#ifdef CONFIG_FEATURE_INSMOD_LOADINKMEM
-#define LOADBITS 0
+#define LOADBITS 0
#else
#define LOADBITS 1
#endif
@@ -152,7 +151,7 @@ extern int insmod_ng_main( int argc, char **argv);
#define ELFCLASSM ELFCLASS32
#endif
-#if defined(__mc68000__)
+#if defined(__mc68000__)
#define CONFIG_USE_GOT_ENTRIES
#define CONFIG_GOT_ENTRY_SIZE 4
#define CONFIG_USE_SINGLE
@@ -183,7 +182,7 @@ extern int insmod_ng_main( int argc, char **argv);
#define CONFIG_USE_PLT_ENTRIES
#define CONFIG_PLT_ENTRY_SIZE 16
#define CONFIG_USE_PLT_LIST
-#define CONFIG_LIST_ARCHTYPE ElfW(Addr)
+#define CONFIG_LIST_ARCHTYPE ElfW(Addr)
#define CONFIG_USE_LIST
#define MATCH_MACHINE(x) (x == EM_PPC)
@@ -282,7 +281,7 @@ extern int insmod_ng_main( int argc, char **argv);
#ifndef MODUTILS_MODULE_H
static const int MODUTILS_MODULE_H = 1;
-#ident "$Id: insmod.c,v 1.112 2004/02/18 10:14:17 mjn3 Exp $"
+#ident "$Id: insmod.c,v 1.113 2004/03/15 08:28:47 andersen Exp $"
/* This file contains the structures used by the 2.0 and 2.1 kernels.
We do not use the kernel headers directly because we do not wish
@@ -503,7 +502,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H
static const int MODUTILS_OBJ_H = 1;
-#ident "$Id: insmod.c,v 1.112 2004/02/18 10:14:17 mjn3 Exp $"
+#ident "$Id: insmod.c,v 1.113 2004/03/15 08:28:47 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
@@ -680,7 +679,7 @@ static enum obj_reloc arch_apply_relocation (struct obj_file *f,
static void arch_create_got (struct obj_file *f);
static int obj_gpl_license(struct obj_file *f, const char **license);
-
+
#ifdef CONFIG_FEATURE_2_4_MODULES
static int arch_init_module (struct obj_file *f, struct new_module *);
#endif
@@ -888,8 +887,8 @@ arch_apply_relocation(struct obj_file *f,
goto bb_use_got;
case R_ARM_GOTPC:
- /* relative reloc, always to _GLOBAL_OFFSET_TABLE_
- * (which is .got) similar to branch,
+ /* relative reloc, always to _GLOBAL_OFFSET_TABLE_
+ * (which is .got) similar to branch,
* but is full 32 bits relative */
assert(got);
@@ -922,7 +921,7 @@ arch_apply_relocation(struct obj_file *f,
case R_390_PC16DBL:
*(unsigned short *) loc += (v - dot) >> 1;
break;
- case R_390_PC16:
+ case R_390_PC16:
*(unsigned short *) loc += v - dot;
break;
@@ -933,7 +932,7 @@ arch_apply_relocation(struct obj_file *f,
pe = (struct arch_single_entry *) &isym->pltent;
assert(pe->allocated);
if (pe->inited == 0) {
- ip = (unsigned long *)(ifile->plt->contents + pe->offset);
+ ip = (unsigned long *)(ifile->plt->contents + pe->offset);
ip[0] = 0x0d105810; /* basr 1,0; lg 1,10(1); br 1 */
ip[1] = 0x100607f1;
if (ELF32_R_TYPE(rel->r_info) == R_390_PLT16DBL)
@@ -984,7 +983,7 @@ arch_apply_relocation(struct obj_file *f,
break;
#ifndef R_390_GOTOFF32
-#define R_390_GOTOFF32 R_390_GOTOFF
+#define R_390_GOTOFF32 R_390_GOTOFF
#endif
case R_390_GOTOFF32:
assert(got != 0);
@@ -1052,7 +1051,7 @@ arch_apply_relocation(struct obj_file *f,
case R_68K_PC8:
v -= dot;
- if ((Elf32_Sword)v > 0x7f ||
+ if ((Elf32_Sword)v > 0x7f ||
(Elf32_Sword)v < -(Elf32_Sword)0x80) {
ret = obj_reloc_overflow;
}
@@ -1061,7 +1060,7 @@ arch_apply_relocation(struct obj_file *f,
case R_68K_PC16:
v -= dot;
- if ((Elf32_Sword)v > 0x7fff ||
+ if ((Elf32_Sword)v > 0x7fff ||
(Elf32_Sword)v < -(Elf32_Sword)0x8000) {
ret = obj_reloc_overflow;
}
@@ -1365,7 +1364,7 @@ bb_use_plt:
v -= dot;
/* if the target is too far away.... */
#if defined (__arm__) || defined (__powerpc__)
- if ((int)v < -0x02000000 || (int)v >= 0x02000000)
+ if ((int)v < -0x02000000 || (int)v >= 0x02000000)
#elif defined (__v850e__)
if ((Elf32_Sword)v > 0x1fffff || (Elf32_Sword)v < (Elf32_Sword)-0x200000)
#endif
@@ -1426,7 +1425,7 @@ bb_use_got:
}
-#if defined(CONFIG_USE_LIST)
+#if defined(CONFIG_USE_LIST)
static int arch_list_add(ElfW(RelM) *rel, struct arch_list_entry **list,
int offset, int size)
@@ -1453,7 +1452,7 @@ static int arch_list_add(ElfW(RelM) *rel, struct arch_list_entry **list,
#endif
-#if defined(CONFIG_USE_SINGLE)
+#if defined(CONFIG_USE_SINGLE)
static int arch_single_init(ElfW(RelM) *rel, struct arch_single_entry *single,
int offset, int size)
@@ -1471,7 +1470,7 @@ static int arch_single_init(ElfW(RelM) *rel, struct arch_single_entry *single,
#if defined(CONFIG_USE_GOT_ENTRIES) || defined(CONFIG_USE_PLT_ENTRIES)
-static struct obj_section *arch_xsect_init(struct obj_file *f, char *name,
+static struct obj_section *arch_xsect_init(struct obj_file *f, char *name,
int offset, int size)
{
struct obj_section *myrelsec = obj_find_section(f, name);
@@ -1483,7 +1482,7 @@ static struct obj_section *arch_xsect_init(struct obj_file *f, char *name,
if (myrelsec) {
obj_extend_section(myrelsec, offset);
} else {
- myrelsec = obj_create_alloced_section(f, name,
+ myrelsec = obj_create_alloced_section(f, name,
size, offset);
assert(myrelsec);
}
@@ -1575,7 +1574,7 @@ static void arch_create_got(struct obj_file *f)
#elif defined(__sh__)
case R_SH_GOT32:
- got_allocate = 1;
+ got_allocate = 1;
break;
case R_SH_GOTPC:
@@ -1602,7 +1601,7 @@ static void arch_create_got(struct obj_file *f)
#if defined(CONFIG_USE_GOT_ENTRIES)
if (got_allocate) {
got_offset += arch_single_init(
- rel, &intsym->gotent,
+ rel, &intsym->gotent,
got_offset, CONFIG_GOT_ENTRY_SIZE);
got_needed = 1;
@@ -1610,13 +1609,13 @@ static void arch_create_got(struct obj_file *f)
#endif
#if defined(CONFIG_USE_PLT_ENTRIES)
if (plt_allocate) {
-#if defined(CONFIG_USE_PLT_LIST)
+#if defined(CONFIG_USE_PLT_LIST)
plt_offset += arch_list_add(
- rel, &intsym->pltent,
+ rel, &intsym->pltent,
plt_offset, CONFIG_PLT_ENTRY_SIZE);
#else
plt_offset += arch_single_init(
- rel, &intsym->pltent,
+ rel, &intsym->pltent,
plt_offset, CONFIG_PLT_ENTRY_SIZE);
#endif
plt_needed = 1;
@@ -1954,7 +1953,7 @@ static struct obj_section *obj_create_alloced_section_first(struct obj_file *f,
static void *obj_extend_section(struct obj_section *sec, unsigned long more)
{
unsigned long oldsize = sec->header.sh_size;
- if (more) {
+ if (more) {
sec->contents = xrealloc(sec->contents, sec->header.sh_size += more);
}
return sec->contents + oldsize;
@@ -2363,7 +2362,7 @@ old_init_module(const char *m_name, struct obj_file *f,
struct obj_symbol *sym;
for (sym = f->symtab[i]; sym; sym = sym->next)
if (ELFW(ST_BIND) (sym->info) != STB_LOCAL
- && sym->secidx <= SHN_HIRESERVE)
+ && sym->secidx <= SHN_HIRESERVE)
{
sym->ksymidx = nsyms++;
strsize += strlen(sym->name) + 1;
@@ -2977,7 +2976,7 @@ new_init_module(const char *m_name, struct obj_file *f,
tgt_long m_addr;
sec = obj_find_section(f, ".this");
- if (!sec || !sec->contents) {
+ if (!sec || !sec->contents) {
bb_perror_msg_and_die("corrupt module %s?",m_name);
}
module = (struct new_module *) sec->contents;
@@ -3499,7 +3498,7 @@ static struct obj_file *obj_load(FILE * fp, int loadprogbits)
sec->contents = NULL;
break;
}
-#endif
+#endif
case SHT_SYMTAB:
case SHT_STRTAB:
case SHT_RELM:
@@ -3726,7 +3725,7 @@ static int obj_gpl_license(struct obj_file *f, const char **license)
#define TAINT_UNSAFE_SMP (1<<2)
#define TAINT_URL "http://www.tux.org/lkml/#export-tainted"
-static void set_tainted(struct obj_file *f, int fd, char *m_name,
+static void set_tainted(struct obj_file *f, int fd, char *m_name,
int kernel_has_tainted, int taint, const char *text1, const char *text2)
{
char buf[80];
@@ -3819,7 +3818,7 @@ get_module_version(struct obj_file *f, char str[STRVERSIONLEN])
* start of some sections. this info is used by ksymoops to do better
* debugging.
*/
-static void
+static void
add_ksymoops_symbols(struct obj_file *f, const char *filename,
const char *m_name)
{
@@ -4059,7 +4058,7 @@ extern int insmod_main( int argc, char **argv)
#ifdef CONFIG_FEATURE_INSMOD_LOAD_MAP
while ((opt = getopt(argc, argv, "fkqsvxmLo:")) > 0)
#else
- while ((opt = getopt(argc, argv, "fkqsvxLo:")) > 0)
+ while ((opt = getopt(argc, argv, "fkqsvxLo:")) > 0)
#endif
{
switch (opt) {
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 1b914e720..7bf314afe 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -2,7 +2,7 @@
/*
* Mini lsmod implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* Modified by Alcove, Julien Gaulmin <julien.gaulmin@alcove.fr> and
* Nicolas Ferre <nicolas.ferre@alcove.fr> to support pre 2.1 kernels
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 0cebb6e67..cc9742c0a 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -2,7 +2,7 @@
/*
* Mini rmmod implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -46,10 +46,10 @@ extern int rmmod_main(int argc, char **argv)
switch (n) {
case 'w': // --wait
flags &= ~O_NONBLOCK;
- break;
+ break;
case 'f': // --force
flags |= O_TRUNC;
- break;
+ break;
case 'a':
/* Unload _all_ unused modules via NULL delete_module() call */
/* until the number of modules does not change */
diff --git a/networking/Config.in b/networking/Config.in
index d2916e7cd..a7cef41bf 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -63,7 +63,7 @@ config CONFIG_FEATURE_HTTPD_AUTH_MD5
default n
depends on CONFIG_FEATURE_HTTPD_BASIC_AUTH
help
- Enables basic per url authentication from /etc/httpd.conf
+ Enables basic per url authentication from /etc/httpd.conf
using md5 passwords.
@@ -187,7 +187,7 @@ config CONFIG_IFUPDOWN
config CONFIG_FEATURE_IFUPDOWN_IP
bool " Use ip applet"
default n
- depends on CONFIG_IFUPDOWN
+ depends on CONFIG_IFUPDOWN
help
Use the iproute "ip" command to implement "ifup" and "ifdown", rather
than the default of using the older 'ifconfig' and 'route' utilities.
@@ -213,11 +213,11 @@ config CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN
select CONFIG_IFCONFIG
select CONFIG_ROUTE
help
- Use the busybox iproute "ifconfig" and "route" applets to
+ Use the busybox iproute "ifconfig" and "route" applets to
implement the "ifup" and "ifdown" utilities.
If leave this disabled, you must install the full-blown ifconfig
- and route utilities, or the "ifup" and "ifdown" applets will not
+ and route utilities, or the "ifup" and "ifdown" applets will not
work.
config CONFIG_FEATURE_IFUPDOWN_IPV4
@@ -339,7 +339,7 @@ if !(CONFIG_IP && CONFIG_IPROUTE)
default y
depends on CONFIG_IP
help
- Add support for routing table management to "ip".
+ Add support for routing table management to "ip".
endif
if CONFIG_IP && CONFIG_IPTUNNEL
diff --git a/networking/Makefile b/networking/Makefile
index 022f29e46..456c433fd 100644
--- a/networking/Makefile
+++ b/networking/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/networking/Makefile.in b/networking/Makefile.in
index 7748d066b..31de77fea 100644
--- a/networking/Makefile.in
+++ b/networking/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 17ee8a536..814253b53 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -1,7 +1,7 @@
/* vi: set sw=4 ts=4: */
/*
- * ftpget
- *
+ * ftpget
+ *
* Mini implementation of FTP to retrieve a remote file.
*
* Copyright (C) 2002 Jeff Angielski, The PTR Group <jeff@theptrgroup.com>
@@ -131,7 +131,7 @@ static FILE *ftp_login(ftp_host_info_t *server)
}
#ifdef CONFIG_FTPGET
-static int ftp_recieve(ftp_host_info_t *server, FILE *control_stream,
+static int ftp_recieve(ftp_host_info_t *server, FILE *control_stream,
const char *local_path, char *server_path)
{
char buf[512];
@@ -203,13 +203,13 @@ static int ftp_recieve(ftp_host_info_t *server, FILE *control_stream,
bb_error_msg_and_die("ftp error: %s", buf + 4);
}
ftpcmd("QUIT", NULL, control_stream, buf);
-
+
return(EXIT_SUCCESS);
}
#endif
#ifdef CONFIG_FTPPUT
-static int ftp_send(ftp_host_info_t *server, FILE *control_stream,
+static int ftp_send(ftp_host_info_t *server, FILE *control_stream,
const char *server_path, char *local_path)
{
struct stat sbuf;
@@ -329,8 +329,8 @@ int ftpgetput_main(int argc, char **argv)
server->password = "busybox@";
verbose_flag = 0;
- /*
- * Decipher the command line
+ /*
+ * Decipher the command line
*/
bb_applet_long_options = ftpgetput_long_options;
opt = bb_getopt_ulflags(argc, argv, "cvu:p:P:", &server->user, &server->password, &port);
diff --git a/networking/httpd.c b/networking/httpd.c
index f2fd2b38d..aad30a1a1 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -44,7 +44,7 @@
* for page display.
*
* httpd.conf has the following format:
- *
+ *
* A:172.20. # Allow address from 172.20.0.0/16
* A:10.0.0.0/25 # Allow any address from 10.0.0.0-10.0.0.127
* A:10.0.0.0/255.255.255.128 # Allow any address that previous set
@@ -54,13 +54,13 @@
* /adm:admin:setup # Require user admin, pwd setup on urls starting with /adm/
* /adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/
* .au:audio/basic # additional mime type for audio.au files
- *
+ *
* A/D may be as a/d or allow/deny - first char case unsensitive
* Deny IP rules take precedence over allow rules.
- *
- *
+ *
+ *
* The Deny/Allow IP logic:
- *
+ *
* - Default is to allow all. No addresses are denied unless
* denied with a D: rule.
* - Order of Deny/Allow rules is significant
@@ -68,19 +68,19 @@
* - If a deny all rule (D:*) is used it acts as a catch-all for unmatched
* addresses.
* - Specification of Allow all (A:*) is a no-op
- *
+ *
* Example:
* 1. Allow only specified addresses
* A:172.20 # Allow any address that begins with 172.20.
* A:10.10. # Allow any address that begins with 10.10.
* A:127.0.0.1 # Allow local loopback connections
* D:* # Deny from other IP connections
- *
+ *
* 2. Only deny specified addresses
* D:1.2.3. # deny from 1.2.3.0 - 1.2.3.255
* D:2.3.4. # deny from 2.3.4.0 - 2.3.4.255
* A:* # (optional line added for clarity)
- *
+ *
* If a sub directory contains a config file it is parsed and merged with
* any existing settings as if it was appended to the original configuration.
*
@@ -91,11 +91,11 @@
* subdir http request, any merge is discarded when the process exits. As a
* result, the subdir settings only have a lifetime of a single request.
*
- *
- * If -c is not set, an attempt will be made to open the default
+ *
+ * If -c is not set, an attempt will be made to open the default
* root configuration file. If -c is set and the file is not found, the
* server exits with an error.
- *
+ *
*/
@@ -447,7 +447,7 @@ static void free_config_lines(Htaccess **pprev)
> $Function: parse_conf()
*
* $Description: parse configuration file into in-memory linked list.
- *
+ *
* The first non-white character is examined to determine if the config line
* is one of the following:
* .ext:mime/type # new mime type not compiled into httpd
@@ -464,7 +464,7 @@ static void free_config_lines(Htaccess **pprev)
* checks.
* (int) flag . . . . . . the source of the parse request.
*
- * $Return: (None)
+ * $Return: (None)
*
****************************************************************************/
static void parse_conf(const char *path, int flag)
@@ -1726,7 +1726,7 @@ FORBIDDEN: /* protect listing /cgi-bin */
/* Properly wait for remote to closed */
FD_ZERO (&s_fd) ;
FD_SET (a_c_w, &s_fd) ;
-
+
do {
tv.tv_sec = 2 ;
tv.tv_usec = 0 ;
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 341998d8d..b884ef7c3 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -6,7 +6,7 @@
* Bjorn Wesen, Axis Communications AB
*
*
- * Authors of the original ifconfig was:
+ * Authors of the original ifconfig was:
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
*
* This program is free software; you can redistribute it
@@ -15,7 +15,7 @@
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: ifconfig.c,v 1.28 2004/03/06 22:11:44 andersen Exp $
+ * $Id: ifconfig.c,v 1.29 2004/03/15 08:28:48 andersen Exp $
*
*/
@@ -510,7 +510,7 @@ int ifconfig_main(int argc, char **argv)
* a - at the end, since it's deleted already! - Roman
*
* Should really use regex.h here, not sure though how well
- * it'll go with the cross-platform support etc.
+ * it'll go with the cross-platform support etc.
*/
char *ptr;
short int found_colon = 0;
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index bd0021ab4..c34e2b955 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -2,7 +2,7 @@
/*
* ifupdown for busybox
* Copyright (c) 2002 Glenn McGrath <bug1@optushome.com.au>
- * Copyright (c) 2003 Erik Andersen <andersen@codepoet.org>
+ * 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>
@@ -56,7 +56,7 @@
#if 0
#define debug_noise(fmt, args...) printf(fmt, ## args)
#else
-#define debug_noise(fmt, args...)
+#define debug_noise(fmt, args...)
#endif
/* Forward declaration */
@@ -72,7 +72,7 @@ extern llist_t *llist_add_to_end(llist_t *list_head, char *data)
new_item = xmalloc(sizeof(llist_t));
new_item->data = data;
new_item->link = NULL;
-
+
prev = NULL;
tmp = list_head;
while(tmp) {
@@ -80,7 +80,7 @@ extern llist_t *llist_add_to_end(llist_t *list_head, char *data)
tmp = tmp->link;
}
if (prev) {
- prev->link = new_item;
+ prev->link = new_item;
} else {
list_head = new_item;
}
@@ -123,7 +123,7 @@ struct variable_t
char *value;
};
-struct interface_defn_t
+struct interface_defn_t
{
struct interface_defn_t *prev;
struct interface_defn_t *next;
@@ -598,7 +598,7 @@ static int wvdial_down(struct interface_defn_t *ifd, execfn *exec)
"-p /var/run/wvdial.%iface% -s 2", ifd, exec));
}
-static struct method_t methods[] =
+static struct method_t methods[] =
{
{ "wvdial", wvdial_up, wvdial_down, },
{ "ppp", ppp_up, ppp_down, },
@@ -608,7 +608,7 @@ static struct method_t methods[] =
{ "loopback", loopback_up, loopback_down, },
};
-struct address_family_t addr_inet =
+struct address_family_t addr_inet =
{
"inet",
sizeof(methods) / sizeof(struct method_t),
@@ -885,7 +885,7 @@ static struct interfaces_file_t *read_interfaces(char *filename)
perror(filename);
return NULL;
}
- debug_noise("\t%s=%s\n", currif->option[currif->n_options].name,
+ debug_noise("\t%s=%s\n", currif->option[currif->n_options].name,
currif->option[currif->n_options].value);
currif->n_options++;
break;
@@ -1031,7 +1031,7 @@ static int execute_all(struct interface_defn_t *ifd, execfn *exec, const char *o
}
}
}
-
+
bb_xasprintf(&buf, "run-parts /etc/network/if-%s.d", opt);
(*exec)(buf);
@@ -1211,7 +1211,7 @@ extern int ifupdown_main(int argc, char **argv)
#ifdef CONFIG_FEATURE_IFUPDOWN_MAPPING
while ((i = getopt(argc, argv, "i:hvnamf")) != -1)
#else
- while ((i = getopt(argc, argv, "i:hvnaf")) != -1)
+ while ((i = getopt(argc, argv, "i:hvnaf")) != -1)
#endif
{
switch (i) {
@@ -1249,7 +1249,7 @@ extern int ifupdown_main(int argc, char **argv)
if (!do_all) {
bb_show_usage();
}
- }
+ }
debug_noise("reading %s file:\n", interfaces);
defn = read_interfaces(interfaces);
@@ -1297,8 +1297,8 @@ extern int ifupdown_main(int argc, char **argv)
list = list->link;
}
target_list = defn->autointerfaces;
-#endif
- }
+#endif
+ }
} else {
target_list = llist_add_to_end(target_list, argv[optind]);
}
@@ -1413,7 +1413,7 @@ extern int ifupdown_main(int argc, char **argv)
} else {
iface_state->data = NULL;
iface_state->link = NULL;
- }
+ }
}
}
}
diff --git a/networking/libiproute/Makefile b/networking/libiproute/Makefile
index c1f18be7b..0dc7191d3 100644
--- a/networking/libiproute/Makefile
+++ b/networking/libiproute/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/networking/libiproute/Makefile.in b/networking/libiproute/Makefile.in
index f39eeb3ee..d6f95048c 100644
--- a/networking/libiproute/Makefile.in
+++ b/networking/libiproute/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c
index 1f3d73933..a76df48e0 100644
--- a/networking/libiproute/ip_parse_common_args.c
+++ b/networking/libiproute/ip_parse_common_args.c
@@ -47,7 +47,7 @@ void ip_parse_common_args(int *argcp, char ***argvp)
if (matches(opt, "-family") == 0) {
argc--;
argv++;
- if (! argv[1])
+ if (! argv[1])
bb_show_usage();
if (strcmp(argv[1], "inet") == 0)
preferred_family = AF_INET;
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 44e871ee5..7e0c75785 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -91,7 +91,7 @@ static void print_queuelen(char *name)
memset(&ifr, 0, sizeof(ifr));
strcpy(ifr.ifr_name, name);
- if (ioctl(s, SIOCGIFTXQLEN, &ifr) < 0) {
+ if (ioctl(s, SIOCGIFTXQLEN, &ifr) < 0) {
perror("SIOCGIFXQLEN");
close(s);
return;
@@ -166,7 +166,7 @@ static int print_linkinfo(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg
#endif
if (filter.showqueue)
print_queuelen((char*)RTA_DATA(tb[IFLA_IFNAME]));
-
+
if (!filter.family || filter.family == AF_PACKET) {
SPRINT_BUF(b1);
fprintf(fp, "%s", _SL_);
@@ -378,7 +378,7 @@ static int print_selected_addrinfo(int ifindex, struct nlmsg_list *ainfo, FILE *
if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifa)))
return -1;
- if (ifa->ifa_index != ifindex ||
+ if (ifa->ifa_index != ifindex ||
(filter.family && filter.family != ifa->ifa_family))
continue;
@@ -564,7 +564,7 @@ extern int ipaddr_list_or_flush(int argc, char **argv, int flush)
struct nlmsghdr *n = &a->h;
struct ifaddrmsg *ifa = NLMSG_DATA(n);
- if (ifa->ifa_index != ifi->ifi_index ||
+ if (ifa->ifa_index != ifi->ifi_index ||
(filter.family && filter.family != ifa->ifa_family))
continue;
if ((filter.scope^ifa->ifa_scope)&filter.scopemask)
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index daab6938d..44b546d59 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -128,8 +128,8 @@ static int set_qlen(char *dev, int qlen)
return -1;
memset(&ifr, 0, sizeof(ifr));
- strcpy(ifr.ifr_name, dev);
- ifr.ifr_qlen = qlen;
+ strcpy(ifr.ifr_name, dev);
+ ifr.ifr_qlen = qlen;
if (ioctl(s, SIOCSIFTXQLEN, &ifr) < 0) {
perror("SIOCSIFXQLEN");
close(s);
@@ -137,7 +137,7 @@ static int set_qlen(char *dev, int qlen)
}
close(s);
- return 0;
+ return 0;
}
static int set_mtu(char *dev, int mtu)
@@ -150,8 +150,8 @@ static int set_mtu(char *dev, int mtu)
return -1;
memset(&ifr, 0, sizeof(ifr));
- strcpy(ifr.ifr_name, dev);
- ifr.ifr_mtu = mtu;
+ strcpy(ifr.ifr_name, dev);
+ ifr.ifr_mtu = mtu;
if (ioctl(s, SIOCSIFMTU, &ifr) < 0) {
perror("SIOCSIFMTU");
close(s);
@@ -159,7 +159,7 @@ static int set_mtu(char *dev, int mtu)
}
close(s);
- return 0;
+ return 0;
}
static int get_address(char *dev, int *htype)
@@ -170,7 +170,7 @@ static int get_address(char *dev, int *htype)
int s;
s = socket(PF_PACKET, SOCK_DGRAM, 0);
- if (s < 0) {
+ if (s < 0) {
perror("socket(PF_PACKET)");
return -1;
}
@@ -218,7 +218,7 @@ static int parse_address(char *dev, int hatype, int halen, char *lla, struct ifr
bb_error_msg("Wrong address (%s) length: expected %d bytes", lla, halen);
return -1;
}
- return 0;
+ return 0;
}
static int set_address(struct ifreq *ifr, int brd)
@@ -234,7 +234,7 @@ static int set_address(struct ifreq *ifr, int brd)
return -1;
}
close(s);
- return 0;
+ return 0;
}
@@ -311,7 +311,7 @@ static int do_set(int argc, char **argv)
}
if (newbrd) {
if (parse_address(dev, htype, halen, newbrd, &ifr1) < 0)
- return -1;
+ return -1;
}
}
@@ -320,18 +320,18 @@ static int do_set(int argc, char **argv)
return -1;
dev = newname;
}
- if (qlen != -1) {
+ if (qlen != -1) {
if (set_qlen(dev, qlen) < 0)
- return -1;
+ return -1;
}
- if (mtu != -1) {
+ if (mtu != -1) {
if (set_mtu(dev, mtu) < 0)
- return -1;
+ return -1;
}
if (newaddr || newbrd) {
if (newbrd) {
if (set_address(&ifr1, 1) < 0)
- return -1;
+ return -1;
}
if (newaddr) {
if (set_address(&ifr0, 0) < 0)
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index 0fdf7987e..7adbfcd61 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -76,7 +76,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
inet_prefix src;
int host_len = -1;
SPRINT_BUF(b1);
-
+
if (n->nlmsg_type != RTM_NEWROUTE && n->nlmsg_type != RTM_DELROUTE) {
fprintf(stderr, "Not a route: %08x %08x %08x\n",
@@ -228,7 +228,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
fprintf(fp, "from 0/%u ", r->rtm_src_len);
}
if (tb[RTA_GATEWAY] && filter.rvia.bitlen != host_len) {
- fprintf(fp, "via %s ",
+ fprintf(fp, "via %s ",
format_host(r->rtm_family,
RTA_PAYLOAD(tb[RTA_GATEWAY]),
RTA_DATA(tb[RTA_GATEWAY]),
@@ -242,7 +242,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
/* Do not use format_host(). It is our local addr
and symbolic name will not be useful.
*/
- fprintf(fp, " src %s ",
+ fprintf(fp, " src %s ",
rt_addr_n2a(r->rtm_family,
RTA_PAYLOAD(tb[RTA_PREFSRC]),
RTA_DATA(tb[RTA_PREFSRC]),
@@ -665,7 +665,7 @@ static int iproute_get(int argc, char **argv)
req.r.rtm_src_len = 0;
req.r.rtm_dst_len = 0;
req.r.rtm_tos = 0;
-
+
while (argc > 0) {
switch (compare_string_array(options, *argv)) {
case 0: /* from */
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c
index eae5bb091..3f5d05ae9 100644
--- a/networking/libiproute/iptunnel.c
+++ b/networking/libiproute/iptunnel.c
@@ -354,7 +354,7 @@ static int do_add(int cmd, int argc, char **argv)
return do_add_ioctl(cmd, "gre0", &p);
case IPPROTO_IPV6:
return do_add_ioctl(cmd, "sit0", &p);
- default:
+ default:
bb_error_msg("cannot determine tunnel mode (ipip, gre or sit)");
return -1;
}
@@ -375,7 +375,7 @@ int do_del(int argc, char **argv)
return do_del_ioctl("gre0", &p);
case IPPROTO_IPV6:
return do_del_ioctl("sit0", &p);
- default:
+ default:
return do_del_ioctl(p.name, &p);
}
return -1;
@@ -506,7 +506,7 @@ static int do_show(int argc, char **argv)
return -1;
switch (p.iph.protocol) {
- case IPPROTO_IPIP:
+ case IPPROTO_IPIP:
err = do_get_ioctl(p.name[0] ? p.name : "tunl0", &p);
break;
case IPPROTO_GRE:
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c
index 9390e56fb..861daef86 100644
--- a/networking/libiproute/libnetlink.c
+++ b/networking/libiproute/libnetlink.c
@@ -317,7 +317,7 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
}
}
-int rtnl_listen(struct rtnl_handle *rtnl,
+int rtnl_listen(struct rtnl_handle *rtnl,
int (*handler)(struct sockaddr_nl *,struct nlmsghdr *n, void *),
void *jarg)
{
@@ -389,7 +389,7 @@ int rtnl_listen(struct rtnl_handle *rtnl,
}
}
-int rtnl_from_file(FILE *rtnl,
+int rtnl_from_file(FILE *rtnl,
int (*handler)(struct sockaddr_nl *,struct nlmsghdr *n, void *),
void *jarg)
{
diff --git a/networking/libiproute/linux/pkt_sched.h b/networking/libiproute/linux/pkt_sched.h
index e174588f5..70cbabc26 100644
--- a/networking/libiproute/linux/pkt_sched.h
+++ b/networking/libiproute/linux/pkt_sched.h
@@ -221,19 +221,19 @@ enum
#define TCA_SET_OFF TCA_GRED_PARMS
struct tc_gred_qopt
{
- __u32 limit; /* HARD maximal queue length (bytes)
+ __u32 limit; /* HARD maximal queue length (bytes)
*/
- __u32 qth_min; /* Min average length threshold (bytes)
+ __u32 qth_min; /* Min average length threshold (bytes)
*/
- __u32 qth_max; /* Max average length threshold (bytes)
+ __u32 qth_max; /* Max average length threshold (bytes)
*/
__u32 DP; /* upto 2^32 DPs */
- __u32 backlog;
- __u32 qave;
- __u32 forced;
- __u32 early;
- __u32 other;
- __u32 pdrop;
+ __u32 backlog;
+ __u32 qave;
+ __u32 forced;
+ __u32 early;
+ __u32 other;
+ __u32 pdrop;
unsigned char Wlog; /* log(W) */
unsigned char Plog; /* log(P_max/(qth_max-qth_min)) */
@@ -294,7 +294,7 @@ struct tc_htb_xstats
__u32 lends;
__u32 borrows;
__u32 giants; /* too big packets (rate will not be accurate) */
- __u32 injects; /* how many times leaf used injected bw */
+ __u32 injects; /* how many times leaf used injected bw */
__u32 tokens;
__u32 ctokens;
};
diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c
index 45afdb82a..9b5260b32 100644
--- a/networking/libiproute/ll_proto.c
+++ b/networking/libiproute/ll_proto.c
@@ -26,62 +26,62 @@ static struct {
char *name;
} llproto_names[] = {
__PF(LOOP,loop)
-__PF(PUP,pup)
+__PF(PUP,pup)
#ifdef ETH_P_PUPAT
-__PF(PUPAT,pupat)
+__PF(PUPAT,pupat)
#endif
__PF(IP,ip)
__PF(X25,x25)
__PF(ARP,arp)
__PF(BPQ,bpq)
#ifdef ETH_P_IEEEPUP
-__PF(IEEEPUP,ieeepup)
+__PF(IEEEPUP,ieeepup)
#endif
#ifdef ETH_P_IEEEPUPAT
-__PF(IEEEPUPAT,ieeepupat)
+__PF(IEEEPUPAT,ieeepupat)
#endif
-__PF(DEC,dec)
-__PF(DNA_DL,dna_dl)
-__PF(DNA_RC,dna_rc)
-__PF(DNA_RT,dna_rt)
-__PF(LAT,lat)
-__PF(DIAG,diag)
-__PF(CUST,cust)
-__PF(SCA,sca)
-__PF(RARP,rarp)
-__PF(ATALK,atalk)
-__PF(AARP,aarp)
-__PF(IPX,ipx)
-__PF(IPV6,ipv6)
+__PF(DEC,dec)
+__PF(DNA_DL,dna_dl)
+__PF(DNA_RC,dna_rc)
+__PF(DNA_RT,dna_rt)
+__PF(LAT,lat)
+__PF(DIAG,diag)
+__PF(CUST,cust)
+__PF(SCA,sca)
+__PF(RARP,rarp)
+__PF(ATALK,atalk)
+__PF(AARP,aarp)
+__PF(IPX,ipx)
+__PF(IPV6,ipv6)
#ifdef ETH_P_PPP_DISC
-__PF(PPP_DISC,ppp_disc)
+__PF(PPP_DISC,ppp_disc)
#endif
#ifdef ETH_P_PPP_SES
-__PF(PPP_SES,ppp_ses)
+__PF(PPP_SES,ppp_ses)
#endif
#ifdef ETH_P_ATMMPOA
-__PF(ATMMPOA,atmmpoa)
+__PF(ATMMPOA,atmmpoa)
#endif
#ifdef ETH_P_ATMFATE
-__PF(ATMFATE,atmfate)
+__PF(ATMFATE,atmfate)
#endif
-__PF(802_3,802_3)
-__PF(AX25,ax25)
-__PF(ALL,all)
-__PF(802_2,802_2)
-__PF(SNAP,snap)
-__PF(DDCMP,ddcmp)
-__PF(WAN_PPP,wan_ppp)
-__PF(PPP_MP,ppp_mp)
-__PF(LOCALTALK,localtalk)
-__PF(PPPTALK,ppptalk)
-__PF(TR_802_2,tr_802_2)
-__PF(MOBITEX,mobitex)
-__PF(CONTROL,control)
-__PF(IRDA,irda)
+__PF(802_3,802_3)
+__PF(AX25,ax25)
+__PF(ALL,all)
+__PF(802_2,802_2)
+__PF(SNAP,snap)
+__PF(DDCMP,ddcmp)
+__PF(WAN_PPP,wan_ppp)
+__PF(PPP_MP,ppp_mp)
+__PF(LOCALTALK,localtalk)
+__PF(PPPTALK,ppptalk)
+__PF(TR_802_2,tr_802_2)
+__PF(MOBITEX,mobitex)
+__PF(CONTROL,control)
+__PF(IRDA,irda)
#ifdef ETH_P_ECONET
-__PF(ECONET,econet)
+__PF(ECONET,econet)
#endif
{ 0x8100, "802.1Q" },
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h
index b51e07be4..e79e177b9 100644
--- a/networking/libiproute/utils.h
+++ b/networking/libiproute/utils.h
@@ -43,7 +43,7 @@ typedef struct
#define AF_DECnet 12
#endif
-struct dn_naddr
+struct dn_naddr
{
unsigned short a_len;
unsigned char a_addr[DN_MAXADDL];
diff --git a/networking/nc.c b/networking/nc.c
index ecb4a007b..9a353c94f 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -4,7 +4,7 @@
0.0.1 6K It works.
0.0.2 5K Smaller and you can also check the exit condition if you wish.
- 0.0.3 Uses select()
+ 0.0.3 Uses select()
19980918 Busy Boxed! Dave Cinege
19990512 Uses Select. Charles P. Wright
@@ -47,7 +47,7 @@ int nc_main(int argc, char **argv)
int do_listen = 0, lport = 0, delay = 0, tmpfd, opt, sfd, x;
char buf[BUFSIZ];
#ifdef GAPING_SECURITY_HOLE
- char * pr00gie = NULL;
+ char * pr00gie = NULL;
#endif
struct sockaddr_in address;
@@ -79,7 +79,7 @@ int nc_main(int argc, char **argv)
#ifdef GAPING_SECURITY_HOLE
if (pr00gie) {
/* won't need stdin */
- close (fileno(stdin));
+ close (fileno(stdin));
}
#endif /* GAPING_SECURITY_HOLE */
diff --git a/networking/netstat.c b/networking/netstat.c
index 17a58876c..bc1ed057b 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -210,7 +210,7 @@ static void tcp_do_one(int lnr, const char *line)
snprint_ip_port(local_addr, sizeof(local_addr),
(struct sockaddr *) &localaddr, local_port,
"tcp", flags&NETSTAT_NUMERIC);
-
+
snprint_ip_port(rem_addr, sizeof(rem_addr),
(struct sockaddr *) &remaddr, rem_port,
"tcp", flags&NETSTAT_NUMERIC);
@@ -305,7 +305,7 @@ static void udp_do_one(int lnr, const char *line)
snprint_ip_port(local_addr, sizeof(local_addr),
(struct sockaddr *) &localaddr, local_port,
"udp", flags&NETSTAT_NUMERIC);
-
+
snprint_ip_port(rem_addr, sizeof(rem_addr),
(struct sockaddr *) &remaddr, rem_port,
"udp", flags&NETSTAT_NUMERIC);
@@ -387,7 +387,7 @@ static void raw_do_one(int lnr, const char *line)
snprint_ip_port(local_addr, sizeof(local_addr),
(struct sockaddr *) &localaddr, local_port,
"raw", flags&NETSTAT_NUMERIC);
-
+
snprint_ip_port(rem_addr, sizeof(rem_addr),
(struct sockaddr *) &remaddr, rem_port,
"raw", flags&NETSTAT_NUMERIC);
@@ -558,7 +558,7 @@ int netstat_main(int argc, char **argv)
{
int opt;
int new_flags=0;
- int showroute = 0, extended = 0;
+ int showroute = 0, extended = 0;
#ifdef CONFIG_FEATURE_IPV6
int inet=1;
int inet6=1;
@@ -600,14 +600,14 @@ int netstat_main(int argc, char **argv)
bb_show_usage();
}
if ( showroute ) {
-#ifdef CONFIG_ROUTE
+#ifdef CONFIG_ROUTE
displayroutes ( flags & NETSTAT_NUMERIC, !extended );
- return 0;
+ return 0;
#else
bb_error_msg_and_die( "-r (display routing table) is not compiled in." );
#endif
- }
-
+ }
+
if (new_flags) {
flags &= ~(NETSTAT_TCP|NETSTAT_UDP|NETSTAT_RAW|NETSTAT_UNIX);
flags |= new_flags;
diff --git a/networking/nslookup.c b/networking/nslookup.c
index 329510630..bb691d687 100644
--- a/networking/nslookup.c
+++ b/networking/nslookup.c
@@ -187,7 +187,7 @@ int nslookup_main(int argc, char **argv)
if (argc < 2 || *argv[1]=='-' || argc > 3)
bb_show_usage();
- else if(argc == 3)
+ else if(argc == 3)
set_default_dns(argv[2]);
server_print();
@@ -200,4 +200,4 @@ int nslookup_main(int argc, char **argv)
return EXIT_SUCCESS;
}
-/* $Id: nslookup.c,v 1.31 2004/01/30 22:40:05 andersen Exp $ */
+/* $Id: nslookup.c,v 1.32 2004/03/15 08:28:48 andersen Exp $ */
diff --git a/networking/ping.c b/networking/ping.c
index a38f356d6..50f3930ff 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.55 2003/07/22 08:56:51 andersen Exp $
+ * $Id: ping.c,v 1.56 2004/03/15 08:28:48 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -27,7 +27,7 @@
*
* This code is derived from software contributed to Berkeley by
* Mike Muuss.
- *
+ *
* Original copyright notice is retained at the end of this file.
*/
@@ -329,7 +329,7 @@ static void unpack(char *buf, int sz, struct sockaddr_in *from)
if (dupflag)
printf(" (DUP!)");
printf("\n");
- } else
+ } else
if (icmppkt->icmp_type != ICMP_ECHO)
bb_error_msg("Warning: Got ICMP %d (%s)",
icmppkt->icmp_type, icmp_type_name (icmppkt->icmp_type));
@@ -451,8 +451,8 @@ extern int ping_main(int argc, char **argv)
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
+ * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
+ * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
*
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
diff --git a/networking/ping6.c b/networking/ping6.c
index d9d0dd343..72867f346 100644
--- a/networking/ping6.c
+++ b/networking/ping6.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping6.c,v 1.5 2003/05/22 07:10:22 andersen Exp $
+ * $Id: ping6.c,v 1.6 2004/03/15 08:28:48 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -27,7 +27,7 @@
*
* This code is derived from software contributed to Berkeley by
* Mike Muuss.
- *
+ *
* Original copyright notice is retained at the end of this file.
*
* This version is an adaptation of ping.c from busybox.
@@ -162,7 +162,7 @@ static unsigned long tmin = ULONG_MAX, tmax, tsum;
static char rcvd_tbl[MAX_DUP_CHK / 8];
# ifdef CONFIG_FEATURE_FANCY_PING
-extern
+extern
# endif
struct hostent *hostent;
@@ -302,12 +302,12 @@ static void unpack(char *packet, int sz, struct sockaddr_in6 *from, int hoplimit
inet_ntop(AF_INET6, (struct in_addr6 *) &pingaddr.sin6_addr,
buf, sizeof(buf)),
icmppkt->icmp6_seq);
- printf(" ttl=%d time=%lu.%lu ms", hoplimit,
+ printf(" ttl=%d time=%lu.%lu ms", hoplimit,
triptime / 10, triptime % 10);
if (dupflag)
printf(" (DUP!)");
printf("\n");
- } else
+ } else
if (icmppkt->icmp6_type != ICMP6_ECHO_REQUEST)
bb_error_msg("Warning: Got ICMP %d (%s)",
icmppkt->icmp6_type, icmp6_type_name (icmppkt->icmp6_type));
@@ -494,8 +494,8 @@ extern int ping6_main(int argc, char **argv)
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
+ * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
+ * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
*
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
diff --git a/networking/route.c b/networking/route.c
index 111900d33..9e7a01034 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -15,7 +15,7 @@
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: route.c,v 1.24 2004/03/10 07:42:38 mjn3 Exp $
+ * $Id: route.c,v 1.25 2004/03/15 08:28:49 andersen Exp $
*
* displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru>
* adjustments by Larry Doolittle <LRDoolittle@lbl.gov>
@@ -107,7 +107,7 @@ static const char tbl_hash_net_host[] =
#define KW_IPVx_DYN 042
#define KW_IPVx_REINSTATE 043
-static const char tbl_ipvx[] =
+static const char tbl_ipvx[] =
/* 020 is the "takes an arg" bit */
#if HAVE_NEW_ADDRT
"\011\020metric\0"
@@ -206,7 +206,7 @@ static void INET_setroute(int action, char **args)
while (*args) {
int k = kw_lookup(tbl_ipvx, &args);
const char *args_m1 = args[-1];
-
+
if (k & KW_IPVx_FLAG_ONLY) {
rt.rt_flags |= flags_ipvx[k & 3];
continue;
@@ -666,7 +666,7 @@ int route_main(int argc, char **argv)
p[0][0] = '#';
}
}
- }
+ }
opt = bb_getopt_ulflags(argc, argv, "A:ne", &family);
diff --git a/networking/telnet.c b/networking/telnet.c
index 574fe8dab..6c5f3d15b 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -54,7 +54,7 @@ static const int DOTRACE = 1;
#include <arpa/inet.h> /* for inet_ntoa()... */
#define TRACE(x, y) do { if (x) printf y; } while (0)
#else
-#define TRACE(x, y)
+#define TRACE(x, y)
#endif
#if 0
@@ -99,8 +99,8 @@ static struct Globalvars {
/* buffer to handle telnet negotiations */
char iacbuf[IACBUFSIZE];
short iaclen; /* could even use byte */
- struct termios termios_def;
- struct termios termios_raw;
+ struct termios termios_def;
+ struct termios termios_raw;
} G;
#define xUSE_GLOBALVAR_PTR /* xUSE... -> don't use :D (makes smaller code) */
@@ -143,7 +143,7 @@ static void doexit(int ev)
{
cookmode();
exit(ev);
-}
+}
static void conescape(void)
{
@@ -190,10 +190,10 @@ static void conescape(void)
if (G.gotsig)
cookmode();
-
+
rrturn:
G.gotsig = 0;
-
+
}
static void handlenetoutput(int len)
{
@@ -442,7 +442,7 @@ static void will_charmode(void)
G.charmode = CHM_TRY;
G.telflags |= (UF_ECHO | UF_SGA);
setConMode();
-
+
putiac2(DO, TELOPT_ECHO);
putiac2(DO, TELOPT_SGA);
iacflush();
@@ -472,7 +472,7 @@ static inline void to_echo(void)
/* if server requests ECHO, don't agree */
if (G.telwish == DO) { putiac2(WONT, TELOPT_ECHO); return; }
else if (G.telwish == DONT) return;
-
+
if (G.telflags & UF_ECHO)
{
if (G.telwish == WILL)
@@ -506,7 +506,7 @@ static inline void to_sga(void)
else
if (G.telwish == WONT)
return;
-
+
if ((G.telflags ^= UF_SGA) & UF_SGA) /* toggle */
putiac2(DO, TELOPT_SGA);
else
@@ -545,11 +545,11 @@ static inline void to_new_environ(void)
#ifdef CONFIG_FEATURE_AUTOWIDTH
static inline void to_naws(void)
-{
+{
/* Tell server we will do NAWS */
putiac2(WILL, TELOPT_NAWS);
return;
-}
+}
#endif
static void telopt(byte c)
@@ -617,7 +617,7 @@ static void fgotsig(int sig)
static void rawmode(void)
{
tcsetattr(0, TCSADRAIN, &G.termios_raw);
-}
+}
static void cookmode(void)
{
@@ -630,10 +630,10 @@ extern int telnet_main(int argc, char** argv)
struct sockaddr_in s_in;
#ifdef USE_POLL
struct pollfd ufds[2];
-#else
+#else
fd_set readfds;
int maxfd;
-#endif
+#endif
#ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
int opt;
@@ -651,13 +651,13 @@ extern int telnet_main(int argc, char** argv)
if (tcgetattr(0, &G.termios_def) < 0)
exit(1);
-
+
G.termios_raw = G.termios_def;
cfmakeraw(&G.termios_raw);
-
+
if (argc < 2)
bb_show_usage();
-
+
#ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
autologin = NULL;
while ((opt = getopt(argc, argv, "al:")) != EOF) {
@@ -685,7 +685,7 @@ extern int telnet_main(int argc, char** argv)
bb_lookup_host(&s_in, argv[1]);
s_in.sin_port = bb_lookup_port((argc == 3) ? argv[2] : "telnet", "tcp", 23);
#endif
-
+
G.netfd = xconnect(&s_in);
setsockopt(G.netfd, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof one);
@@ -695,22 +695,22 @@ extern int telnet_main(int argc, char** argv)
#ifdef USE_POLL
ufds[0].fd = 0; ufds[1].fd = G.netfd;
ufds[0].events = ufds[1].events = POLLIN;
-#else
+#else
FD_ZERO(&readfds);
FD_SET(0, &readfds);
FD_SET(G.netfd, &readfds);
maxfd = G.netfd + 1;
#endif
-
+
while (1)
{
#ifndef USE_POLL
fd_set rfds = readfds;
-
+
switch (select(maxfd, &rfds, NULL, NULL, NULL))
#else
switch (poll(ufds, 2, -1))
-#endif
+#endif
{
case 0:
/* timeout */
@@ -725,9 +725,9 @@ extern int telnet_main(int argc, char** argv)
#ifdef USE_POLL
if (ufds[0].revents) /* well, should check POLLIN, but ... */
-#else
+#else
if (FD_ISSET(0, &rfds))
-#endif
+#endif
{
len = read(0, G.buf, DATABUFSIZE);
@@ -735,15 +735,15 @@ extern int telnet_main(int argc, char** argv)
doexit(0);
TRACE(0, ("Read con: %d\n", len));
-
+
handlenetoutput(len);
}
#ifdef USE_POLL
if (ufds[1].revents) /* well, should check POLLIN, but ... */
-#else
+#else
if (FD_ISSET(G.netfd, &rfds))
-#endif
+#endif
{
len = read(G.netfd, G.buf, DATABUFSIZE);
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 3051cfa1e..efb2988b3 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -1,4 +1,4 @@
-/* $Id: telnetd.c,v 1.10 2004/02/22 09:45:57 bug1 Exp $
+/* $Id: telnetd.c,v 1.11 2004/03/15 08:28:53 andersen Exp $
*
* Simple telnet server
* Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
@@ -49,7 +49,7 @@
#define BUFSIZE 4000
-static const char *loginpath
+static const char *loginpath
#ifdef CONFIG_LOGIN
= "/bin/login";
#else
@@ -540,7 +540,7 @@ telnetd_main(int argc, char **argv)
#ifndef CONFIG_FEATURE_TELNETD_INETD
struct tsession *next = ts->next; /* in case we free ts. */
#endif /* CONFIG_FEATURE_TELNETD_INETD */
-
+
if (ts->size1 && FD_ISSET(ts->ptyfd, &wrfdset)) {
int num_totty;
char *ptr;
diff --git a/networking/tftp.c b/networking/tftp.c
index 10aa63bb9..bd973d79a 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -76,15 +76,15 @@ const int tftp_cmd_put = 2;
#ifdef CONFIG_FEATURE_TFTP_BLOCKSIZE
-static int tftp_blocksize_check(int blocksize, int bufsize)
+static int tftp_blocksize_check(int blocksize, int bufsize)
{
- /* Check if the blocksize is valid:
+ /* Check if the blocksize is valid:
* RFC2348 says between 8 and 65464,
* but our implementation makes it impossible
* to use blocksizes smaller than 22 octets.
*/
- if ((bufsize && (blocksize > bufsize)) ||
+ if ((bufsize && (blocksize > bufsize)) ||
(blocksize < 8) || (blocksize > 65464)) {
bb_error_msg("bad blocksize");
return 0;
@@ -93,12 +93,12 @@ static int tftp_blocksize_check(int blocksize, int bufsize)
return blocksize;
}
-static char *tftp_option_get(char *buf, int len, char *option)
+static char *tftp_option_get(char *buf, int len, char *option)
{
int opt_val = 0;
int opt_found = 0;
int k;
-
+
while (len > 0) {
/* Make sure the options are terminated correctly */
@@ -117,21 +117,21 @@ static char *tftp_option_get(char *buf, int len, char *option)
if (strcasecmp(buf, option) == 0) {
opt_found = 1;
}
- }
+ }
else {
if (opt_found) {
return buf;
}
}
-
+
k++;
-
+
buf += k;
len -= k;
-
+
opt_val ^= 1;
}
-
+
return NULL;
}
@@ -207,7 +207,7 @@ static inline int tftp(const int cmd, const struct hostent *host,
if ((cmd_get && (opcode == TFTP_RRQ)) ||
(cmd_put && (opcode == TFTP_WRQ))) {
- int too_long = 0;
+ int too_long = 0;
/* see if the filename fits into buf */
/* and fill in packet */
@@ -380,7 +380,7 @@ static inline int tftp(const int cmd, const struct hostent *host,
if (buf[4] != '\0') {
msg = &buf[4];
buf[tftp_bufsize - 1] = '\0';
- } else if (tmp < (sizeof(tftp_bb_error_msg)
+ } else if (tmp < (sizeof(tftp_bb_error_msg)
/ sizeof(char *))) {
msg = (char *) tftp_bb_error_msg[tmp];
@@ -404,12 +404,12 @@ static inline int tftp(const int cmd, const struct hostent *host,
char *res;
- res = tftp_option_get(&buf[2], len-2,
+ res = tftp_option_get(&buf[2], len-2,
"blksize");
if (res) {
int blksize = atoi(res);
-
+
if (tftp_blocksize_check(blksize,
tftp_bufsize - 4)) {
@@ -443,7 +443,7 @@ static inline int tftp(const int cmd, const struct hostent *host,
if (cmd_get && (opcode == TFTP_DATA)) {
if (tmp == block_nr) {
-
+
len = write(localfd, &buf[4], len - 4);
if (len < 0) {
@@ -506,13 +506,13 @@ int tftp_main(int argc, char **argv)
#ifdef CONFIG_FEATURE_TFTP_GET
#define GET "g"
#else
-#define GET
+#define GET
#endif
#ifdef CONFIG_FEATURE_TFTP_PUT
#define PUT "p"
#else
-#define PUT
+#define PUT
#endif
while ((opt = getopt(argc, argv, BS GET PUT "l:r:")) != -1) {
@@ -537,7 +537,7 @@ int tftp_main(int argc, char **argv)
flags = O_RDONLY;
break;
#endif
- case 'l':
+ case 'l':
localfile = bb_xstrdup(optarg);
break;
case 'r':
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 5f8989fd1..44ffdf07e 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -75,7 +75,7 @@
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
-
+
#define MAXPACKET 65535 /* max ip packet size */
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
diff --git a/networking/udhcp/AUTHORS b/networking/udhcp/AUTHORS
index bb58de13e..f3f43364a 100644
--- a/networking/udhcp/AUTHORS
+++ b/networking/udhcp/AUTHORS
@@ -8,7 +8,6 @@ Chris Trew <christ@moreton.com.au>
Other Credits:
--------------
Moreton Bay (http://www.moretonbay.com/)
-Lineo (http://opensource.lineo.com)
Vladimir Oleynik <dzo@simtrea.ru> Size optimizations
diff --git a/networking/udhcp/ChangeLog b/networking/udhcp/ChangeLog
index f1aac060e..2feffc776 100644
--- a/networking/udhcp/ChangeLog
+++ b/networking/udhcp/ChangeLog
@@ -39,7 +39,7 @@
(Ted Lemon <Ted.Lemon@nominum.com>)
+ Improved (hopefully) NAKing behavior (me)
+ Added -b option (Jouni Malinen)
-+ Compute checksums correctly on big endian hosts
++ Compute checksums correctly on big endian hosts
(Jouni Malinen <jkmaline@cc.hut.fi>)
0.9.7 (020526)
diff --git a/networking/udhcp/Makefile b/networking/udhcp/Makefile
index ee34d48ff..2b79d2293 100644
--- a/networking/udhcp/Makefile
+++ b/networking/udhcp/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/networking/udhcp/Makefile.in b/networking/udhcp/Makefile.in
index 4d3f27093..b48079429 100644
--- a/networking/udhcp/Makefile.in
+++ b/networking/udhcp/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/networking/udhcp/README b/networking/udhcp/README
index eddb24be7..dd992949a 100644
--- a/networking/udhcp/README
+++ b/networking/udhcp/README
@@ -10,30 +10,30 @@ compile time options
-------------------
The Makefile contains three of the compile time options:
-
+
UDHCP_DEBUG: If UDHCP_DEBUG is defined, udhcpd will output extra
debugging output, compile with -g, and not fork to the background when
run.
UDHCP_SYSLOG: If UDHCP_SYSLOG is defined, udhcpd will log all its
messages syslog, otherwise, it will attempt to log them to stdout.
-
+
COMBINED_BINARY: If COMBINED_BINARY is define, one binary, udhcpd,
is created. If called as udhcpd, the dhcp server will be started.
If called as udhcpc, the dhcp client will be started.
-
+
dhcpd.h contains the other three compile time options:
-
+
LEASE_TIME: The default lease time if not specified in the config
file.
LEASES_FILE: The default file for storing leases.
-
+
DHCPD_CONFIG_FILE: The defualt config file to use.
-
+
options.c contains a set of dhcp options for the client:
name[10]: The name of the option as it will appear in scripts
-
+
flags: The type of option, as well as if it will be requested
by the client (OPTION_REQ)
@@ -45,7 +45,7 @@ busybox drop-in
udhcp is now a drop-in component for busybox (http://busybox.net).
To update busybox to the latest revision, simply do a:
-cp *.[ch] README AUTHORS COPYING ChangeLog TODO \
+cp *.[ch] README AUTHORS COPYING ChangeLog TODO \
<busybox_source>/networking/udhcp
The only two files udhcp does not provide are config.in and
diff --git a/networking/udhcp/README.udhcpc b/networking/udhcp/README.udhcpc
index 8aee9814b..d720a37cf 100644
--- a/networking/udhcp/README.udhcpc
+++ b/networking/udhcp/README.udhcpc
@@ -36,20 +36,20 @@ udhcp client scripts
When an event occurs, udhcpc calls the action script. udhcpc never does
any configuration of the network interface itself, but instead relies on
-a set of scripts. The script by default is
+a set of scripts. The script by default is
/usr/share/udhcpc/default.script but this can be changed via the command
line arguments. The three possible arguments to the script are:
deconfig: This argument is used when udhcpc starts, and
when a leases is lost. The script must put the interface in an
up, but deconfigured state, ie: ifconfig $interface 0.0.0.0.
-
+
bound: This argument is used when udhcpc moves from an
unbound, to a bound state. All of the paramaters are set in
enviromental variables, The script should configure the interface,
- and set any other relavent parameters (default gateway, dns server,
+ and set any other relavent parameters (default gateway, dns server,
etc).
-
+
renew: This argument is used when a DHCP lease is renewed. All of
the paramaters are set in enviromental variables. This argument is
used when the interface is already configured, so the IP address,
@@ -133,7 +133,7 @@ compile time options
options.c contains a set of dhcp options for the client:
name[10]: The name of the option as it will appear in scripts
-
+
flags: The type of option, as well as if it will be requested
by the client (OPTION_REQ)
diff --git a/networking/udhcp/README.udhcpd b/networking/udhcp/README.udhcpd
index bc6137de3..169de78ec 100644
--- a/networking/udhcp/README.udhcpd
+++ b/networking/udhcp/README.udhcpd
@@ -14,7 +14,7 @@ udhcpd.leases
The udhcpd.leases behavior is designed for an embedded system. The
file is written either every auto_time seconds, or when a SIGUSR1
-is received (the auto_time timer restarts if a SIGUSR1 is received).
+is received (the auto_time timer restarts if a SIGUSR1 is received).
If you send a SIGTERM to udhcpd directly after a SIGUSR1, udhcpd will
finish writing the leases file and wait for the aftermentioned script
to be executed and finish before quiting, so you do not need to sleep
@@ -50,10 +50,10 @@ available options and comments describing them in samples/udhcpd.conf
compile time options
-------------------
-
+
dhcpd.h contains the other two compile time options:
-
+
LEASE_TIME: The default lease time if not specified in the config
file.
-
+
DHCPD_CONFIG_FILE: The defualt config file to use.
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c
index 23c7d46b3..ab4c6d20c 100644
--- a/networking/udhcp/arpping.c
+++ b/networking/udhcp/arpping.c
@@ -25,8 +25,8 @@
* interface - interface to use
* retn: 1 addr free
* 0 addr used
- * -1 error
- */
+ * -1 error
+ */
/* FIXME: match response against chaddr */
int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface)
@@ -51,7 +51,7 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface)
#endif
return -1;
}
-
+
if (setsockopt(s, SOL_SOCKET, SO_BROADCAST, &optval, sizeof(optval)) == -1) {
LOG(LOG_ERR, "Could not setsocketopt on raw socket");
close(s);
@@ -71,12 +71,12 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface)
memcpy(arp.sInaddr, &ip, sizeof(ip)); /* source IP address */
memcpy(arp.sHaddr, mac, 6); /* source hardware address */
memcpy(arp.tInaddr, &yiaddr, sizeof(yiaddr)); /* target IP address */
-
+
memset(&addr, 0, sizeof(addr));
strcpy(addr.sa_data, interface);
if (sendto(s, &arp, sizeof(arp), 0, &addr, sizeof(addr)) < 0)
rv = 0;
-
+
/* wait arp reply, and check it */
tm.tv_usec = 0;
time(&prevTime);
@@ -89,8 +89,8 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface)
if (errno != EINTR) rv = 0;
} else if (FD_ISSET(s, &fdset)) {
if (recv(s, &arp, sizeof(arp), 0) < 0 ) rv = 0;
- if (arp.operation == htons(ARPOP_REPLY) &&
- bcmp(arp.tHaddr, mac, 6) == 0 &&
+ if (arp.operation == htons(ARPOP_REPLY) &&
+ bcmp(arp.tHaddr, mac, 6) == 0 &&
*((uint32_t *) arp.sInaddr) == yiaddr) {
DEBUG(LOG_INFO, "Valid arp reply receved for this address");
rv = 0;
@@ -101,6 +101,6 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface)
time(&prevTime);
}
close(s);
- DEBUG(LOG_INFO, "%salid arp replies for this address", rv ? "No v" : "V");
+ DEBUG(LOG_INFO, "%salid arp replies for this address", rv ? "No v" : "V");
return rv;
}
diff --git a/networking/udhcp/arpping.h b/networking/udhcp/arpping.h
index 6cbd2979f..6f27d9f75 100644
--- a/networking/udhcp/arpping.h
+++ b/networking/udhcp/arpping.h
@@ -15,7 +15,7 @@ struct arpMsg {
u_char h_dest[6]; /* destination ether addr */
u_char h_source[6]; /* source ether addr */
u_short h_proto; /* packet type ID field */
-
+
/* ARP packet */
uint16_t htype; /* hardware type (must be ARPHRD_ETHER) */
uint16_t ptype; /* protocol type (must be ETH_P_IP) */
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c
index 6838c07e8..5b27004f9 100644
--- a/networking/udhcp/clientpacket.c
+++ b/networking/udhcp/clientpacket.c
@@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
#include <string.h>
#include <sys/socket.h>
#include <features.h>
@@ -73,7 +73,7 @@ static void init_packet(struct dhcpMessage *packet, char type)
char vendor, length;
char str[sizeof("udhcp "VERSION)];
} vendor_id = { DHCP_VENDOR, sizeof("udhcp "VERSION) - 1, "udhcp "VERSION};
-
+
init_header(packet, type);
memcpy(packet->chaddr, client_config.arp, 6);
add_option_string(packet->options, client_config.clientid);
@@ -112,7 +112,7 @@ int send_discover(unsigned long xid, unsigned long requested)
add_requests(&packet);
LOG(LOG_DEBUG, "Sending discover...");
- return raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,
+ return raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,
SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
}
@@ -128,11 +128,11 @@ int send_selecting(unsigned long xid, unsigned long server, unsigned long reques
add_simple_option(packet.options, DHCP_REQUESTED_IP, requested);
add_simple_option(packet.options, DHCP_SERVER_ID, server);
-
+
add_requests(&packet);
addr.s_addr = requested;
LOG(LOG_DEBUG, "Sending select for %s...", inet_ntoa(addr));
- return raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,
+ return raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,
SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
}
@@ -149,12 +149,12 @@ int send_renew(unsigned long xid, unsigned long server, unsigned long ciaddr)
add_requests(&packet);
LOG(LOG_DEBUG, "Sending renew...");
- if (server)
+ if (server)
ret = kernel_packet(&packet, ciaddr, CLIENT_PORT, server, SERVER_PORT);
else ret = raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,
SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
return ret;
-}
+}
/* Unicasts a DHCP release message */
@@ -165,7 +165,7 @@ int send_release(unsigned long server, unsigned long ciaddr)
init_packet(&packet, DHCPRELEASE);
packet.xid = random_xid();
packet.ciaddr = ciaddr;
-
+
add_simple_option(packet.options, DHCP_REQUESTED_IP, ciaddr);
add_simple_option(packet.options, DHCP_SERVER_ID, server);
@@ -189,20 +189,20 @@ int get_raw_packet(struct dhcpMessage *payload, int fd)
usleep(500000); /* possible down interface, looping condition */
return -1;
}
-
+
if (bytes < (int) (sizeof(struct iphdr) + sizeof(struct udphdr))) {
DEBUG(LOG_INFO, "message too short, ignoring");
return -2;
}
-
+
if (bytes < ntohs(packet.ip.tot_len)) {
DEBUG(LOG_INFO, "Truncated packet");
return -2;
}
-
+
/* ignore any extra garbage bytes */
bytes = ntohs(packet.ip.tot_len);
-
+
/* Make sure its the right packet for us, and that it passes sanity checks */
if (packet.ip.protocol != IPPROTO_UDP || packet.ip.version != IPVERSION ||
packet.ip.ihl != sizeof(packet.ip) >> 2 || packet.udp.dest != htons(CLIENT_PORT) ||
@@ -219,7 +219,7 @@ int get_raw_packet(struct dhcpMessage *payload, int fd)
DEBUG(LOG_INFO, "bad IP header checksum, ignoring");
return -1;
}
-
+
/* verify the UDP checksum by replacing the header with a psuedo header */
source = packet.ip.saddr;
dest = packet.ip.daddr;
@@ -235,14 +235,14 @@ int get_raw_packet(struct dhcpMessage *payload, int fd)
DEBUG(LOG_ERR, "packet with bad UDP checksum received, ignoring");
return -2;
}
-
+
memcpy(payload, &(packet.data), bytes - (sizeof(packet.ip) + sizeof(packet.udp)));
-
+
if (ntohl(payload->cookie) != DHCP_MAGIC) {
LOG(LOG_ERR, "received bogus message (bad magic) -- ignoring");
return -2;
}
DEBUG(LOG_INFO, "oooooh!!! got some!");
return bytes - (sizeof(packet.ip) + sizeof(packet.udp));
-
+
}
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 8542c664c..5dad7d51c 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -55,7 +55,7 @@ static inline void sanitize_fds(void)
void background(const char *pidfile)
{
#ifdef __uClinux__
- LOG(LOG_ERR, "Cannot background in uclinux (yet)");
+ LOG(LOG_ERR, "Cannot background in uclinux (yet)");
#else /* __uClinux__ */
int pid_fd;
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 78eb1c147..677bbfd17 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -43,7 +43,7 @@ void background(const char *pidfile);
void start_log_and_pid(const char *client_server, const char *pidfile);
void background(const char *pidfile);
void udhcp_logging(int level, const char *fmt, ...);
-
+
#define LOG(level, str, args...) udhcp_logging(level, str, ## args)
#ifdef UDHCP_DEBUG
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 2ba42d295..dda678933 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
#include <sys/time.h>
#include <sys/file.h>
#include <unistd.h>
@@ -152,7 +152,7 @@ static void perform_release(void)
temp_addr.s_addr = server_addr;
sprintf(buffer, "%s", inet_ntoa(temp_addr));
temp_addr.s_addr = requested_ip;
- LOG(LOG_INFO, "Unicasting a release of %s to %s",
+ LOG(LOG_INFO, "Unicasting a release of %s to %s",
inet_ntoa(temp_addr), buffer);
send_release(server_addr, requested_ip); /* unicast */
run_script(NULL, "deconfig");
@@ -213,7 +213,7 @@ int main(int argc, char *argv[])
int option_index = 0;
c = getopt_long(argc, argv, "c:fbH:h:i:np:qr:s:v", arg_options, &option_index);
if (c == -1) break;
-
+
switch (c) {
case 'c':
len = strlen(optarg) > 255 ? 255 : strlen(optarg);
@@ -269,10 +269,10 @@ int main(int argc, char *argv[])
/* Start the log, sanitize fd's, and write a pid file */
start_log_and_pid("udhcpc", client_config.pidfile);
- if (read_interface(client_config.interface, &client_config.ifindex,
+ if (read_interface(client_config.interface, &client_config.ifindex,
NULL, client_config.arp) < 0)
return 1;
-
+
if (!client_config.clientid) {
client_config.clientid = xmalloc(6 + 3);
client_config.clientid[OPT_CODE] = DHCP_CLIENT_ID;
@@ -282,8 +282,8 @@ int main(int argc, char *argv[])
}
/* setup the signal pipe */
- udhcp_sp_setup();
-
+ udhcp_sp_setup();
+
state = INIT_SELECTING;
run_script(NULL, "deconfig");
change_mode(LISTEN_RAW);
@@ -321,7 +321,7 @@ int main(int argc, char *argv[])
/* send discover packet */
send_discover(xid, requested_ip); /* broadcast */
-
+
timeout = now + ((packet_num == 2) ? 4 : 2);
packet_num++;
} else {
@@ -345,7 +345,7 @@ int main(int argc, char *argv[])
if (state == RENEW_REQUESTED)
send_renew(xid, server_addr, requested_ip); /* unicast */
else send_selecting(xid, server_addr, requested_ip); /* broadcast */
-
+
timeout = now + ((packet_num == 2) ? 10 : 2);
packet_num++;
} else {
@@ -373,7 +373,7 @@ int main(int argc, char *argv[])
} else {
/* send a request packet */
send_renew(xid, server_addr, requested_ip); /* unicast */
-
+
t1 = (t2 - t1) / 2 + t1;
timeout = t1 + start;
}
@@ -403,28 +403,28 @@ int main(int argc, char *argv[])
}
} else if (retval > 0 && listen_mode != LISTEN_NONE && FD_ISSET(fd, &rfds)) {
/* a packet is ready, read it */
-
+
if (listen_mode == LISTEN_KERNEL)
len = get_packet(&packet, fd);
else len = get_raw_packet(&packet, fd);
-
+
if (len == -1 && errno != EINTR) {
DEBUG(LOG_INFO, "error on read, %m, reopening socket");
change_mode(listen_mode); /* just close and reopen */
}
if (len < 0) continue;
-
+
if (packet.xid != xid) {
DEBUG(LOG_INFO, "Ignoring XID %lx (our xid is %lx)",
(unsigned long) packet.xid, xid);
continue;
}
-
+
if ((message = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) {
DEBUG(LOG_ERR, "couldnt get option from packet -- ignoring");
continue;
}
-
+
switch (state) {
case INIT_SELECTING:
/* Must be a DHCPOFFER to one of our xid's */
@@ -433,7 +433,7 @@ int main(int argc, char *argv[])
memcpy(&server_addr, temp, 4);
xid = packet.xid;
requested_ip = packet.yiaddr;
-
+
/* enter requesting state */
state = REQUESTING;
timeout = now;
@@ -455,14 +455,14 @@ int main(int argc, char *argv[])
memcpy(&lease, temp, 4);
lease = ntohl(lease);
}
-
+
/* enter bound state */
t1 = lease / 2;
-
+
/* little fixed point for n * .875 */
t2 = (lease * 0x7) >> 3;
temp_addr.s_addr = packet.yiaddr;
- LOG(LOG_INFO, "Lease of %s obtained, lease time %ld",
+ LOG(LOG_INFO, "Lease of %s obtained, lease time %ld",
inet_ntoa(temp_addr), lease);
start = now;
timeout = t1 + start;
@@ -472,7 +472,7 @@ int main(int argc, char *argv[])
state = BOUND;
change_mode(LISTEN_NONE);
- if (client_config.quit_after_lease)
+ if (client_config.quit_after_lease)
return 0;
if (!client_config.foreground)
client_background();
@@ -492,10 +492,10 @@ int main(int argc, char *argv[])
}
break;
/* case BOUND, RELEASED: - ignore all packets */
- }
+ }
} else if (retval > 0 && (sig = udhcp_sp_read(&rfds))) {
switch (sig) {
- case SIGUSR1:
+ case SIGUSR1:
perform_renew();
break;
case SIGUSR2:
@@ -506,12 +506,12 @@ int main(int argc, char *argv[])
return 0;
}
} else if (retval == -1 && errno == EINTR) {
- /* a signal was caught */
+ /* a signal was caught */
} else {
/* An error occured */
DEBUG(LOG_ERR, "Error on select");
}
-
+
}
return 0;
}
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 8c944f243..6f38f07f7 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -51,12 +51,12 @@ struct dhcpOfferedAddr *leases;
struct server_config_t server_config;
-#ifdef COMBINED_BINARY
+#ifdef COMBINED_BINARY
int udhcpd_main(int argc, char *argv[])
#else
int main(int argc, char *argv[])
#endif
-{
+{
fd_set rfds;
struct timeval tv;
int server_socket = -1;
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
struct dhcpOfferedAddr *lease;
int max_sock;
unsigned long num_ips;
-
+
memset(&server_config, 0, sizeof(struct server_config_t));
read_config(argc < 2 ? DHCPD_CONF_FILE : argv[1]);
@@ -82,7 +82,7 @@ int main(int argc, char *argv[])
server_config.lease = ntohl(server_config.lease);
}
else server_config.lease = LEASE_TIME;
-
+
/* Sanity check */
num_ips = ntohl(server_config.end) - ntohl(server_config.start);
if (server_config.max_leases > num_ips) {
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
if ((server_socket = listen_socket(INADDR_ANY, SERVER_PORT, server_config.interface)) < 0) {
LOG(LOG_ERR, "FATAL: couldn't create server socket, %m");
return 2;
- }
+ }
max_sock = udhcp_sp_fd_set(&rfds, server_socket);
if (server_config.auto_time) {
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
tv.tv_usec = 0;
}
if (!server_config.auto_time || tv.tv_sec > 0) {
- retval = select(max_sock + 1, &rfds, NULL, NULL,
+ retval = select(max_sock + 1, &rfds, NULL, NULL,
server_config.auto_time ? &tv : NULL);
} else retval = 0; /* If we already timed out, fall through */
@@ -133,7 +133,7 @@ int main(int argc, char *argv[])
DEBUG(LOG_INFO, "error on select");
continue;
}
-
+
switch (udhcp_sp_read(&rfds)) {
case SIGUSR1:
LOG(LOG_INFO, "Received a SIGUSR1");
@@ -161,17 +161,17 @@ int main(int argc, char *argv[])
DEBUG(LOG_ERR, "couldn't get option from packet, ignoring");
continue;
}
-
+
/* ADDME: look for a static lease */
lease = find_lease_by_chaddr(packet.chaddr);
switch (state[0]) {
case DHCPDISCOVER:
DEBUG(LOG_INFO,"received DISCOVER");
-
+
if (sendOffer(&packet) < 0) {
LOG(LOG_ERR, "send OFFER failed");
}
- break;
+ break;
case DHCPREQUEST:
DEBUG(LOG_INFO, "received REQUEST");
@@ -180,12 +180,12 @@ int main(int argc, char *argv[])
if (requested) memcpy(&requested_align, requested, 4);
if (server_id) memcpy(&server_id_align, server_id, 4);
-
+
if (lease) { /*ADDME: or static lease */
if (server_id) {
/* SELECTING State */
DEBUG(LOG_INFO, "server_id = %08x", ntohl(server_id_align));
- if (server_id_align == server_config.server && requested &&
+ if (server_id_align == server_config.server && requested &&
requested_align == lease->yiaddr) {
sendACK(&packet, lease->yiaddr);
}
@@ -203,9 +203,9 @@ int main(int argc, char *argv[])
/* don't know what to do!!!! */
sendNAK(&packet);
}
- }
+ }
}
-
+
/* what to do if we have no record of the client */
} else if (server_id) {
/* SELECTING State */
@@ -218,7 +218,7 @@ int main(int argc, char *argv[])
memset(lease->chaddr, 0, 16);
/* make some contention for this address */
} else sendNAK(&packet);
- } else if (requested_align < server_config.start ||
+ } else if (requested_align < server_config.start ||
requested_align > server_config.end) {
sendNAK(&packet);
} /* else remain silent */
@@ -232,7 +232,7 @@ int main(int argc, char *argv[])
if (lease) {
memset(lease->chaddr, 0, 16);
lease->expires = time(0) + server_config.decline_time;
- }
+ }
break;
case DHCPRELEASE:
DEBUG(LOG_INFO,"received RELEASE");
@@ -241,7 +241,7 @@ int main(int argc, char *argv[])
case DHCPINFORM:
DEBUG(LOG_INFO,"received INFORM");
send_inform(&packet);
- break;
+ break;
default:
LOG(LOG_WARNING, "unsupported DHCP message (%02x) -- ignoring", state[0]);
}
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index 925634461..39658a8ff 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -124,10 +124,10 @@ struct server_config_t {
uint32_t siaddr; /* next server bootp option */
char *sname; /* bootp server name */
char *boot_file; /* bootp boot file option */
-};
+};
extern struct server_config_t server_config;
extern struct dhcpOfferedAddr *leases;
-
+
#endif
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c
index e2b19315d..a9036dfbd 100644
--- a/networking/udhcp/dumpleases.c
+++ b/networking/udhcp/dumpleases.c
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
const char *file = LEASES_FILE;
struct dhcpOfferedAddr lease;
struct in_addr addr;
-
+
static const struct option options[] = {
{"absolute", 0, 0, 'a'},
{"remaining", 0, 0, 'r'},
@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
int option_index = 0;
c = getopt_long(argc, argv, "arf:", options, &option_index);
if (c == -1) break;
-
+
switch (c) {
case 'a': mode = ABSOLUTE; break;
case 'r': mode = REMAINING; break;
@@ -70,10 +70,10 @@ int main(int argc, char *argv[])
show_usage();
}
}
-
+
fp = xfopen(file, "r");
- printf("Mac Address IP-Address Expires %s\n", mode == REMAINING ? "in" : "at");
+ printf("Mac Address IP-Address Expires %s\n", mode == REMAINING ? "in" : "at");
/* "00:00:00:00:00:00 255.255.255.255 Wed Jun 30 21:49:08 1993" */
while (fread(&lease, sizeof(lease), 1, fp)) {
@@ -105,6 +105,6 @@ int main(int argc, char *argv[])
} else printf("%s", ctime(&expires));
}
fclose(fp);
-
+
return 0;
}
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 0802bb316..89287ca2d 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -1,8 +1,8 @@
-/*
+/*
* files.c -- DHCP server file manipulation *
* Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001
*/
-
+
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
@@ -16,7 +16,7 @@
#include "options.h"
#include "common.h"
-/*
+/*
* Domain names may have 254 chars, and string options can be 254
* chars long. However, 80 bytes will be enough for most, and won't
* hog up memory. If you have a special application, change it
@@ -31,7 +31,7 @@ static int read_ip(const char *line, void *arg)
int retval = 1;
if (!inet_aton(line, addr)) {
- if ((host = gethostbyname(line)))
+ if ((host = gethostbyname(line)))
addr->s_addr = *((unsigned long *) host->h_addr_list[0]);
else retval = 0;
}
@@ -42,10 +42,10 @@ static int read_ip(const char *line, void *arg)
static int read_str(const char *line, void *arg)
{
char **dest = arg;
-
+
if (*dest) free(*dest);
*dest = strdup(line);
-
+
return 1;
}
@@ -69,7 +69,7 @@ static int read_yn(const char *line, void *arg)
else if (!strcasecmp("no", line))
*dest = 0;
else retval = 0;
-
+
return retval;
}
@@ -89,11 +89,11 @@ static int read_opt(const char *const_line, void *arg)
/* Cheat, the only const line we'll actually get is "" */
line = (char *) const_line;
if (!(opt = strtok(line, " \t="))) return 0;
-
+
for (option = dhcp_options; option->code; option++)
if (!strcasecmp(option->name, opt))
break;
-
+
if (!option->code) return 0;
do {
@@ -134,17 +134,17 @@ static int read_opt(const char *const_line, void *arg)
retval = (endptr[0] == '\0');
break;
case OPTION_U32:
- *result_u32 = htonl(strtoul(val, &endptr, 0));
+ *result_u32 = htonl(strtoul(val, &endptr, 0));
retval = (endptr[0] == '\0');
break;
case OPTION_S32:
- *result_u32 = htonl(strtol(val, &endptr, 0));
+ *result_u32 = htonl(strtol(val, &endptr, 0));
retval = (endptr[0] == '\0');
break;
default:
break;
}
- if (retval)
+ if (retval)
attach_option(opt_list, option, opt, length);
} while (retval && option->flags & OPTION_LIST);
return retval;
@@ -193,7 +193,7 @@ int read_config(const char *file)
LOG(LOG_ERR, "unable to open config file: %s", file);
return 0;
}
-
+
while (fgets(buffer, READ_CONFIG_BUF_SIZE, in)) {
lm++;
if (strchr(buffer, '\n')) *(strchr(buffer, '\n')) = '\0';
@@ -203,14 +203,14 @@ int read_config(const char *file)
if (strchr(buffer, '#')) *(strchr(buffer, '#')) = '\0';
if (!(token = strtok(buffer, " \t"))) continue;
- if (!(line = strtok(NULL, ""))) continue;
-
+ if (!(line = strtok(NULL, ""))) continue;
+
/* eat leading whitespace */
line = line + strspn(line, " \t=");
/* eat trailing whitespace */
for (i = strlen(line); i > 0 && isspace(line[i - 1]); i--);
line[i] = '\0';
-
+
for (i = 0; keywords[i].keyword[0]; i++)
if (!strcasecmp(token, keywords[i].keyword))
if (!keywords[i].handler(line, keywords[i].var)) {
@@ -232,12 +232,12 @@ void write_leases(void)
char buf[255];
time_t curr = time(0);
unsigned long tmp_time;
-
+
if (!(fp = fopen(server_config.lease_file, "w"))) {
LOG(LOG_ERR, "Unable to open %s for writing", server_config.lease_file);
return;
}
-
+
for (i = 0; i < server_config.max_leases; i++) {
if (leases[i].yiaddr != 0) {
@@ -257,7 +257,7 @@ void write_leases(void)
}
}
fclose(fp);
-
+
if (server_config.notify_file) {
sprintf(buf, "%s %s", server_config.notify_file, server_config.lease_file);
system(buf);
@@ -270,12 +270,12 @@ void read_leases(const char *file)
FILE *fp;
unsigned int i = 0;
struct dhcpOfferedAddr lease;
-
+
if (!(fp = fopen(file, "r"))) {
LOG(LOG_ERR, "Unable to open %s for reading", file);
return;
}
-
+
while (i < server_config.max_leases && (fread(&lease, sizeof lease, 1, fp) == 1)) {
/* ADDME: is it a static lease */
if (lease.yiaddr >= server_config.start && lease.yiaddr <= server_config.end) {
@@ -284,7 +284,7 @@ void read_leases(const char *file)
if (!(add_lease(lease.chaddr, lease.yiaddr, lease.expires))) {
LOG(LOG_WARNING, "Too many leases while loading %s\n", file);
break;
- }
+ }
i++;
}
}
diff --git a/networking/udhcp/frontend.c b/networking/udhcp/frontend.c
index de5779508..fa77ab977 100644
--- a/networking/udhcp/frontend.c
+++ b/networking/udhcp/frontend.c
@@ -7,10 +7,10 @@ int main(int argc, char *argv[])
{
int ret = 0;
char *base = strrchr(argv[0], '/');
-
+
if (strstr(base ? (base + 1) : argv[0], "dhcpd"))
ret = udhcpd_main(argc, argv);
else ret = udhcpc_main(argc, argv);
-
+
return ret;
}
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c
index dce056654..d478880a3 100644
--- a/networking/udhcp/leases.c
+++ b/networking/udhcp/leases.c
@@ -1,5 +1,5 @@
-/*
- * leases.c -- tools to manage DHCP leases
+/*
+ * leases.c -- tools to manage DHCP leases
* Russ Dill <Russ.Dill@asu.edu> July 2001
*/
@@ -23,9 +23,9 @@ uint8_t blank_chaddr[] = {[0 ... 15] = 0};
void clear_lease(uint8_t *chaddr, uint32_t yiaddr)
{
unsigned int i, j;
-
+
for (j = 0; j < 16 && !chaddr[j]; j++);
-
+
for (i = 0; i < server_config.max_leases; i++)
if ((j != 16 && !memcmp(leases[i].chaddr, chaddr, 16)) ||
(yiaddr && leases[i].yiaddr == yiaddr)) {
@@ -38,18 +38,18 @@ void clear_lease(uint8_t *chaddr, uint32_t yiaddr)
struct dhcpOfferedAddr *add_lease(uint8_t *chaddr, uint32_t yiaddr, unsigned long lease)
{
struct dhcpOfferedAddr *oldest;
-
+
/* clean out any old ones */
clear_lease(chaddr, yiaddr);
-
+
oldest = oldest_expired_lease();
-
+
if (oldest) {
memcpy(oldest->chaddr, chaddr, 16);
oldest->yiaddr = yiaddr;
oldest->expires = time(0) + lease;
}
-
+
return oldest;
}
@@ -58,7 +58,7 @@ struct dhcpOfferedAddr *add_lease(uint8_t *chaddr, uint32_t yiaddr, unsigned lon
int lease_expired(struct dhcpOfferedAddr *lease)
{
return (lease->expires < (unsigned long) time(0));
-}
+}
/* Find the oldest expired lease, NULL if there are no expired leases */
@@ -68,14 +68,14 @@ struct dhcpOfferedAddr *oldest_expired_lease(void)
unsigned long oldest_lease = time(0);
unsigned int i;
-
+
for (i = 0; i < server_config.max_leases; i++)
if (oldest_lease > leases[i].expires) {
oldest_lease = leases[i].expires;
oldest = &(leases[i]);
}
return oldest;
-
+
}
@@ -86,7 +86,7 @@ struct dhcpOfferedAddr *find_lease_by_chaddr(uint8_t *chaddr)
for (i = 0; i < server_config.max_leases; i++)
if (!memcmp(leases[i].chaddr, chaddr, 16)) return &(leases[i]);
-
+
return NULL;
}
@@ -98,7 +98,7 @@ struct dhcpOfferedAddr *find_lease_by_yiaddr(uint32_t yiaddr)
for (i = 0; i < server_config.max_leases; i++)
if (leases[i].yiaddr == yiaddr) return &(leases[i]);
-
+
return NULL;
}
@@ -120,10 +120,10 @@ static int check_ip(uint32_t addr)
/* find an assignable address, it check_expired is true, we check all the expired leases as well.
* Maybe this should try expired leases by age... */
-uint32_t find_address(int check_expired)
+uint32_t find_address(int check_expired)
{
uint32_t addr, ret;
- struct dhcpOfferedAddr *lease = NULL;
+ struct dhcpOfferedAddr *lease = NULL;
addr = ntohl(server_config.start); /* addr is in host order here */
for (;addr <= ntohl(server_config.end); addr++) {
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index 1bdf25708..d75bc5aff 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -1,8 +1,8 @@
-/*
- * options.c -- DHCP server option packet tools
+/*
+ * options.c -- DHCP server option packet tools
* Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001
*/
-
+
#include <stdlib.h>
#include <string.h>
@@ -64,7 +64,7 @@ uint8_t *get_option(struct dhcpMessage *packet, int code)
int i, length;
uint8_t *optionptr;
int over = 0, done = 0, curr = OPTION_FIELD;
-
+
optionptr = packet->options;
i = 0;
length = 308;
@@ -79,7 +79,7 @@ uint8_t *get_option(struct dhcpMessage *packet, int code)
return NULL;
}
return optionptr + i + 2;
- }
+ }
switch (optionptr[i + OPT_CODE]) {
case DHCP_PADDING:
i++;
@@ -114,10 +114,10 @@ uint8_t *get_option(struct dhcpMessage *packet, int code)
/* return the position of the 'end' option (no bounds checking) */
-int end_option(uint8_t *optionptr)
+int end_option(uint8_t *optionptr)
{
int i = 0;
-
+
while (optionptr[i] != DHCP_END) {
if (optionptr[i] == DHCP_PADDING) i++;
else i += optionptr[i + OPT_LEN] + 2;
@@ -131,7 +131,7 @@ int end_option(uint8_t *optionptr)
int add_option_string(uint8_t *optionptr, uint8_t *string)
{
int end = end_option(optionptr);
-
+
/* end position + string length + option code/length + end option */
if (end + string[OPT_LEN] + 2 + 1 >= 308) {
LOG(LOG_ERR, "Option 0x%02x did not fit into the packet!", string[OPT_CODE]);
@@ -162,12 +162,12 @@ int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data)
if (dhcp_options[i].code == code) {
length = option_lengths[dhcp_options[i].flags & TYPE_MASK];
}
-
+
if (!length) {
DEBUG(LOG_ERR, "Could not add option 0x%02x", code);
return 0;
}
-
+
option[OPT_CODE] = code;
option[OPT_LEN] = length;
@@ -202,7 +202,7 @@ void attach_option(struct option_set **opt_list, struct dhcp_option *option, cha
DEBUG(LOG_INFO, "Attaching option %s to existing member of list", option->name);
if (option->flags & OPTION_LIST) {
if (existing->data[OPT_LEN] + length <= 255) {
- existing->data = realloc(existing->data,
+ existing->data = realloc(existing->data,
existing->data[OPT_LEN] + length + 2);
memcpy(existing->data + existing->data[OPT_LEN] + 2, buffer, length);
existing->data[OPT_LEN] += length;
@@ -210,19 +210,19 @@ void attach_option(struct option_set **opt_list, struct dhcp_option *option, cha
} /* else, ignore the new data */
} else {
DEBUG(LOG_INFO, "Attaching option %s to list", option->name);
-
+
/* make a new option */
new = xmalloc(sizeof(struct option_set));
new->data = xmalloc(length + 2);
new->data[OPT_CODE] = option->code;
new->data[OPT_LEN] = length;
memcpy(new->data + 2, buffer, length);
-
+
curr = opt_list;
while (*curr && (*curr)->data[OPT_CODE] < option->code)
curr = &(*curr)->next;
-
+
new->next = *curr;
- *curr = new;
+ *curr = new;
}
}
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c
index a3c7ae153..7cbd83a35 100644
--- a/networking/udhcp/packet.c
+++ b/networking/udhcp/packet.c
@@ -66,7 +66,7 @@ int get_packet(struct dhcpMessage *packet, int fd)
return -2;
}
DEBUG(LOG_INFO, "Received a packet");
-
+
if (packet->op == BOOTREQUEST && (vendor = get_option(packet, DHCP_VENDOR))) {
for (i = 0; broken_vendors[i][0]; i++) {
if (vendor[OPT_LEN - 2] == (uint8_t) strlen(broken_vendors[i]) &&
@@ -77,7 +77,7 @@ int get_packet(struct dhcpMessage *packet, int fd)
}
}
}
-
+
return bytes;
}
@@ -126,10 +126,10 @@ int raw_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port,
DEBUG(LOG_ERR, "socket call failed: %m");
return -1;
}
-
+
memset(&dest, 0, sizeof(dest));
memset(&packet, 0, sizeof(packet));
-
+
dest.sll_family = AF_PACKET;
dest.sll_protocol = htons(ETH_P_IP);
dest.sll_ifindex = ifindex;
@@ -150,7 +150,7 @@ int raw_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port,
packet.ip.tot_len = packet.udp.len;
memcpy(&(packet.data), payload, sizeof(struct dhcpMessage));
packet.udp.check = checksum(&packet, sizeof(struct udp_dhcp_packet));
-
+
packet.ip.tot_len = htons(sizeof(struct udp_dhcp_packet));
packet.ip.ihl = sizeof(packet.ip) >> 2;
packet.ip.version = IPVERSION;
@@ -173,10 +173,10 @@ int kernel_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_po
int n = 1;
int fd, result;
struct sockaddr_in client;
-
+
if ((fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0)
return -1;
-
+
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *) &n, sizeof(n)) == -1)
return -1;
@@ -191,7 +191,7 @@ int kernel_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_po
memset(&client, 0, sizeof(client));
client.sin_family = AF_INET;
client.sin_port = htons(dest_port);
- client.sin_addr.s_addr = dest_ip;
+ client.sin_addr.s_addr = dest_ip;
if (connect(fd, (struct sockaddr *)&client, sizeof(struct sockaddr)) == -1)
return -1;
@@ -199,4 +199,4 @@ int kernel_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_po
result = write(fd, payload, sizeof(struct dhcpMessage));
close(fd);
return result;
-}
+}
diff --git a/networking/udhcp/packet.h b/networking/udhcp/packet.h
index 22c4d09c3..f5859e824 100644
--- a/networking/udhcp/packet.h
+++ b/networking/udhcp/packet.h
@@ -20,7 +20,7 @@ struct dhcpMessage {
uint8_t sname[64];
uint8_t file[128];
uint32_t cookie;
- uint8_t options[308]; /* 312 - cookie */
+ uint8_t options[308]; /* 312 - cookie */
};
struct udp_dhcp_packet {
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index b7d78624c..cae4db7af 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -1,6 +1,6 @@
/* script.c
*
- * Functions to call the DHCP client notification scripts
+ * Functions to call the DHCP client notification scripts
*
* Russ Dill <Russ.Dill@asu.edu> July 2001
*
@@ -157,7 +157,7 @@ static char **fill_envp(struct dhcpMessage *packet)
if (!(over & FILE_FIELD) && packet->file[0]) num_options++;
if (!(over & SNAME_FIELD) && packet->sname[0]) num_options++;
}
-
+
envp = xcalloc(sizeof(char *), num_options + 5);
j = 0;
asprintf(&envp[j++], "interface=%s", client_config.interface);
@@ -220,13 +220,13 @@ void run_script(struct dhcpMessage *packet, const char *name)
return;
} else if (pid == 0) {
envp = fill_envp(packet);
-
+
/* close fd's? */
-
+
/* exec script */
execle(client_config.script, client_config.script,
name, NULL, envp);
LOG(LOG_ERR, "script %s failed: %m", client_config.script);
exit(1);
- }
+ }
}
diff --git a/networking/udhcp/serverpacket.c b/networking/udhcp/serverpacket.c
index d39e6ba17..937436a11 100644
--- a/networking/udhcp/serverpacket.c
+++ b/networking/udhcp/serverpacket.c
@@ -45,7 +45,7 @@ static int send_packet_to_client(struct dhcpMessage *payload, int force_broadcas
{
uint8_t *chaddr;
uint32_t ciaddr;
-
+
if (force_broadcast) {
DEBUG(LOG_INFO, "broadcasting packet to client (NAK)");
ciaddr = INADDR_BROADCAST;
@@ -63,7 +63,7 @@ static int send_packet_to_client(struct dhcpMessage *payload, int force_broadcas
ciaddr = payload->yiaddr;
chaddr = payload->chaddr;
}
- return raw_packet(payload, server_config.server, SERVER_PORT,
+ return raw_packet(payload, server_config.server, SERVER_PORT,
ciaddr, CLIENT_PORT, chaddr, server_config.ifindex);
}
@@ -101,7 +101,7 @@ static void add_bootp_options(struct dhcpMessage *packet)
if (server_config.boot_file)
strncpy(packet->file, server_config.boot_file, sizeof(packet->file) - 1);
}
-
+
/* send a DHCP OFFER to a DHCP DISCOVER */
int sendOffer(struct dhcpMessage *oldpacket)
@@ -114,14 +114,14 @@ int sendOffer(struct dhcpMessage *oldpacket)
struct in_addr addr;
init_packet(&packet, oldpacket, DHCPOFFER);
-
+
/* ADDME: if static, short circuit */
/* the client is in our lease/offered table */
if ((lease = find_lease_by_chaddr(oldpacket->chaddr))) {
- if (!lease_expired(lease))
+ if (!lease_expired(lease))
lease_time_align = lease->expires - time(0);
packet.yiaddr = lease->yiaddr;
-
+
/* Or the client has a requested ip */
} else if ((req = get_option(oldpacket, DHCP_REQUESTED_IP)) &&
@@ -131,10 +131,10 @@ int sendOffer(struct dhcpMessage *oldpacket)
/* and the ip is in the lease range */
ntohl(req_align) >= ntohl(server_config.start) &&
ntohl(req_align) <= ntohl(server_config.end) &&
-
+
/* and its not already taken/offered */ /* ADDME: check that its not a static lease */
((!(lease = find_lease_by_yiaddr(req_align)) ||
-
+
/* or its taken, but expired */ /* ADDME: or maybe in here */
lease_expired(lease)))) {
packet.yiaddr = req_align; /* FIXME: oh my, is there a host using this IP? */
@@ -142,32 +142,32 @@ int sendOffer(struct dhcpMessage *oldpacket)
/* otherwise, find a free IP */ /*ADDME: is it a static lease? */
} else {
packet.yiaddr = find_address(0);
-
+
/* try for an expired lease */
if (!packet.yiaddr) packet.yiaddr = find_address(1);
}
-
+
if(!packet.yiaddr) {
LOG(LOG_WARNING, "no IP addresses to give -- OFFER abandoned");
return -1;
}
-
+
if (!add_lease(packet.chaddr, packet.yiaddr, server_config.offer_time)) {
LOG(LOG_WARNING, "lease pool is full -- OFFER abandoned");
return -1;
- }
+ }
if ((lease_time = get_option(oldpacket, DHCP_LEASE_TIME))) {
memcpy(&lease_time_align, lease_time, 4);
lease_time_align = ntohl(lease_time_align);
- if (lease_time_align > server_config.lease)
+ if (lease_time_align > server_config.lease)
lease_time_align = server_config.lease;
}
/* Make sure we aren't just using the lease time from the previous offer */
- if (lease_time_align < server_config.min_lease)
+ if (lease_time_align < server_config.min_lease)
lease_time_align = server_config.lease;
- /* ADDME: end of short circuit */
+ /* ADDME: end of short circuit */
add_simple_option(packet.options, DHCP_LEASE_TIME, htonl(lease_time_align));
curr = server_config.options;
@@ -178,7 +178,7 @@ int sendOffer(struct dhcpMessage *oldpacket)
}
add_bootp_options(&packet);
-
+
addr.s_addr = packet.yiaddr;
LOG(LOG_INFO, "sending OFFER of %s", inet_ntoa(addr));
return send_packet(&packet, 0);
@@ -190,7 +190,7 @@ int sendNAK(struct dhcpMessage *oldpacket)
struct dhcpMessage packet;
init_packet(&packet, oldpacket, DHCPNAK);
-
+
DEBUG(LOG_INFO, "sending NAK");
return send_packet(&packet, 1);
}
@@ -206,18 +206,18 @@ int sendACK(struct dhcpMessage *oldpacket, uint32_t yiaddr)
init_packet(&packet, oldpacket, DHCPACK);
packet.yiaddr = yiaddr;
-
+
if ((lease_time = get_option(oldpacket, DHCP_LEASE_TIME))) {
memcpy(&lease_time_align, lease_time, 4);
lease_time_align = ntohl(lease_time_align);
- if (lease_time_align > server_config.lease)
+ if (lease_time_align > server_config.lease)
lease_time_align = server_config.lease;
- else if (lease_time_align < server_config.min_lease)
+ else if (lease_time_align < server_config.min_lease)
lease_time_align = server_config.lease;
}
-
+
add_simple_option(packet.options, DHCP_LEASE_TIME, htonl(lease_time_align));
-
+
curr = server_config.options;
while (curr) {
if (curr->data[OPT_CODE] != DHCP_LEASE_TIME)
@@ -230,7 +230,7 @@ int sendACK(struct dhcpMessage *oldpacket, uint32_t yiaddr)
addr.s_addr = packet.yiaddr;
LOG(LOG_INFO, "sending ACK to %s", inet_ntoa(addr));
- if (send_packet(&packet, 0) < 0)
+ if (send_packet(&packet, 0) < 0)
return -1;
add_lease(packet.chaddr, packet.yiaddr, lease_time_align);
@@ -245,7 +245,7 @@ int send_inform(struct dhcpMessage *oldpacket)
struct option_set *curr;
init_packet(&packet, oldpacket, DHCPACK);
-
+
curr = server_config.options;
while (curr) {
if (curr->data[OPT_CODE] != DHCP_LEASE_TIME)
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index 582f0fce5..7b057523a 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -55,7 +55,7 @@ int read_interface(char *interface, int *ifindex, uint32_t *addr, uint8_t *arp)
ifr.ifr_addr.sa_family = AF_INET;
strcpy(ifr.ifr_name, interface);
- if (addr) {
+ if (addr) {
if (ioctl(fd, SIOCGIFADDR, &ifr) == 0) {
our_ip = (struct sockaddr_in *) &ifr.ifr_addr;
*addr = our_ip->sin_addr.s_addr;
@@ -65,7 +65,7 @@ int read_interface(char *interface, int *ifindex, uint32_t *addr, uint8_t *arp)
return -1;
}
}
-
+
if (ioctl(fd, SIOCGIFINDEX, &ifr) == 0) {
DEBUG(LOG_INFO, "adapter index %d", ifr.ifr_ifindex);
*ifindex = ifr.ifr_ifindex;
@@ -102,7 +102,7 @@ int listen_socket(uint32_t ip, int port, char *inf)
DEBUG(LOG_ERR, "socket call failed: %m");
return -1;
}
-
+
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
@@ -127,6 +127,6 @@ int listen_socket(uint32_t ip, int port, char *inf)
close(fd);
return -1;
}
-
+
return fd;
}
diff --git a/networking/vconfig.c b/networking/vconfig.c
index 0bb33084a..bbd29873c 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -63,7 +63,7 @@ struct vlan_ioctl_args {
unsigned int flag; /* Matches vlan_dev_info flags */
} u;
- short vlan_qos;
+ short vlan_qos;
};
#define VLAN_GROUP_ARRAY_LEN 4096
@@ -110,7 +110,7 @@ static const char name_types[] = {
'_', 'P', 'L', 'U', 'S', '_', 'V', 'I', 'D',
0,
VLAN_NAME_TYPE_PLUS_VID_NO_PAD, 22,
- 'V', 'L', 'A', 'N',
+ 'V', 'L', 'A', 'N',
'_', 'P', 'L', 'U', 'S', '_', 'V', 'I', 'D',
'_', 'N', 'O', '_', 'P', 'A', 'D', 0,
VLAN_NAME_TYPE_RAW_PLUS_VID, 15,
diff --git a/networking/wget.c b/networking/wget.c
index cb0790ea7..619c138ba 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -55,7 +55,7 @@ static volatile unsigned long statbytes = 0; /* Number of bytes transferred so f
/* For progressmeter() -- number of seconds before xfer considered "stalled" */
static const int STALLTIME = 5;
#endif
-
+
static void close_and_delete_outfile(FILE* output, char *fname_out, int do_continue)
{
if (output != stdout && do_continue==0) {
@@ -236,18 +236,18 @@ int wget_main(int argc, char **argv)
use_proxy = 0;
}
}
-
+
/* Guess an output filename */
if (!fname_out) {
- fname_out =
+ fname_out =
#ifdef CONFIG_FEATURE_WGET_STATUSBAR
- curfile =
+ curfile =
#endif
bb_get_last_path_component(target.path);
if (fname_out==NULL || strlen(fname_out)<1) {
- fname_out =
+ fname_out =
#ifdef CONFIG_FEATURE_WGET_STATUSBAR
- curfile =
+ curfile =
#endif
"index.html";
}
@@ -309,7 +309,7 @@ int wget_main(int argc, char **argv)
*/
if (sfp) fclose(sfp);
sfp = open_socket(&s_in);
-
+
/*
* Send HTTP request.
*/
@@ -351,7 +351,7 @@ int wget_main(int argc, char **argv)
read_response:
if (fgets(buf, sizeof(buf), sfp) == NULL)
close_delete_and_die("no response from server");
-
+
for (s = buf ; *s != '\0' && !isspace(*s) ; ++s)
;
for ( ; isspace(*s) ; ++s)
@@ -379,7 +379,7 @@ read_response:
chomp(buf);
close_delete_and_die("server returned error %d: %s", atoi(s), buf);
}
-
+
/*
* Retrieve HTTP headers.
*/
@@ -416,7 +416,7 @@ read_response:
}
}
} while(status >= 300);
-
+
dfp = sfp;
}
else
@@ -431,7 +431,7 @@ read_response:
if (ftpcmd(NULL, NULL, sfp, buf) != 220)
close_delete_and_die("%s", buf+4);
- /*
+ /*
* Splitting username:password pair,
* trying to log in
*/
@@ -448,10 +448,10 @@ read_response:
default:
close_delete_and_die("ftp login: %s", buf+4);
}
-
+
ftpcmd("CDUP", NULL, sfp, buf);
ftpcmd("TYPE I", NULL, sfp, buf);
-
+
/*
* Querying file size
*/
@@ -463,7 +463,7 @@ read_response:
filesize = value;
got_clen = 1;
}
-
+
/*
* Entering passive mode
*/
@@ -486,7 +486,7 @@ read_response:
} else
filesize -= beg_range;
}
-
+
if (ftpcmd("RETR /", target.path, sfp, buf) > 150)
close_delete_and_die("RETR: %s", buf+4);
@@ -661,27 +661,27 @@ char *gethdr(char *buf, size_t bufsiz, FILE *fp, int *istrunc)
static int ftpcmd(char *s1, char *s2, FILE *fp, char *buf)
{
char *p;
-
+
if (s1) {
if (!s2) s2="";
fprintf(fp, "%s%s\r\n", s1, s2);
fflush(fp);
}
-
+
do {
p = fgets(buf, 510, fp);
if (!p)
bb_perror_msg_and_die("fgets()");
} while (! isdigit(buf[0]) || buf[3] != ' ');
-
+
return atoi(buf);
}
#ifdef CONFIG_FEATURE_WGET_STATUSBAR
-/* Stuff below is from BSD rcp util.c, as added to openshh.
+/* Stuff below is from BSD rcp util.c, as added to openshh.
* Original copyright notice is retained at the end of this file.
- *
- */
+ *
+ */
static int
@@ -813,7 +813,7 @@ progressmeter(int flag)
/* Original copyright notice which applies to the CONFIG_FEATURE_WGET_STATUSBAR stuff,
* much of which was blatently stolen from openssh. */
-
+
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -827,8 +827,8 @@ progressmeter(int flag)
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
+ * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
+ * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
*
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
@@ -846,7 +846,7 @@ progressmeter(int flag)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.70 2004/03/06 22:11:44 andersen Exp $
+ * $Id: wget.c,v 1.71 2004/03/15 08:28:53 andersen Exp $
*/
diff --git a/patches/eject.diff b/patches/eject.diff
index 3efd449c0..fcc234d02 100644
--- a/patches/eject.diff
+++ b/patches/eject.diff
@@ -6,15 +6,15 @@ diff -u -r1.40 AUTHORS
--- a/AUTHORS 9 Oct 2003 21:19:21 -0000 1.40
+++ b/AUTHORS 5 Mar 2004 07:23:17 -0000
@@ -8,6 +8,9 @@
-
+
-----------
-
+
+Peter Willis <psyphreak@phreaker.net>
+ eject
+
Emanuele Aina <emanuele.aina@tiscali.it>
run-parts
-
+
Index: coreutils/Config.in
===================================================================
RCS file: /var/cvs/busybox/coreutils/Config.in,v
@@ -25,7 +25,7 @@ diff -u -r1.23 Config.in
@@ -164,6 +164,13 @@
a command; without options it displays the current
environment.
-
+
+config CONFIG_EJECT
+ bool "eject"
+ default n
@@ -151,7 +151,7 @@ diff -u -r1.191 usage.h
@@ -537,6 +537,13 @@
"\t-, -i\tstart with an empty environment\n" \
"\t-u\tremove variable from the environment\n"
-
+
+#define eject_trivial_usage \
+ "[-t] [FILE]"
+#define eject_full_usage \
diff --git a/patches/tftp_timeout_multicast.diff b/patches/tftp_timeout_multicast.diff
index a76a18c61..0f09d4a04 100644
--- a/patches/tftp_timeout_multicast.diff
+++ b/patches/tftp_timeout_multicast.diff
@@ -6,15 +6,15 @@ diff -u -r1.40 AUTHORS
--- a/AUTHORS 9 Oct 2003 21:19:21 -0000 1.40
+++ b/AUTHORS 5 Mar 2004 15:45:47 -0000
@@ -92,6 +92,9 @@
- Original author of BusyBox in 1995, 1996. Some of his code can
+ Original author of BusyBox in 1995, 1996. Some of his code can
still be found hiding here and there...
-
+
+John Powers <jpp@ti.com>
+ Added multicast option (rfc2090) and timeout option (rfc2349) to tftp.
+
Tim Riker <Tim@Rikers.org>
bug fixes, member of fan club
-
+
Index: include/usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
@@ -41,7 +41,7 @@ diff -u -r1.191 usage.h
+#else
+ #define USAGE_TFTP_DEBUG(a)
+#endif
-
+
#define tftp_trivial_usage \
"[OPTION]... HOST [PORT]"
@@ -2508,6 +2523,16 @@
@@ -71,7 +71,7 @@ diff -u -r1.27 Config.in
@@ -522,6 +522,13 @@
Add support for the GET command within the TFTP client. This allows
a client to retrieve a file from a TFTP server.
-
+
+config CONFIG_FEATURE_TFTP_MULTICAST
+ bool " Enable \"multicast\" option"
+ default n
@@ -84,7 +84,7 @@ diff -u -r1.27 Config.in
default y
@@ -531,12 +538,19 @@
a client to transfer a file to a TFTP server.
-
+
config CONFIG_FEATURE_TFTP_BLOCKSIZE
- bool " Enable \"blocksize\" command"
+ bool " Enable \"blksize\" option"
@@ -92,7 +92,7 @@ diff -u -r1.27 Config.in
depends on CONFIG_TFTP
help
Allow the client to specify the desired block size for transfers.
-
+
+config CONFIG_FEATURE_TFTP_TIMEOUT
+ bool " Enable \"timeout\" option"
+ default n
@@ -138,15 +138,15 @@ diff -u -r1.25 tftp.c
/* */
/* Parts of the code based on: */
@@ -46,8 +61,20 @@
-
+
#include "busybox.h"
-
+
+#if defined(CONFIG_FEATURE_TFTP_BLOCKSIZE) || defined(CONFIG_FEATURE_TFTP_MULTICAST) || defined(CONFIG_FEATURE_TFTP_TIMEOUT)
+ #define TFTP_OPTIONS
+#endif
+
//#define CONFIG_FEATURE_TFTP_DEBUG
-
+
+#ifdef CONFIG_FEATURE_TFTP_DEBUG
+ static void printtime(void);
+ #define dprintf(fmt...) if (debug) {printtime(); printf(fmt);}
@@ -157,7 +157,7 @@ diff -u -r1.25 tftp.c
+
#define TFTP_BLOCKSIZE_DEFAULT 512 /* according to RFC 1350, don't change */
#define TFTP_TIMEOUT 5 /* seconds */
-
+
@@ -68,12 +95,24 @@
"Illegal TFTP operation",
"Unknown transfer ID",
@@ -168,10 +168,10 @@ diff -u -r1.25 tftp.c
+ "Unsupported option",
+#endif
};
-
+
const int tftp_cmd_get = 1;
const int tftp_cmd_put = 2;
-
+
+
+struct tftp_option {
+ int multicast;
@@ -182,12 +182,12 @@ diff -u -r1.25 tftp.c
+
+
#ifdef CONFIG_FEATURE_TFTP_BLOCKSIZE
-
- static int tftp_blocksize_check(int blocksize, int bufsize)
+
+ static int tftp_blocksize_check(int blocksize, int bufsize)
@@ -93,16 +132,158 @@
return blocksize;
}
-
+
+#endif
+
+#ifdef CONFIG_FEATURE_TFTP_TIMEOUT
@@ -332,15 +332,15 @@ diff -u -r1.25 tftp.c
+
+#ifdef TFTP_OPTIONS
+
- static char *tftp_option_get(char *buf, int len, char *option)
+ static char *tftp_option_get(char *buf, int len, char *option)
{
- int opt_val = 0;
+ int opt_val = 0;
int opt_found = 0;
int k;
--
+-
- while (len > 0) {
-
+
+ while (len > 0) {
/* Make sure the options are terminated correctly */
-
@@ -351,7 +351,7 @@ diff -u -r1.25 tftp.c
if (strcasecmp(buf, option) == 0) {
opt_found = 1;
}
-- }
+- }
- else {
- if (opt_found) {
+ } else {
@@ -361,7 +361,7 @@ diff -u -r1.25 tftp.c
}
@@ -138,7 +318,8 @@
#endif
-
+
static inline int tftp(const int cmd, const struct hostent *host,
- const char *remotefile, int localfd, const unsigned short port, int tftp_bufsize)
+ const char *remotefile, int localfd, const unsigned short port,
@@ -376,7 +376,7 @@ diff -u -r1.25 tftp.c
- int timeout = bb_tftp_num_retries;
+ int retry = bb_tftp_num_retries;
unsigned short block_nr = 1;
-
+
-#ifdef CONFIG_FEATURE_TFTP_BLOCKSIZE
- int want_option_ack = 0;
+#ifdef CONFIG_FEATURE_TFTP_MULTICAST
@@ -393,21 +393,21 @@ diff -u -r1.25 tftp.c
+ #define master_client 1
+ #define ack_oack 0
#endif
-
+
/* Can't use RESERVE_CONFIG_BUFFER here since the allocation
* size varies meaning BUFFERS_GO_ON_STACK would fail */
- char *buf=xmalloc(tftp_bufsize + 4);
+ char *buf=xmalloc(option->blksize + 4);
-
+
- tftp_bufsize += 4;
+ int tftp_bufsize = option->blksize + 4;
-
+
if ((socketfd = socket(PF_INET, SOCK_DGRAM, 0)) < 0) {
bb_perror_msg("socket");
@@ -183,15 +375,21 @@
memcpy(&sa.sin_addr, (struct in_addr *) host->h_addr,
sizeof(sa.sin_addr));
-
+
- /* build opcode */
-
- if (cmd_get) {
@@ -423,48 +423,48 @@ diff -u -r1.25 tftp.c
+ memset(mcblockmap, 0, bmsize+1);
}
+#endif
-
+
- if (cmd_put) {
- opcode = TFTP_WRQ;
- }
+ /* build opcode */
+
+ opcode = cmd_get ? TFTP_RRQ : TFTP_WRQ;
-
+
while (1) {
-
+
@@ -203,7 +401,7 @@
-
+
cp += 2;
-
+
- /* add filename and mode */
+ /* First packet of file transfer includes file name, mode, and options */
-
+
if ((cmd_get && (opcode == TFTP_RRQ)) ||
(cmd_put && (opcode == TFTP_WRQ))) {
@@ -223,7 +421,7 @@
}
-
+
if (too_long || ((&buf[tftp_bufsize - 1] - cp) < 6)) {
- bb_error_msg("too long remote-filename");
+ bb_error_msg("too long: remote filename");
break;
}
-
+
@@ -238,8 +436,8 @@
-
+
if (len != TFTP_BLOCKSIZE_DEFAULT) {
-
+
- if ((&buf[tftp_bufsize - 1] - cp) < 15) {
- bb_error_msg("too long remote-filename");
+ if ((&buf[tftp_bufsize - 1] - cp) < 15) {
+ bb_error_msg("buffer too small for blksize option");
break;
}
-
+
@@ -249,16 +447,65 @@
cp += 8;
-
+
cp += snprintf(cp, 6, "%d", len) + 1;
+ }
+#endif
@@ -480,7 +480,7 @@ diff -u -r1.25 tftp.c
+ }
+
+ /* add "multicast" option */
-
+
- want_option_ack = 1;
+ memcpy(cp, "multicast\0", 11);
+ cp += 11;
@@ -509,9 +509,9 @@ diff -u -r1.25 tftp.c
+#endif
+
}
-
+
/* add ack and data */
-
+
- if ((cmd_get && (opcode == TFTP_ACK)) ||
- (cmd_put && (opcode == TFTP_DATA))) {
+#ifdef CONFIG_FEATURE_TFTP_MULTICAST
@@ -528,33 +528,33 @@ diff -u -r1.25 tftp.c
+#endif
+ else if ((cmd_get && opcode == TFTP_ACK) ||
+ (cmd_put && opcode == TFTP_DATA)) {
-
+
*((unsigned short *) cp) = htons(block_nr);
-
+
@@ -275,7 +522,7 @@
}
-
+
if (len != (tftp_bufsize - 4)) {
- finished++;
+ finished = 1;
}
-
+
cp += len;
@@ -283,82 +530,119 @@
}
-
-
+
+
- /* send packet */
+ /* send packet and receive reply */
-
-
+
+
- timeout = bb_tftp_num_retries; /* re-initialize */
+ retry = bb_tftp_num_retries; /* re-initialize */
do {
-
+ int selectrc;
len = cp - buf;
-
+
-#ifdef CONFIG_FEATURE_TFTP_DEBUG
- fprintf(stderr, "sending %u bytes\n", len);
- for (cp = buf; cp < &buf[len]; cp++)
@@ -570,7 +570,7 @@ diff -u -r1.25 tftp.c
-
+ /* send packet */
+ if ((len > 2) && (! option->multicast || master_client || ack_oack)) {
-
+
- if (finished && (opcode == TFTP_ACK)) {
- break;
+#ifdef CONFIG_FEATURE_TFTP_DEBUG
@@ -593,17 +593,17 @@ diff -u -r1.25 tftp.c
+ break;
+ }
}
-
+
- /* receive packet */
+ /* receive reply packet */
-
+
memset(&from, 0, sizeof(from));
fromlen = sizeof(from);
-
+
- tv.tv_sec = TFTP_TIMEOUT;
+ tv.tv_sec = option->client_timeout;
tv.tv_usec = 0;
-
+
FD_ZERO(&rfds);
FD_SET(socketfd, &rfds);
+ dprintf("set to receive from socketfd (%d)\n", socketfd);
@@ -613,7 +613,7 @@ diff -u -r1.25 tftp.c
+ dprintf("set to receive from mcfd (%d)\n", mcfd);
+ }
+#endif
-
+
- switch (select(FD_SETSIZE, &rfds, NULL, NULL, &tv)) {
- case 1:
- len = recvfrom(socketfd, buf, tftp_bufsize, 0,
@@ -646,7 +646,7 @@ diff -u -r1.25 tftp.c
+ }
+ }
}
-
+
- timeout = 0;
-
- if (sa.sin_port == port) {
@@ -677,13 +677,13 @@ diff -u -r1.25 tftp.c
- /* discard the packet - treat as timeout */
- timeout = bb_tftp_num_retries;
+#endif
-
+
- case 0:
+ } else if (selectrc == 0) {
+ /* Time out */
+ dprintf("timeout\n");
bb_error_msg("timeout");
-
+
- timeout--;
- if (timeout == 0) {
+ retry--;
@@ -700,59 +700,59 @@ diff -u -r1.25 tftp.c
bb_perror_msg("select");
len = -1;
}
-
+
- } while (timeout && (len >= 0));
+ } while (retry && len >= 0);
-
+
if ((finished) || (len < 0)) {
break;
@@ -370,9 +654,8 @@
opcode = ntohs(*((unsigned short *) buf));
tmp = ntohs(*((unsigned short *) &buf[2]));
-
+
-#ifdef CONFIG_FEATURE_TFTP_DEBUG
- fprintf(stderr, "received %d bytes: %04x %04x\n", len, opcode, tmp);
-#endif
+ dprintf("received %d bytes: %04x %04x\n", len, opcode, tmp);
+ dprintf("master_client=%d\n", master_client);
-
+
if (opcode == TFTP_ERROR) {
char *msg = NULL;
@@ -393,55 +676,116 @@
break;
}
-
+
-#ifdef CONFIG_FEATURE_TFTP_BLOCKSIZE
- if (want_option_ack) {
+#ifdef TFTP_OPTIONS
-
+
- want_option_ack = 0;
+ if (opcode == TFTP_OACK) {
-
+
- if (opcode == TFTP_OACK) {
+ /* server seems to support options */
-
+
- /* server seems to support options */
+ char *res;
-+
++
+ block_nr = 0; /* acknowledge option packet with block number 0 */
+ opcode = cmd_put ? TFTP_DATA : TFTP_ACK;
-
+
- char *res;
-
-- res = tftp_option_get(&buf[2], len-2,
+
+- res = tftp_option_get(&buf[2], len-2,
- "blksize");
+#ifdef CONFIG_FEATURE_TFTP_BLOCKSIZE
+ res = tftp_option_get(&buf[2], len-2, "blksize");
-
+
- if (res) {
- int blksize = atoi(res);
--
+-
- if (tftp_blocksize_check(blksize,
- tftp_bufsize - 4)) {
+ if (res) {
+ int blksize = atoi(res);
-
+
- if (cmd_put) {
- opcode = TFTP_DATA;
- }
@@ -782,10 +782,10 @@ diff -u -r1.25 tftp.c
- bb_error_msg("bad server option");
- break;
- }
-
+
- bb_error_msg("warning: blksize not supported by server"
- " - reverting to 512");
-
+
- tftp_bufsize = TFTP_BLOCKSIZE_DEFAULT + 4;
+#ifdef CONFIG_FEATURE_TFTP_MULTICAST
+ res = tftp_option_get(&buf[2], len-2, "multicast");
@@ -837,9 +837,9 @@ diff -u -r1.25 tftp.c
}
+ else
#endif
-
+
if (cmd_get && (opcode == TFTP_DATA)) {
-
+
+#ifdef CONFIG_FEATURE_TFTP_MULTICAST
+ if (option->multicast) {
+ int bn = tmp - 1;
@@ -867,35 +867,35 @@ diff -u -r1.25 tftp.c
+#endif
+
if (tmp == block_nr) {
-
+
len = write(localfd, &buf[4], len - 4);
@@ -452,15 +796,14 @@
}
-
+
if (len != (tftp_bufsize - 4)) {
- finished++;
+ finished = 1;
}
-
+
opcode = TFTP_ACK;
- continue;
}
}
-
+
- if (cmd_put && (opcode == TFTP_ACK)) {
+ else if (cmd_put && opcode == TFTP_ACK) {
-
+
if (tmp == (unsigned short)(block_nr - 1)) {
if (finished) {
@@ -468,15 +811,19 @@
}
-
+
opcode = TFTP_DATA;
- continue;
}
}
}
-
+
#ifdef CONFIG_FEATURE_CLEAN_UP
close(socketfd);
+ free(buf);
@@ -904,10 +904,10 @@ diff -u -r1.25 tftp.c
+ if (mcblockmap != NULL)
+ free(mcblockmap);
+#endif
-
+
- free(buf);
#endif
-
+
return finished ? EXIT_SUCCESS : EXIT_FAILURE;
@@ -487,13 +834,18 @@
struct hostent *host = NULL;
@@ -927,13 +927,13 @@ diff -u -r1.25 tftp.c
+ .client_timeout = TFTP_TIMEOUT,
+ .server_timeout = TFTP_TIMEOUT,
+ };
-
+
/* figure out what to pass to getopt */
-
+
@@ -515,13 +867,45 @@
- #define PUT
+ #define PUT
#endif
-
+
- while ((opt = getopt(argc, argv, BS GET PUT "l:r:")) != -1) {
+#ifdef CONFIG_FEATURE_TFTP_TIMEOUT
+#define TO "T:t:"
@@ -994,7 +994,7 @@ diff -u -r1.25 tftp.c
+ debug = 1;
+ break;
+#endif
- case 'l':
+ case 'l':
localfile = bb_xstrdup(optarg);
break;
case 'r':
@@ -1004,7 +1004,7 @@ diff -u -r1.25 tftp.c
+ bb_show_usage();
}
}
-
+
if ((cmd == 0) || (optind == argc)) {
bb_show_usage();
}
@@ -1018,7 +1018,7 @@ diff -u -r1.25 tftp.c
@@ -566,14 +966,12 @@
host = xgethostbyname(argv[optind]);
port = bb_lookup_port(argv[optind + 1], "udp", 69);
-
+
-#ifdef CONFIG_FEATURE_TFTP_DEBUG
- fprintf(stderr, "using server \"%s\", remotefile \"%s\", "
+ dprintf("using server \"%s\", remotefile \"%s\", "
@@ -1026,10 +1026,10 @@ diff -u -r1.25 tftp.c
inet_ntoa(*((struct in_addr *) host->h_addr)),
remotefile, localfile);
-#endif
-
+
- result = tftp(cmd, host, remotefile, fd, port, blocksize);
+ result = tftp(cmd, host, remotefile, fd, port, &option);
-
+
#ifdef CONFIG_FEATURE_CLEAN_UP
if (!(fd == fileno(stdout) || fd == fileno(stdin))) {
@@ -582,3 +980,18 @@
diff --git a/patches/udhcp_additional_items.diff b/patches/udhcp_additional_items.diff
index 262ccc266..933be2ad4 100644
--- a/patches/udhcp_additional_items.diff
+++ b/patches/udhcp_additional_items.diff
@@ -12,7 +12,7 @@ diff -u -r1.191 usage.h
+ "\t-R,\t--require=NAME\tAdd NAME to request\n" \
"\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \
"\t-v,\t--version\tDisplay version"
-
+
Index: networking/udhcp/README.udhcpc
===================================================================
RCS file: /var/cvs/busybox/networking/udhcp/README.udhcpc,v
@@ -29,12 +29,12 @@ diff -u -r1.3 README.udhcpc
/usr/share/udhcpc/default.script)
-v, --version Display version
@@ -101,6 +102,8 @@
-
+
additional options are easily added in options.c.
-
+
+By default, only a few basic items are requested. To request additional
+items use the -R option. Example: "-R rootpath"
-
+
note on udhcpc's random seed
---------------------------
Index: networking/udhcp/dhcpc.c
@@ -67,7 +67,7 @@ diff -u -r1.16 dhcpc.c
- c = getopt_long(argc, argv, "c:fbH:h:i:np:qr:s:v", arg_options, &option_index);
+ c = getopt_long(argc, argv, "c:fbH:h:i:np:qr:R:s:v", arg_options, &option_index);
if (c == -1) break;
-
+
switch (c) {
@@ -254,6 +256,11 @@
case 'r':
@@ -91,7 +91,7 @@ diff -u -r1.7 options.c
@@ -57,7 +57,19 @@
[OPTION_S32] = 4
};
-
+
-
+/* find and mark requested item as required */
+int require_option(char *name)
@@ -105,7 +105,7 @@ diff -u -r1.7 options.c
+ }
+ return 1;
+}
-+
++
/* get an option with bounds checking (warning, not aligned). */
uint8_t *get_option(struct dhcpMessage *packet, int code)
{
@@ -119,7 +119,7 @@ diff -u -r1.5 options.h
@@ -30,6 +30,7 @@
extern struct dhcp_option dhcp_options[];
extern int option_lengths[];
-
+
+int require_option(char *name);
uint8_t *get_option(struct dhcpMessage *packet, int code);
int end_option(uint8_t *optionptr);
diff --git a/patches/udhcp_config_paths.diff b/patches/udhcp_config_paths.diff
index 299a68a8e..1d3a6b4b0 100644
--- a/patches/udhcp_config_paths.diff
+++ b/patches/udhcp_config_paths.diff
@@ -13,7 +13,7 @@ diff -u -r1.191 usage.h
+ "\t-s,\t--script=file\tRun file at dhcp events (default: " \
+ CONFIG_UDHCPC_SCRIPT_PATH ")\n" \
"\t-v,\t--version\tDisplay version"
-
+
#define udhcpd_trivial_usage \
Index: networking/udhcp/AUTHORS
===================================================================
@@ -24,11 +24,11 @@ diff -u -r1.3 AUTHORS
+++ b/networking/udhcp/AUTHORS 5 Mar 2004 13:20:11 -0000
@@ -10,5 +10,5 @@
Moreton Bay (http://www.moretonbay.com/)
- Lineo (http://opensource.lineo.com)
Vladimir Oleynik <dzo@simtrea.ru> Size optimizations
+
-
+Tony J. White <tjw@tjw.org> additional busybox build options
-
+
Index: networking/udhcp/Config.in
===================================================================
RCS file: /var/cvs/busybox/networking/udhcp/Config.in,v
@@ -37,32 +37,32 @@ diff -u -r1.5 Config.in
--- a/networking/udhcp/Config.in 22 Oct 2003 09:58:38 -0000 1.5
+++ b/networking/udhcp/Config.in 5 Mar 2004 13:20:11 -0000
@@ -58,5 +58,62 @@
-
+
See http://udhcp.busybox.net for further details.
-
+
+menu "udhcpd Configuration Options"
+ depends on CONFIG_UDHCPD
-+
++
+config CONFIG_UDHCPD_CONF_PATH
+ string "Path to default udhcpd.conf"
-+ default "/etc/udhcpd.conf"
-+ depends on CONFIG_UDHCPD
++ default "/etc/udhcpd.conf"
++ depends on CONFIG_UDHCPD
+ help
+ The full path to udhcpd's default configuration file.
+ (default is: /etc/udhcpd.conf)
+
+config CONFIG_UDHCPD_LEASE_PATH
+ string "Path to default udhcpd.leases"
-+ default "/var/lib/misc/udhcpd.leases"
-+ depends on CONFIG_UDHCPD
++ default "/var/lib/misc/udhcpd.leases"
++ depends on CONFIG_UDHCPD
+ help
+ The full path to udhcpd's default leases file.
+ (default is: /var/lib/misc/udhcpd.leases)
+
+config CONFIG_UDHCPD_PID_PATH
+ string "Path to default udhcpd PID file"
-+ default "/var/run/udhcpd.pid"
-+ depends on CONFIG_UDHCPD
++ default "/var/run/udhcpd.pid"
++ depends on CONFIG_UDHCPD
+ help
+ The full path to udhcpd's default pid file.
+ (default is: /var/run/udhcpd.pid)
@@ -79,26 +79,26 @@ diff -u -r1.5 Config.in
+ The full path to udhcpc's default event script file.
+ (default is: /usr/share/udhcpc/default.script OR
+ /share/udhcpc/default.script if CONFIG_INSTALL_NO_USR is set)
-+
++
+ When udhcpc is started it executes this script to take care
+ of system tasks after it completes DHCP communication. Such
-+ tasks include putting network interfaces up or down, setting
++ tasks include putting network interfaces up or down, setting
+ DNS info, adding routing information, etc.
+
+if CONFIG_INSTALL_NO_USR
+config CONFIG_UDHCPC_SCRIPT_PATH
-+ default "/share/udhcpc/default.script"
++ default "/share/udhcpc/default.script"
+endif
+
+if !CONFIG_INSTALL_NO_USR
+config CONFIG_UDHCPC_SCRIPT_PATH
-+ default "/usr/share/udhcpc/default.script"
++ default "/usr/share/udhcpc/default.script"
+endif
-+
++
+endmenu
+
endmenu
-
+
Index: networking/udhcp/README
===================================================================
RCS file: /var/cvs/busybox/networking/udhcp/README,v
@@ -109,33 +109,33 @@ diff -u -r1.3 README
@@ -9,27 +9,42 @@
compile time options
-------------------
-
+
-The Makefile contains three of the compile time options:
+The following options can be adjusted when configuring busybox:
-
+
- UDHCP_DEBUG: If UDHCP_DEBUG is defined, udhcpd will output extra
- debugging output, compile with -g, and not fork to the background when
- run.
- UDHCP_SYSLOG: If UDHCP_SYSLOG is defined, udhcpd will log all its
- messages syslog, otherwise, it will attempt to log them to stdout.
--
+-
- COMBINED_BINARY: If COMBINED_BINARY is define, one binary, udhcpd,
- is created. If called as udhcpd, the dhcp server will be started.
- If called as udhcpc, the dhcp client will be started.
--
+-
-dhcpd.h contains the other three compile time options:
--
+-
- LEASE_TIME: The default lease time if not specified in the config
- file.
-+ CONFIG_FEATURE_UDHCP_DEBUG:
-+ If this is defined, udhcpd will output extra debugging output,
++ CONFIG_FEATURE_UDHCP_DEBUG:
++ If this is defined, udhcpd will output extra debugging output,
+ compile with -g, and not fork to the background when run.
-
+
- LEASES_FILE: The default file for storing leases.
--
+-
- DHCPD_CONFIG_FILE: The defualt config file to use.
-+ CONFIG_FEATURE_UDHCP_SYSLOG:
-+ If this is defined, udhcpd will log all its messages syslog,
++ CONFIG_FEATURE_UDHCP_SYSLOG:
++ If this is defined, udhcpd will log all its messages syslog,
+ otherwise, it will attempt to log them to stdout.
+
+ CONFIG_UDHCPD_CONF_PATH:
@@ -158,14 +158,14 @@ diff -u -r1.3 README
+
+
+dhcpd.h contains the another compile time option:
-
-+ LEASE_TIME:
-+ The default lease time if not specified in the config file.
-+ This option can also be changed at runtime with the 'lease'
-+ configuration option.
+
++ LEASE_TIME:
++ The default lease time if not specified in the config file.
++ This option can also be changed at runtime with the 'lease'
++ configuration option.
+
options.c contains a set of dhcp options for the client:
-
+
name[10]: The name of the option as it will appear in scripts
Index: networking/udhcp/README.udhcpc
===================================================================
@@ -182,8 +182,8 @@ diff -u -r1.3 README.udhcpc
+ /usr/share/udhcpc/default.script or
+ CONFIG_UDHCPC_SCRIPT_PATH at build time)
-v, --version Display version
-
-
+
+
Index: networking/udhcp/README.udhcpd
===================================================================
RCS file: /var/cvs/busybox/networking/udhcp/README.udhcpd,v
@@ -192,21 +192,21 @@ diff -u -r1.1 README.udhcpd
--- a/networking/udhcp/README.udhcpd 31 Oct 2002 19:21:27 -0000 1.1
+++ b/networking/udhcp/README.udhcpd 5 Mar 2004 13:20:11 -0000
@@ -50,10 +50,14 @@
-
+
compile time options
-------------------
+
-+During busybox configuration, you can change the default paths for
-+udhcpd.conf, udhcpd.leases, and udhcpd.pid files. See README for
++During busybox configuration, you can change the default paths for
++udhcpd.conf, udhcpd.leases, and udhcpd.pid files. See README for
+more details.
-
+
-dhcpd.h contains the other two compile time options:
+dhcpd.h contains the compile time option:
-
+
LEASE_TIME: The default lease time if not specified in the config
file.
+
-
+
- DHCPD_CONFIG_FILE: The defualt config file to use.
Index: networking/udhcp/dhcpc.h
===================================================================
@@ -218,14 +218,14 @@ diff -u -r1.4 dhcpc.h
@@ -2,7 +2,11 @@
#ifndef _DHCPC_H
#define _DHCPC_H
-
+
-#define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
+#ifdef CONFIG_UDHCPC_SCRIPT_PATH
+ #define DEFAULT_SCRIPT CONFIG_UDHCPC_SCRIPT_PATH
+#else
+ #define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
+#endif
-
+
/* allow libbb_udhcp.h to redefine DEFAULT_SCRIPT */
#include "libbb_udhcp.h"
Index: networking/udhcp/dhcpd.c
@@ -240,25 +240,25 @@ diff -u -r1.5 dhcpd.c
int max_sock;
unsigned long num_ips;
+ int daemonize = 1;
-+
++
+ while (strcmp(argv[1],"-f")==0 || strcmp(argv[1],"--foreground")==0) {
+ daemonize = 0;
+ argv++;
+ argc--;
+ }
-
+
memset(&server_config, 0, sizeof(struct server_config_t));
read_config(argc < 2 ? DHCPD_CONF_FILE : argv[1]);
@@ -99,9 +106,8 @@
&server_config.server, server_config.arp) < 0)
return 1;
-
+
-#ifndef UDHCP_DEBUG
- background(server_config.pidfile); /* hold lock during fork. */
-#endif
+ if(daemonize)
+ background(server_config.pidfile); /* hold lock during fork. */
-
+
/* Setup the signal pipe */
udhcp_sp_setup();
Index: networking/udhcp/dhcpd.h
@@ -269,7 +269,7 @@ diff -u -r1.5 dhcpd.h
--- a/networking/udhcp/dhcpd.h 30 Jan 2004 23:45:12 -0000 1.5
+++ b/networking/udhcp/dhcpd.h 5 Mar 2004 13:20:12 -0000
@@ -15,11 +15,25 @@
-
+
/* the period of time the client is allowed to use that address */
#define LEASE_TIME (60*60*24*10) /* 10 days of seconds */
-#define LEASES_FILE "/var/lib/misc/udhcpd.leases"
@@ -279,7 +279,7 @@ diff -u -r1.5 dhcpd.h
+#else
+ #define LEASES_FILE "/var/lib/misc/udhcpd.leases"
+#endif
-
+
/* where to find the DHCP server configuration file */
-#define DHCPD_CONF_FILE "/etc/udhcpd.conf"
+#ifdef CONFIG_UDHCPD_CONF_PATH
@@ -287,7 +287,7 @@ diff -u -r1.5 dhcpd.h
+#else
+ #define DHCPD_CONF_FILE "/etc/udhcpd.conf"
+#endif
-
+
+#ifdef CONFIG_UDHCPD_PID_PATH
+ #define DHCPD_PID_FILE CONFIG_UDHCPD_PID_PATH
+#else
@@ -322,7 +322,7 @@ diff -u -r1.5 libbb_udhcp.h
@@ -3,11 +3,6 @@
/* bit of a hack, do this no matter what the order of the includes.
* (for busybox) */
-
+
-#ifdef CONFIG_INSTALL_NO_USR
-#undef DEFUALT_SCRIPT
-#define DEFAULT_SCRIPT "/share/udhcpc/default.script"
@@ -330,4 +330,4 @@ diff -u -r1.5 libbb_udhcp.h
-
#ifndef _LIBBB_UDHCP_H
#define _LIBBB_UDHCP_H
-
+
diff --git a/patches/udhcpd_foreground.diff b/patches/udhcpd_foreground.diff
index 9f1e3b913..3b8c7eb0c 100644
--- a/patches/udhcpd_foreground.diff
+++ b/patches/udhcpd_foreground.diff
@@ -10,24 +10,24 @@ diff -u -r1.5 dhcpd.c
int max_sock;
unsigned long num_ips;
+ int daemonize = 1;
-+
++
+ while (strcmp(argv[1],"-f")==0 || strcmp(argv[1],"--foreground")==0) {
+ daemonize = 0;
+ argv++;
+ argc--;
+ }
-
+
memset(&server_config, 0, sizeof(struct server_config_t));
read_config(argc < 2 ? DHCPD_CONF_FILE : argv[1]);
@@ -99,9 +106,8 @@
&server_config.server, server_config.arp) < 0)
return 1;
-
+
-#ifndef UDHCP_DEBUG
- background(server_config.pidfile); /* hold lock during fork. */
-#endif
+ if(daemonize)
+ background(server_config.pidfile); /* hold lock during fork. */
-
+
/* Setup the signal pipe */
udhcp_sp_setup();
diff --git a/procps/Makefile b/procps/Makefile
index 3751f79dd..0238f7ebb 100644
--- a/procps/Makefile
+++ b/procps/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/procps/Makefile.in b/procps/Makefile.in
index 723dd9ffb..1c2e00f7b 100644
--- a/procps/Makefile.in
+++ b/procps/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/procps/free.c b/procps/free.c
index dbc606c94..4fb047d48 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -2,7 +2,7 @@
/*
* Mini free implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -64,11 +64,11 @@ extern int free_main(int argc, char **argv)
if (argc > 1 && **(argv + 1) == '-')
bb_show_usage();
- printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free",
+ printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free",
"shared", "buffers");
- printf("%6s%13ld%13ld%13ld%13ld%13ld\n", "Mem:", info.totalram,
- info.totalram-info.freeram, info.freeram,
+ printf("%6s%13ld%13ld%13ld%13ld%13ld\n", "Mem:", info.totalram,
+ info.totalram-info.freeram, info.freeram,
info.sharedram, info.bufferram);
#ifndef __uClinux__
diff --git a/procps/kill.c b/procps/kill.c
index 22bb98a12..a07855e79 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -3,7 +3,7 @@
* Mini kill/killall implementation for busybox
*
* Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/procps/pidof.c b/procps/pidof.c
index 2fe8ecd25..413864a37 100644
--- a/procps/pidof.c
+++ b/procps/pidof.c
@@ -2,7 +2,7 @@
/*
* pidof implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/procps/ps.c b/procps/ps.c
index b9d15b861..0b603314d 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -2,7 +2,7 @@
/*
* Mini ps implementation(s) for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
diff --git a/procps/renice.c b/procps/renice.c
index a81156eea..a6f0820df 100644
--- a/procps/renice.c
+++ b/procps/renice.c
@@ -31,17 +31,17 @@
extern int renice_main(int argc, char **argv)
{
int prio, status = EXIT_SUCCESS;
-
+
if (argc < 3) bb_show_usage();
-
+
prio = atoi(*++argv);
if (prio > 20) prio = 20;
if (prio < -20) prio = -20;
-
+
while (*++argv) {
int ps = atoi(*argv);
int oldp = getpriority(PRIO_PROCESS, ps);
-
+
if (setpriority(PRIO_PROCESS, ps, prio) == 0) {
printf("%d: old priority %d, new priority %d\n", ps, oldp, prio );
} else {
diff --git a/procps/sysctl.c b/procps/sysctl.c
index ee883e163..359dcc041 100644
--- a/procps/sysctl.c
+++ b/procps/sysctl.c
@@ -17,7 +17,7 @@
* - added -p <preload> to preload values from a file
* v1.01.1
* - busybox applet aware by <solar@gentoo.org>
- *
+ *
*/
#include <stdio.h>
@@ -70,7 +70,7 @@ static void dwrite_str(int fd, const char *buf)
}
/*
- * sysctl_main()...
+ * sysctl_main()...
*/
int sysctl_main(int argc, char **argv)
{
@@ -126,7 +126,7 @@ int sysctl_main(int argc, char **argv)
/*
- * sysctl_preload_file
+ * sysctl_preload_file
* preload the sysctl's from a conf file
* - we parse the file and then reform it (strip out whitespace)
*/
@@ -250,7 +250,7 @@ int sysctl_write_setting(const char *setting, int output)
/*
- * Read a sysctl setting
+ * Read a sysctl setting
*
*/
int sysctl_read_setting(const char *setting, int output)
@@ -304,7 +304,7 @@ int sysctl_read_setting(const char *setting, int output)
/*
- * Display all the sysctl settings
+ * Display all the sysctl settings
*
*/
int sysctl_display_all(const char *path, int output, int show_table)
diff --git a/procps/top.c b/procps/top.c
index 64b3c0732..f619f6923 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -7,11 +7,11 @@
* This reads the PIDs of all processes and their status and shows
* the status of processes (first ones that fit to screen) at given
* intervals.
- *
+ *
* NOTES:
* - At startup this changes to /proc, all the reads are then
* relative to that.
- *
+ *
* (C) Eero Tamminen <oak at welho dot com>
*
* Rewroted by Vladimir Oleynik (C) 2002 <dzo@simtreas.ru>
@@ -332,7 +332,7 @@ static unsigned long display_generic(void)
fscanf(fp, "Mem: %lu %lu %lu %lu %lu %lu",
&total, &used, &mfree, &shared, &buffers, &cached);
} else {
- /*
+ /*
* Revert to manual parsing, which incidentally already has the
* sizes in kilobytes. This should be safe for both 2.4 and
* 2.6.
@@ -341,7 +341,7 @@ static unsigned long display_generic(void)
fscanf(fp, "MemFree: %lu %s\n", &mfree, buf);
- /*
+ /*
* MemShared: is no longer present in 2.6. Report this as 0,
* to maintain consistent behavior with normal procps.
*/
@@ -354,7 +354,7 @@ static unsigned long display_generic(void)
used = total - mfree;
}
fclose(fp);
-
+
/* read load average */
fp = bb_xfopen("loadavg", "r");
if (fscanf(fp, "%f %f %f", &avg1, &avg2, &avg3) != 3) {
@@ -371,7 +371,7 @@ static unsigned long display_generic(void)
cached /= 1024;
total /= 1024;
}
-
+
/* output memory info and load average */
/* clear screen & go to top */
printf("\e[H\e[J" "Mem: "
@@ -390,7 +390,7 @@ static void display_status(int count, int col)
procps_status_t *s = top;
char rss_str_buf[8];
unsigned long total_memory = display_generic();
-
+
#ifdef FEATURE_CPU_USAGE_PERCENTAGE
/* what info of the processes is shown */
printf("\n\e[7m PID USER STATUS RSS PPID %%CPU %%MEM COMMAND\e[0m\n");
@@ -404,7 +404,7 @@ static void display_status(int count, int col)
pmem = 1000.0 * s->rss / total_memory;
if (pmem > 999) pmem = 999;
-
+
if(s->rss > 10*1024)
sprintf(rss_str_buf, "%6ldM", s->rss/1024);
else
@@ -450,7 +450,7 @@ static void reset_term(void)
#endif
#endif /* CONFIG_FEATURE_CLEAN_UP */
}
-
+
static void sig_catcher (int sig)
{
reset_term();
@@ -609,6 +609,6 @@ int top_main(int argc, char **argv)
#endif /* CONFIG_FEATURE_USE_TERMIOS */
clearmems();
}
-
+
return EXIT_SUCCESS;
}
diff --git a/procps/uptime.c b/procps/uptime.c
index a974313d7..7e0735c44 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -2,7 +2,7 @@
/*
* Mini uptime implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -53,8 +53,8 @@ extern int uptime_main(int argc, char **argv)
sysinfo(&info);
- printf(" %2d:%02d%s up ",
- current_time->tm_hour%12 ? current_time->tm_hour%12 : 12,
+ printf(" %2d:%02d%s up ",
+ current_time->tm_hour%12 ? current_time->tm_hour%12 : 12,
current_time->tm_min, current_time->tm_hour > 11 ? "pm" : "am");
updays = (int) info.uptime / (60*60*24);
if (updays)
@@ -67,9 +67,9 @@ extern int uptime_main(int argc, char **argv)
else
printf("%d min, ", upminutes);
- printf("load average: %ld.%02ld, %ld.%02ld, %ld.%02ld\n",
- LOAD_INT(info.loads[0]), LOAD_FRAC(info.loads[0]),
- LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]),
+ printf("load average: %ld.%02ld, %ld.%02ld, %ld.%02ld\n",
+ LOAD_INT(info.loads[0]), LOAD_FRAC(info.loads[0]),
+ LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]),
LOAD_INT(info.loads[2]), LOAD_FRAC(info.loads[2]));
return EXIT_SUCCESS;
diff --git a/scripts/config/Kconfig-language.txt b/scripts/config/Kconfig-language.txt
index a3037ffcf..493749b32 100644
--- a/scripts/config/Kconfig-language.txt
+++ b/scripts/config/Kconfig-language.txt
@@ -112,7 +112,7 @@ module state. Dependency expressions have the following syntax:
<expr> '||' <expr> (6)
<expr> '&&' <expr> (7)
-Expressions are listed in decreasing order of precedence.
+Expressions are listed in decreasing order of precedence.
(1) Convert the symbol into an expression. Boolean and tristate symbols
are simply converted into the respective expression values. All
diff --git a/scripts/config/Makefile b/scripts/config/Makefile
index ab3df4993..e15ec399c 100644
--- a/scripts/config/Makefile
+++ b/scripts/config/Makefile
@@ -38,7 +38,7 @@ CONF_OBJS =$(patsubst %.c,%.o, $(CONF_SRC))
MCONF_OBJS=$(patsubst %.c,%.o, $(MCONF_SRC))
SHARED_OBJS=$(patsubst %.c,%.o, $(SHARED_SRC))
-conf: $(CONF_OBJS) $(SHARED_OBJS)
+conf: $(CONF_OBJS) $(SHARED_OBJS)
$(HOSTCC) $(NATIVE_LDFLAGS) $^ -o $@
mconf: $(MCONF_OBJS) $(SHARED_OBJS)
@@ -55,7 +55,7 @@ lkc_defs.h: lkc_proto.h
###
# The following requires flex/bison
-# By default we use the _shipped versions, uncomment the
+# By default we use the _shipped versions, uncomment the
# following line if you are modifying the flex/bison src.
#LKC_GENPARSER := 1
diff --git a/scripts/config/checklist.c b/scripts/config/checklist.c
index c4a9289b9..9744d798d 100644
--- a/scripts/config/checklist.c
+++ b/scripts/config/checklist.c
@@ -120,7 +120,7 @@ int
dialog_checklist (const char *title, const char *prompt, int height, int width,
int list_height, int item_no, struct dialog_list_item ** items,
int flag)
-
+
{
int i, x, y, box_x, box_y;
int key = 0, button = 0, choice = 0, scroll = 0, max_choice, *status;
@@ -195,7 +195,7 @@ dialog_checklist (const char *title, const char *prompt, int height, int width,
/* Find length of longest item in order to center checklist */
check_x = 0;
- for (i = 0; i < item_no; i++)
+ for (i = 0; i < item_no; i++)
check_x = MAX (check_x, + strlen (items[i]->name) + 4);
check_x = (list_width - check_x) / 2;
@@ -229,7 +229,7 @@ dialog_checklist (const char *title, const char *prompt, int height, int width,
break;
- if ( i < max_choice || key == KEY_UP || key == KEY_DOWN ||
+ if ( i < max_choice || key == KEY_UP || key == KEY_DOWN ||
key == '+' || key == '-' ) {
if (key == KEY_UP || key == '-') {
if (!choice) {
@@ -337,7 +337,7 @@ dialog_checklist (const char *title, const char *prompt, int height, int width,
}
wnoutrefresh (list);
wrefresh (dialog);
-
+
for (i = 0; i < item_no; i++) {
items[i]->selected = status[i];
}
@@ -355,7 +355,7 @@ dialog_checklist (const char *title, const char *prompt, int height, int width,
/* Now, update everything... */
doupdate ();
}
-
+
delwin (dialog);
free (status);
diff --git a/scripts/config/dialog.h b/scripts/config/dialog.h
index 8116cee36..6486cc8f7 100644
--- a/scripts/config/dialog.h
+++ b/scripts/config/dialog.h
@@ -86,7 +86,7 @@
#define ACS_DARROW 'v'
#endif
-/*
+/*
* Attribute names
*/
#define screen_attr attributes[0]
@@ -162,7 +162,7 @@ int dialog_msgbox (const char *title, const char *prompt, int height,
int width, int pause);
int dialog_textbox (const char *title, const char *file, int height, int width);
int dialog_menu (const char *title, const char *prompt, int height, int width,
- int menu_height, const char *choice, int item_no,
+ int menu_height, const char *choice, int item_no,
struct dialog_list_item ** items);
int dialog_checklist (const char *title, const char *prompt, int height,
int width, int list_height, int item_no,
diff --git a/scripts/config/lex.zconf.c_shipped b/scripts/config/lex.zconf.c_shipped
index 22dda11f7..b877bb6b3 100644
--- a/scripts/config/lex.zconf.c_shipped
+++ b/scripts/config/lex.zconf.c_shipped
@@ -42,7 +42,7 @@ typedef uint32_t flex_uint32_t;
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
-typedef unsigned char flex_uint8_t;
+typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
#endif /* ! C99 */
@@ -148,7 +148,7 @@ extern FILE *zconfin, *zconfout;
#define EOB_ACT_LAST_MATCH 2
#define YY_LESS_LINENO(n)
-
+
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
do \
@@ -215,7 +215,7 @@ struct yy_buffer_state
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
-
+
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
@@ -2089,7 +2089,7 @@ extern int zconfwrap (void );
#endif
static void yyunput (int c,char *buf_ptr );
-
+
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
@@ -2194,7 +2194,7 @@ YY_DECL
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
-
+
int str = 0;
int ts, i;
@@ -2899,7 +2899,7 @@ static int yy_get_next_buffer (void)
{
register yy_state_type yy_current_state;
register char *yy_cp;
-
+
yy_current_state = (yy_start);
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
@@ -2918,7 +2918,7 @@ static int yy_get_next_buffer (void)
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
register int yy_is_jam;
-
+
yy_current_state = yy_nxt[yy_current_state][1];
yy_is_jam = (yy_current_state <= 0);
@@ -2928,7 +2928,7 @@ static int yy_get_next_buffer (void)
static void yyunput (int c, register char * yy_bp )
{
register char *yy_cp;
-
+
yy_cp = (yy_c_buf_p);
/* undo effects of setting up zconftext */
@@ -2971,7 +2971,7 @@ static int yy_get_next_buffer (void)
{
int c;
-
+
*(yy_c_buf_p) = (yy_hold_char);
if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
@@ -3038,12 +3038,12 @@ static int yy_get_next_buffer (void)
/** Immediately switch to a different input stream.
* @param input_file A readable stream.
- *
+ *
* @note This function does not reset the start condition to @c INITIAL .
*/
void zconfrestart (FILE * input_file )
{
-
+
if ( ! YY_CURRENT_BUFFER ){
zconfensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
@@ -3056,11 +3056,11 @@ static int yy_get_next_buffer (void)
/** Switch to a different input buffer.
* @param new_buffer The new input buffer.
- *
+ *
*/
void zconf_switch_to_buffer (YY_BUFFER_STATE new_buffer )
{
-
+
/* TODO. We should be able to replace this entire function body
* with
* zconfpop_buffer_state();
@@ -3100,13 +3100,13 @@ static void zconf_load_buffer_state (void)
/** Allocate and initialize an input buffer state.
* @param file A readable stream.
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
- *
+ *
* @return the allocated buffer state.
*/
YY_BUFFER_STATE zconf_create_buffer (FILE * file, int size )
{
YY_BUFFER_STATE b;
-
+
b = (YY_BUFFER_STATE) zconfalloc(sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in zconf_create_buffer()" );
@@ -3129,11 +3129,11 @@ static void zconf_load_buffer_state (void)
/** Destroy the buffer.
* @param b a buffer created with zconf_create_buffer()
- *
+ *
*/
void zconf_delete_buffer (YY_BUFFER_STATE b )
{
-
+
if ( ! b )
return;
@@ -3154,7 +3154,7 @@ static void zconf_load_buffer_state (void)
{
int oerrno = errno;
-
+
zconf_flush_buffer(b );
b->yy_input_file = file;
@@ -3170,13 +3170,13 @@ static void zconf_load_buffer_state (void)
}
b->yy_is_interactive = 0;
-
+
errno = oerrno;
}
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
- *
+ *
*/
void zconf_flush_buffer (YY_BUFFER_STATE b )
{
@@ -3205,7 +3205,7 @@ static void zconf_load_buffer_state (void)
* the current state. This function will allocate the stack
* if necessary.
* @param new_buffer The new state.
- *
+ *
*/
void zconfpush_buffer_state (YY_BUFFER_STATE new_buffer )
{
@@ -3235,7 +3235,7 @@ void zconfpush_buffer_state (YY_BUFFER_STATE new_buffer )
/** Removes and deletes the top of the stack, if present.
* The next element becomes the new top.
- *
+ *
*/
void zconfpop_buffer_state (void)
{
@@ -3259,7 +3259,7 @@ void zconfpop_buffer_state (void)
static void zconfensure_buffer_stack (void)
{
int num_to_alloc;
-
+
if (!(yy_buffer_stack)) {
/* First allocation is just for 2 elements, since we don't know if this
@@ -3270,9 +3270,9 @@ static void zconfensure_buffer_stack (void)
(yy_buffer_stack) = (struct yy_buffer_state**)zconfalloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
-
+
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
-
+
(yy_buffer_stack_max) = num_to_alloc;
(yy_buffer_stack_top) = 0;
return;
@@ -3298,13 +3298,13 @@ static void zconfensure_buffer_stack (void)
/** Setup the input buffer state to scan directly from a user-specified character buffer.
* @param base the character buffer
* @param size the size in bytes of the character buffer
- *
- * @return the newly allocated buffer state object.
+ *
+ * @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE zconf_scan_buffer (char * base, yy_size_t size )
{
YY_BUFFER_STATE b;
-
+
if ( size < 2 ||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
@@ -3333,14 +3333,14 @@ YY_BUFFER_STATE zconf_scan_buffer (char * base, yy_size_t size )
/** Setup the input buffer state to scan a string. The next call to zconflex() will
* scan from a @e copy of @a str.
* @param str a NUL-terminated string to scan
- *
+ *
* @return the newly allocated buffer state object.
* @note If you want to scan bytes that may contain NUL values, then use
* zconf_scan_bytes() instead.
*/
YY_BUFFER_STATE zconf_scan_string (yyconst char * str )
{
-
+
return zconf_scan_bytes(str,strlen(str) );
}
@@ -3348,7 +3348,7 @@ YY_BUFFER_STATE zconf_scan_string (yyconst char * str )
* scan from a @e copy of @a bytes.
* @param bytes the byte buffer to scan
* @param len the number of bytes in the buffer pointed to by @a bytes.
- *
+ *
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE zconf_scan_bytes (yyconst char * bytes, int len )
@@ -3357,7 +3357,7 @@ YY_BUFFER_STATE zconf_scan_bytes (yyconst char * bytes, int len )
char *buf;
yy_size_t n;
int i;
-
+
/* Get memory for full buffer, including space for trailing EOB's. */
n = len + 2;
buf = (char *) zconfalloc(n );
@@ -3411,16 +3411,16 @@ static void yy_fatal_error (yyconst char* msg )
/* Accessor methods (get/set functions) to struct members. */
/** Get the current line number.
- *
+ *
*/
int zconfget_lineno (void)
{
-
+
return zconflineno;
}
/** Get the input stream.
- *
+ *
*/
FILE *zconfget_in (void)
{
@@ -3428,7 +3428,7 @@ FILE *zconfget_in (void)
}
/** Get the output stream.
- *
+ *
*/
FILE *zconfget_out (void)
{
@@ -3436,7 +3436,7 @@ FILE *zconfget_out (void)
}
/** Get the length of the current token.
- *
+ *
*/
int zconfget_leng (void)
{
@@ -3444,7 +3444,7 @@ int zconfget_leng (void)
}
/** Get the current token.
- *
+ *
*/
char *zconfget_text (void)
@@ -3454,18 +3454,18 @@ char *zconfget_text (void)
/** Set the current line number.
* @param line_number
- *
+ *
*/
void zconfset_lineno (int line_number )
{
-
+
zconflineno = line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
* @param in_str A readable stream.
- *
+ *
* @see zconf_switch_to_buffer
*/
void zconfset_in (FILE * in_str )
@@ -3491,7 +3491,7 @@ void zconfset_debug (int bdebug )
/* zconflex_destroy is for both reentrant and non-reentrant scanners. */
int zconflex_destroy (void)
{
-
+
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
zconf_delete_buffer(YY_CURRENT_BUFFER );
diff --git a/scripts/config/mconf.c b/scripts/config/mconf.c
index 739b3b480..fe4562b17 100644
--- a/scripts/config/mconf.c
+++ b/scripts/config/mconf.c
@@ -169,7 +169,7 @@ static void cmake(void)
items[item_no]->namelen = 0;
item_no++;
}
-
+
static int cprint_name(const char *fmt, ...)
{
va_list ap;
@@ -186,7 +186,7 @@ static int cprint_name(const char *fmt, ...)
return res;
}
-
+
static int cprint_tag(const char *fmt, ...)
{
va_list ap;
@@ -200,7 +200,7 @@ static int cprint_tag(const char *fmt, ...)
return res;
}
-
+
static void cdone(void)
{
int i;
@@ -675,19 +675,19 @@ int main(int ac, char **av)
if (!strcasecmp(mode, "single_menu"))
single_menu_mode = 1;
}
-
+
tcgetattr(1, &ios_org);
atexit(conf_cleanup);
init_wsize();
init_dialog();
- signal(SIGWINCH, winch_handler);
+ signal(SIGWINCH, winch_handler);
conf(&rootmenu);
end_dialog();
/* Restart dialog to act more like when lxdialog was still separate */
init_dialog();
do {
- stat = dialog_yesno(NULL,
+ stat = dialog_yesno(NULL,
"Do you wish to save your new BusyBox configuration?", 5, 60);
} while (stat < 0);
end_dialog();
diff --git a/scripts/config/menu.c b/scripts/config/menu.c
index 6e075f80b..9b8d389e6 100644
--- a/scripts/config/menu.c
+++ b/scripts/config/menu.c
@@ -228,7 +228,7 @@ void menu_finalize(struct menu *parent)
if (prop->type == P_PROMPT && prop->menu != menu) {
fprintf(stderr, "%s:%d:warning: choice values currently only support a single prompt\n",
prop->file->name, prop->lineno);
-
+
}
if (prop->type == P_DEFAULT)
fprintf(stderr, "%s:%d:warning: defaults for choice values not supported\n",
diff --git a/scripts/config/menubox.c b/scripts/config/menubox.c
index 18e02168b..431f09fc9 100644
--- a/scripts/config/menubox.c
+++ b/scripts/config/menubox.c
@@ -26,7 +26,7 @@
*
* *) A bugfix for the Page-Down problem
*
- * *) Formerly when I used Page Down and Page Up, the cursor would be set
+ * *) Formerly when I used Page Down and Page Up, the cursor would be set
* to the first position in the menu box. Now lxdialog is a bit
* smarter and works more like other menu systems (just have a look at
* it).
@@ -225,7 +225,7 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
/*
* Find length of longest item in order to center menu.
- * Set 'choice' to default item.
+ * Set 'choice' to default item.
*/
item_x = 0;
for (i = 0; i < item_no; i++) {
@@ -294,7 +294,7 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
}
}
- if (i < max_choice ||
+ if (i < max_choice ||
key == KEY_UP || key == KEY_DOWN ||
key == '-' || key == '+' ||
key == KEY_PPAGE || key == KEY_NPAGE) {
diff --git a/scripts/config/util.c b/scripts/config/util.c
index d20730b88..104ff0e4c 100644
--- a/scripts/config/util.c
+++ b/scripts/config/util.c
@@ -29,7 +29,7 @@ char *backtitle = NULL;
const char *dialog_result;
-/*
+/*
* Attribute values, default is for mono display
*/
chtype attributes[] =
@@ -204,7 +204,7 @@ print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x)
strcpy (tempstr, prompt);
prompt_len = strlen(tempstr);
-
+
/*
* Remove newlines
*/
@@ -350,7 +350,7 @@ first_alpha(const char *string, const char *exempt)
if (strchr("<[(", c)) ++in_paren;
if (strchr(">])", c)) --in_paren;
- if ((! in_paren) && isalpha(c) &&
+ if ((! in_paren) && isalpha(c) &&
strchr(exempt, c) == 0)
return i;
}
diff --git a/scripts/config/zconf.tab.c_shipped b/scripts/config/zconf.tab.c_shipped
index 4f5bcfb45..a5f69a026 100644
--- a/scripts/config/zconf.tab.c_shipped
+++ b/scripts/config/zconf.tab.c_shipped
@@ -446,21 +446,21 @@ static const unsigned short yyrline[] =
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
- "$end", "error", "$undefined", "T_MAINMENU", "T_MENU", "T_ENDMENU",
- "T_SOURCE", "T_CHOICE", "T_ENDCHOICE", "T_COMMENT", "T_CONFIG",
- "T_MENUCONFIG", "T_HELP", "T_HELPTEXT", "T_IF", "T_ENDIF", "T_DEPENDS",
- "T_REQUIRES", "T_OPTIONAL", "T_PROMPT", "T_DEFAULT", "T_TRISTATE",
- "T_DEF_TRISTATE", "T_BOOLEAN", "T_DEF_BOOLEAN", "T_STRING", "T_INT",
- "T_HEX", "T_WORD", "T_WORD_QUOTE", "T_UNEQUAL", "T_EOF", "T_EOL",
- "T_CLOSE_PAREN", "T_OPEN_PAREN", "T_ON", "T_SELECT", "T_RANGE", "T_OR",
- "T_AND", "T_EQUAL", "T_NOT", "$accept", "input", "block",
- "common_block", "config_entry_start", "config_stmt",
- "menuconfig_entry_start", "menuconfig_stmt", "config_option_list",
- "config_option", "choice", "choice_entry", "choice_end", "choice_stmt",
- "choice_option_list", "choice_option", "choice_block", "if", "if_end",
- "if_stmt", "if_block", "menu", "menu_entry", "menu_end", "menu_stmt",
- "menu_block", "source", "source_stmt", "comment", "comment_stmt",
- "help_start", "help", "depends_list", "depends", "prompt_stmt_opt",
+ "$end", "error", "$undefined", "T_MAINMENU", "T_MENU", "T_ENDMENU",
+ "T_SOURCE", "T_CHOICE", "T_ENDCHOICE", "T_COMMENT", "T_CONFIG",
+ "T_MENUCONFIG", "T_HELP", "T_HELPTEXT", "T_IF", "T_ENDIF", "T_DEPENDS",
+ "T_REQUIRES", "T_OPTIONAL", "T_PROMPT", "T_DEFAULT", "T_TRISTATE",
+ "T_DEF_TRISTATE", "T_BOOLEAN", "T_DEF_BOOLEAN", "T_STRING", "T_INT",
+ "T_HEX", "T_WORD", "T_WORD_QUOTE", "T_UNEQUAL", "T_EOF", "T_EOL",
+ "T_CLOSE_PAREN", "T_OPEN_PAREN", "T_ON", "T_SELECT", "T_RANGE", "T_OR",
+ "T_AND", "T_EQUAL", "T_NOT", "$accept", "input", "block",
+ "common_block", "config_entry_start", "config_stmt",
+ "menuconfig_entry_start", "menuconfig_stmt", "config_option_list",
+ "config_option", "choice", "choice_entry", "choice_end", "choice_stmt",
+ "choice_option_list", "choice_option", "choice_block", "if", "if_end",
+ "if_stmt", "if_block", "menu", "menu_entry", "menu_end", "menu_stmt",
+ "menu_block", "source", "source_stmt", "comment", "comment_stmt",
+ "help_start", "help", "depends_list", "depends", "prompt_stmt_opt",
"prompt", "end", "nl_or_eof", "if_expr", "expr", "symbol", 0
};
#endif
@@ -1027,7 +1027,7 @@ yyparse ()
#endif
#endif
{
-
+
register int yystate;
register int yyn;
int yyresult;
diff --git a/scripts/mkdep.c b/scripts/mkdep.c
index 9b92b08c4..ae3cc74e0 100644
--- a/scripts/mkdep.c
+++ b/scripts/mkdep.c
@@ -3,7 +3,7 @@
* Smart CONFIG_* processing by Werner Almesberger, Michael Chastain.
*
* Usage: mkdep cflags -- file ...
- *
+ *
* Read source files and output makefile dependency lines for them.
* I make simple dependency lines for #include <*.h> and #include "*.h".
* I also find instances of CONFIG_FOO and generate dependencies
diff --git a/scripts/split-include.c b/scripts/split-include.c
index 3ab9fed87..624a0d62b 100644
--- a/scripts/split-include.c
+++ b/scripts/split-include.c
@@ -96,7 +96,7 @@ int main(int argc, const char * argv [])
/* Change to output directory. */
if (chdir(str_dir_config) != 0)
ERROR_EXIT(str_dir_config);
-
+
/* Put initial separator into target list. */
ptarget = list_target;
*ptarget++ = '\n';
diff --git a/shell/Config.in b/shell/Config.in
index 892b96e78..bcb5e719b 100644
--- a/shell/Config.in
+++ b/shell/Config.in
@@ -41,7 +41,7 @@ config CONFIG_ASH
the most complete and most pedantically correct shell included with
busybox. This shell is actually a derivative of the Debian 'dash'
shell (by Herbert Xu), which was created by porting the 'ash' shell
- (written by Kenneth Almquist) from NetBSD.
+ (written by Kenneth Almquist) from NetBSD.
comment "Ash Shell Options"
depends on CONFIG_ASH
diff --git a/shell/Makefile b/shell/Makefile
index a08219262..8f476c19e 100644
--- a/shell/Makefile
+++ b/shell/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/shell/Makefile.in b/shell/Makefile.in
index c5be7ba79..7b9f41ed4 100644
--- a/shell/Makefile.in
+++ b/shell/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/shell/ash.c b/shell/ash.c
index 8c2493ece..060860c07 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -7615,7 +7615,7 @@ cmdputs(const char *s)
int quoted = 0;
static const char *const vstype[16] = {
nullstr, "}", "-", "+", "?", "=",
- "%", "%%", "#", "##", nullstr
+ "%", "%%", "#", "##", nullstr
};
nextc = makestrspace((strlen(s) + 1) * 8, cmdnextc);
diff --git a/shell/hush.c b/shell/hush.c
index 84818ffa3..5da975746 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -12,7 +12,7 @@
* written Dec 2000 and Jan 2001 by Larry Doolittle. The
* execution engine, the builtins, and much of the underlying
* support has been adapted from busybox-0.49pre's lash, which is
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
* written by Erik Andersen <andersen@codepoet.org>. That, in turn,
* is based in part on ladsh.c, by Michael K. Johnson and Erik W.
* Troan, which they placed in the public domain. I don't know
@@ -197,7 +197,7 @@ struct redir_struct {
redir_type type; /* type of redirection */
int fd; /* file descriptor being redirected */
int dup; /* -1, or file descriptor being duplicated */
- struct redir_struct *next; /* pointer to the next redirect in the list */
+ struct redir_struct *next; /* pointer to the next redirect in the list */
glob_t word; /* *word.gl_pathv is the filename */
};
@@ -248,7 +248,7 @@ char **global_argv;
unsigned int global_argc;
unsigned int last_return_code;
extern char **environ; /* This is in <unistd.h>, but protected with __USE_GNU */
-
+
/* "globals" within this file */
static char *ifs;
static char map[256];
@@ -421,7 +421,7 @@ static struct built_in_command bltins[] = {
{"continue", "Continue for, while or until loop", builtin_not_written},
{"env", "Print all environment variables", builtin_env},
{"eval", "Construct and run shell command", builtin_eval},
- {"exec", "Exec command, replacing this shell with the exec'd process",
+ {"exec", "Exec command, replacing this shell with the exec'd process",
builtin_exec},
{"exit", "Exit from shell()", builtin_exit},
{"export", "Set environment variable", builtin_export},
@@ -456,10 +456,10 @@ static int builtin_eval(struct child_prog *child)
{
char *str = NULL;
int rcode = EXIT_SUCCESS;
-
+
if (child->argv[1]) {
str = make_string(child->argv + 1);
- parse_string_outer(str, FLAG_EXIT_FROM_LOOP |
+ parse_string_outer(str, FLAG_EXIT_FROM_LOOP |
FLAG_PARSE_SEMICOLON);
free(str);
rcode = last_return_code;
@@ -873,7 +873,7 @@ static inline void cmdedit_set_initial_prompt(void)
PS1 = getenv("PS1");
if(PS1==0)
PS1 = "\\w \\$ ";
-#endif
+#endif
}
static inline void setup_prompt_string(int promptmode, char **prompt_str)
@@ -919,7 +919,7 @@ static void get_user_input(struct in_str *i)
i->p = the_command;
}
-/* This is the magic location that prints prompts
+/* This is the magic location that prints prompts
* and gets data back from the user */
static int file_get(struct in_str *i)
{
@@ -1110,14 +1110,14 @@ static void pseudo_exec(struct child_prog *child)
}
/* Check if the command matches any busybox internal commands
- * ("applets") here.
+ * ("applets") here.
* FIXME: This feature is not 100% safe, since
* BusyBox is not fully reentrant, so we have no guarantee the things
* from the .bss are still zeroed, or that things from .data are still
* at their defaults. We could exec ourself from /proc/self/exe, but I
* really dislike relying on /proc for things. We could exec ourself
* from global_argv[0], but if we are in a chroot, we may not be able
- * to find ourself... */
+ * to find ourself... */
#ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL
{
int argc_l;
@@ -1196,7 +1196,7 @@ static void insert_bg_job(struct pipe *pi)
}
}
- /* we don't wait for background thejobs to return -- append it
+ /* we don't wait for background thejobs to return -- append it
to the list of backgrounded thejobs and leave it alone */
printf("[%d] %d\n", thejob->jobid, thejob->progs[0].pid);
last_bg_pid = thejob->progs[0].pid;
@@ -1226,7 +1226,7 @@ static void remove_bg_job(struct pipe *pi)
free(pi);
}
-/* Checks to see if any processes have exited -- if they
+/* Checks to see if any processes have exited -- if they
have, figure out why and see if a job has completed */
static int checkjobs(struct pipe* fg_pipe)
{
@@ -1246,7 +1246,7 @@ static int checkjobs(struct pipe* fg_pipe)
int i, rcode = 0;
for (i=0; i < fg_pipe->num_progs; i++) {
if (fg_pipe->progs[i].pid == childpid) {
- if (i==fg_pipe->num_progs-1)
+ if (i==fg_pipe->num_progs-1)
rcode=WEXITSTATUS(status);
(fg_pipe->num_progs)--;
return(rcode);
@@ -1289,7 +1289,7 @@ static int checkjobs(struct pipe* fg_pipe)
if (pi->stopped_progs == pi->num_progs) {
printf("\n"JOB_STATUS_FORMAT, pi->jobid, "Stopped", pi->text);
}
-#endif
+#endif
}
}
@@ -1378,7 +1378,7 @@ static int run_pipe_real(struct pipe *pi)
/* Ok, this case is tricky. We have to decide if this is a
* local variable, or an already exported variable. If it is
* already exported, we have to export the new value. If it is
- * not exported, we need only set this as a local variable.
+ * not exported, we need only set this as a local variable.
* This junk is all to decide whether or not to export this
* variable. */
int export_me=0;
@@ -1408,7 +1408,7 @@ static int run_pipe_real(struct pipe *pi)
}
if (child->sp) {
char * str = NULL;
-
+
str = make_string((child->argv + i));
parse_string_outer(str, FLAG_EXIT_FROM_LOOP | FLAG_REPARSING);
free(str);
@@ -1454,7 +1454,7 @@ static int run_pipe_real(struct pipe *pi)
#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
if (!(child->pid = fork()))
#else
- if (!(child->pid = vfork()))
+ if (!(child->pid = vfork()))
#endif
{
/* Set the handling for job control signals back to the default. */
@@ -1465,7 +1465,7 @@ static int run_pipe_real(struct pipe *pi)
signal(SIGTTIN, SIG_DFL);
signal(SIGTTOU, SIG_DFL);
signal(SIGCHLD, SIG_DFL);
-
+
close_all();
if (nextin != 0) {
@@ -1497,7 +1497,7 @@ static int run_pipe_real(struct pipe *pi)
pseudo_exec(child);
}
-
+
/* put our child in the process group whose leader is the
first process in this pipe */
@@ -1513,7 +1513,7 @@ static int run_pipe_real(struct pipe *pi)
if (nextout != 1)
close(nextout);
- /* If there isn't another process, nextin is garbage
+ /* If there isn't another process, nextin is garbage
but it doesn't matter */
nextin = pipefds[0];
}
@@ -1539,12 +1539,12 @@ static int run_list_real(struct pipe *pi)
(rpipe->next == NULL)) {
syntax();
return 1;
- }
- if ((rpipe->r_mode == RES_IN &&
- (rpipe->next->r_mode == RES_IN &&
+ }
+ if ((rpipe->r_mode == RES_IN &&
+ (rpipe->next->r_mode == RES_IN &&
rpipe->next->progs->argv != NULL))||
(rpipe->r_mode == RES_FOR &&
- rpipe->next->r_mode != RES_IN)) {
+ rpipe->next->r_mode != RES_IN)) {
syntax();
return 1;
}
@@ -1572,7 +1572,7 @@ static int run_list_real(struct pipe *pi)
if (rmode == RES_ELIF && !if_code) continue;
if (rmode == RES_FOR && pi->num_progs) {
if (!list) {
- /* if no variable values after "in" we skip "for" */
+ /* if no variable values after "in" we skip "for" */
if (!pi->next->progs->argv) continue;
/* create list of variable values */
list = make_list_in(pi->next->progs->argv,
@@ -1581,7 +1581,7 @@ static int run_list_real(struct pipe *pi)
save_name = pi->progs->argv[0];
pi->progs->argv[0] = NULL;
flag_rep = 1;
- }
+ }
if (!(*list)) {
free(pi->progs->argv[0]);
free(save_list);
@@ -1591,26 +1591,26 @@ static int run_list_real(struct pipe *pi)
pi->progs->glob_result.gl_pathv[0] =
pi->progs->argv[0];
continue;
- } else {
+ } else {
/* insert new value from list for variable */
- if (pi->progs->argv[0])
+ if (pi->progs->argv[0])
free(pi->progs->argv[0]);
pi->progs->argv[0] = *list++;
pi->progs->glob_result.gl_pathv[0] =
pi->progs->argv[0];
}
- }
+ }
if (rmode == RES_IN) continue;
if (rmode == RES_DO) {
if (!flag_rep) continue;
- }
+ }
if ((rmode == RES_DONE)) {
if (flag_rep) {
flag_restore = 1;
} else {
rpipe = NULL;
}
- }
+ }
if (pi->num_progs == 0) continue;
save_num_progs = pi->num_progs; /* save number of programs */
rcode = run_pipe_real(pi);
@@ -1642,9 +1642,9 @@ static int run_list_real(struct pipe *pi)
pi->num_progs = save_num_progs; /* restore number of programs */
if ( rmode == RES_IF || rmode == RES_ELIF )
next_if_code=rcode; /* can be overwritten a number of times */
- if (rmode == RES_WHILE)
+ if (rmode == RES_WHILE)
flag_rep = !last_return_code;
- if (rmode == RES_UNTIL)
+ if (rmode == RES_UNTIL)
flag_rep = last_return_code;
if ( (rcode==EXIT_SUCCESS && pi->followup==PIPE_OR) ||
(rcode!=EXIT_SUCCESS && pi->followup==PIPE_AND) )
@@ -1723,7 +1723,7 @@ static int free_pipe_list(struct pipe *head, int indent)
pi->next=NULL;
free(pi);
}
- return rcode;
+ return rcode;
}
/* Select which version we will use */
@@ -1732,7 +1732,7 @@ static int run_list(struct pipe *pi)
int rcode=0;
if (fake_mode==0) {
rcode = run_list_real(pi);
- }
+ }
/* free_pipe_list has the side effect of clearing memory
* In the long run that function can be merged with run_list_real,
* but doing that now would hobble the debugging effort. */
@@ -1862,7 +1862,7 @@ static int set_local_var(const char *s, int flg_export)
/* Assume when we enter this function that we are already in
* NAME=VALUE format. So the first order of business is to
- * split 's' on the '=' into 'name' and 'value' */
+ * split 's' on the '=' into 'name' and 'value' */
value = strchr(name, '=');
if (value==0 && ++value==0) {
free(name);
@@ -1991,7 +1991,7 @@ static int setup_redirect(struct p_context *ctx, int fd, redir_type style,
debug_printf("Redirect type %d%s\n", redir->fd, redir_table[style].descrip);
- /* Check for a '2>&1' type redirect */
+ /* Check for a '2>&1' type redirect */
redir->dup = redirect_dup_num(input);
if (redir->dup == -2) return 1; /* syntax error */
if (redir->dup != -1) {
@@ -2377,9 +2377,9 @@ static int parse_group(o_string *dest, struct p_context *ctx,
static char *lookup_param(char *src)
{
char *p=NULL;
- if (src) {
+ if (src) {
p = getenv(src);
- if (!p)
+ if (!p)
p = get_local_var(src);
}
return p;
@@ -2499,7 +2499,7 @@ int parse_stream(o_string *dest, struct p_context *ctx,
if (m==2) { /* unquoted IFS */
if (done_word(dest, ctx)) {
return 1;
- }
+ }
/* If we aren't performing a substitution, treat a newline as a
* command separator. */
if (end_trigger != '\0' && ch=='\n')
@@ -2624,7 +2624,7 @@ int parse_stream(o_string *dest, struct p_context *ctx,
}
/* complain if quote? No, maybe we just finished a command substitution
* that was quoted. Example:
- * $ echo "`cat foo` plus more"
+ * $ echo "`cat foo` plus more"
* and we just got the EOF generated by the subshell that ran "cat foo"
* The only real complaint is if we got an EOF when end_trigger != '\0',
* that is, we were really supposed to get end_trigger, and never got
@@ -2684,7 +2684,7 @@ int parse_stream_outer(struct in_str *inp, int flag)
if (ctx.old_flag != 0) {
free(ctx.stack);
b_reset(&temp);
- }
+ }
temp.nonnull = 0;
temp.quote = 0;
inp->p = NULL;
@@ -2748,9 +2748,9 @@ int hush_main(int argc, char **argv)
/* XXX what should these be while sourcing /etc/profile? */
global_argc = argc;
global_argv = argv;
-
+
/* (re?) initialize globals. Sometimes hush_main() ends up calling
- * hush_main(), therefore we cannot rely on the BSS to zero out this
+ * hush_main(), therefore we cannot rely on the BSS to zero out this
* stuff. Reset these to 0 every time. */
ifs = NULL;
/* map[] is taken care of with call to update_ifs_map() */
@@ -2770,7 +2770,7 @@ int hush_main(int argc, char **argv)
#endif
PS2 = "> ";
- /* initialize our shell local variables with the values
+ /* initialize our shell local variables with the values
* currently living in the environment */
if (e) {
for (; *e; e++)
@@ -2790,7 +2790,7 @@ int hush_main(int argc, char **argv)
}
}
input=stdin;
-
+
while ((opt = getopt(argc, argv, "c:xif")) > 0) {
switch (opt) {
case 'c':
@@ -2832,13 +2832,13 @@ int hush_main(int argc, char **argv)
debug_printf("\ninteractive=%d\n", interactive);
if (interactive) {
/* Looks like they want an interactive shell */
-#ifndef CONFIG_FEATURE_SH_EXTRA_QUIET
+#ifndef CONFIG_FEATURE_SH_EXTRA_QUIET
printf( "\n\n" BB_BANNER " hush - the humble shell v0.01 (testing)\n");
printf( "Enter 'help' for a list of built-in commands.\n\n");
#endif
setup_job_control();
}
-
+
if (argv[optind]==NULL) {
opt=parse_file_outer(stdin);
goto final_return;
@@ -2877,7 +2877,7 @@ static char *insert_var_value(char *inp)
int len;
int done = 0;
char *p, *p1, *res_str = NULL;
-
+
while ((p = strchr(inp, SPECIAL_VAR_SYMBOL))) {
if (p != inp) {
len = p - inp;
@@ -2893,7 +2893,7 @@ static char *insert_var_value(char *inp)
res_str = xrealloc(res_str, (1 + len));
strcpy((res_str + res_str_len), p1);
res_str_len = len;
- }
+ }
*p = SPECIAL_VAR_SYMBOL;
inp = ++p;
done = 1;
@@ -2915,8 +2915,8 @@ static char **make_list_in(char **inp, char *name)
int n = 0;
char **list;
char *p1, *p2, *p3;
-
- /* create list of variable values */
+
+ /* create list of variable values */
list = xmalloc(sizeof(*list));
for (i = 0; inp[i]; i++) {
p3 = insert_var_value(inp[i]);
@@ -2928,13 +2928,13 @@ static char **make_list_in(char **inp, char *name)
}
if ((p2 = strchr(p1, ' '))) {
len = p2 - p1;
- } else {
+ } else {
len = strlen(p1);
p2 = p1 + len;
}
- /* we use n + 2 in realloc for list,because we add
+ /* we use n + 2 in realloc for list,because we add
* new element and then we will add NULL element */
- list = xrealloc(list, sizeof(*list) * (n + 2));
+ list = xrealloc(list, sizeof(*list) * (n + 2));
list[n] = xmalloc(2 + name_len + len);
strcpy(list[n], name);
strcat(list[n], "=");
@@ -2946,7 +2946,7 @@ static char **make_list_in(char **inp, char *name)
}
list[n] = NULL;
return list;
-}
+}
/* Make new string for parser */
static char * make_string(char ** inp)
diff --git a/shell/lash.c b/shell/lash.c
index e4b1b129f..d2d4298fb 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -2,7 +2,7 @@
/*
* lash -- the BusyBox Lame-Ass SHell
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* Based in part on ladsh.c by Michael K. Johnson and Erik W. Troan, which is
* under the following liberal license: "We have placed this source code in the
@@ -927,7 +927,7 @@ static int expand_arguments(char *command)
}
if (var) {
- /* a single character construction was found, and
+ /* a single character construction was found, and
* already handled in the case statement */
src=dst+2;
} else {
@@ -1093,7 +1093,7 @@ static int parse_command(char **command_ptr, struct job *job, int *inbg)
prog->redirects[i].fd = -1;
if (buf != prog->argv[argc_l]) {
- /* the stuff before this character may be the file number
+ /* the stuff before this character may be the file number
being redirected */
prog->redirects[i].fd =
strtol(prog->argv[argc_l], &chptr, 10);
diff --git a/shell/msh.c b/shell/msh.c
index 31dd04f3e..e7059507a 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -23,7 +23,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
+ *
* Original copyright notice is retained at the end of this file.
*/
@@ -770,7 +770,7 @@ extern int msh_main(int argc, char **argv)
if (--argc > 0)
PUSHIO(aword, *++argv, iof = nlchar);
break;
-
+
case 'q':
qflag = SIG_DFL;
break;
@@ -784,7 +784,7 @@ extern int msh_main(int argc, char **argv)
setval(prompt, "");
iof = linechar;
break;
-
+
case 'i':
interactive++;
default:
@@ -809,7 +809,7 @@ extern int msh_main(int argc, char **argv)
PUSHIO(afile, 0, iof);
if (isatty(0) && isatty(1) && !cflag) {
interactive++;
-#ifndef CONFIG_FEATURE_SH_EXTRA_QUIET
+#ifndef CONFIG_FEATURE_SH_EXTRA_QUIET
printf( "\n\n" BB_BANNER " Built-in shell (msh)\n");
printf( "Enter 'help' for a list of built-in commands.\n\n");
#endif
@@ -838,7 +838,7 @@ extern int msh_main(int argc, char **argv)
ap++;
}
}
- }
+ }
setval(lookup("#"), putn((--dolc < 0) ? (dolc = 0) : dolc));
for (;;) {
@@ -2303,7 +2303,7 @@ int act;
#if __GNUC__
/* Avoid longjmp clobbering */
(void) &wp;
-#endif
+#endif
if (t == NULL)
@@ -2318,7 +2318,7 @@ int act;
case TPAREN:
rv = execute(t->left, pin, pout, 0);
break;
-
+
case TCOM:
{
int child;
@@ -2395,7 +2395,7 @@ int act;
} else {
i = -1;
while (*wp++ != NULL)
- ;
+ ;
}
vp = lookup(t->str);
while (setjmp(bc.brkpt))
@@ -2497,7 +2497,7 @@ forkexec( register struct op *t, int *pin, int *pout, int act, char **wp, int *p
(void) &cp;
(void) &resetsig;
(void) &owp;
-#endif
+#endif
owp = wp;
resetsig = 0;
@@ -2532,7 +2532,7 @@ forkexec( register struct op *t, int *pin, int *pout, int act, char **wp, int *p
hintr = intr;
hbrklist = brklist;
hexecflg = execflg;
-
+
i = vfork();
if (i != 0) {
/* who wrote this crappy non vfork safe shit? */
@@ -2563,7 +2563,7 @@ forkexec( register struct op *t, int *pin, int *pout, int act, char **wp, int *p
(*pforked)++;
brklist = 0;
execflg = 0;
- }
+ }
if (owp != NULL)
while ((cp = *owp++) != NULL && assign(cp, COPYV))
if (shcom == NULL)
@@ -2841,7 +2841,7 @@ char *c, **v, **envp;
#endif
optind = 1;
if (find_applet_by_name(name)) {
- /* We have to exec here since we vforked. Running
+ /* We have to exec here since we vforked. Running
* run_applet_by_name() won't work and bad things
* will happen. */
execve("/proc/self/exe", v, envp);
@@ -2964,8 +2964,8 @@ static int dohelp(struct op *t )
for (i=0, applet = applets; i < NUM_APPLETS; applet++, i++) {
if (!applet->name)
continue;
-
- col += printf("%s%s", ((col == 0) ? "\t" : " "),
+
+ col += printf("%s%s", ((col == 0) ? "\t" : " "),
applet->name);
if (col > 60) {
printf("\n");
@@ -3194,7 +3194,7 @@ register struct op *t;
if (n == SIGINT)
setsig(n, onintr);
else
- setsig(n, n == SIGQUIT ? SIG_IGN
+ setsig(n, n == SIGQUIT ? SIG_IGN
: SIG_DFL);
else
setsig(n, SIG_DFL);
@@ -3784,7 +3784,7 @@ int quoted;
/* Avoid longjmp clobbering */
(void) &cp;
#endif
-
+
for (cp = e.iop->argp->aword; *cp != '`'; cp++)
if (*cp == 0) {
err("no closing `");
@@ -3837,7 +3837,7 @@ int quoted;
err("unclosed ${\n");
return(0);
}
- if (operator) {
+ if (operator) {
src++;
while (*src && (*src != '}')) {
alt_value[alt_index++] = *src++;
@@ -3875,7 +3875,7 @@ int quoted;
}
}
*dest = '\0';
-
+
if (openpipe(pf) < 0)
return(0);
while ((i = vfork()) == -1 && errno == EAGAIN)
@@ -3897,7 +3897,7 @@ int quoted;
for (j=0; j<=_NSIG; j++)
if (ourtrap[j] && signal(j, SIG_IGN) != SIG_IGN)
signal(j, SIG_DFL);
-
+
dup2(pf[1], 1);
closepipe(pf);
@@ -4121,7 +4121,7 @@ register struct wdblock *wb;
wb->w_words[wb->w_nword++] = wd;
return(wb);
}
-static
+static
char **
getwords(wb)
register struct wdblock *wb;
@@ -4557,7 +4557,7 @@ register struct ioarg *ap;
c = mycommand[position];
position++;
return(c);
- } else
+ } else
#endif
{
i = safe_read(ap->afile, &c, sizeof(c));
@@ -4858,7 +4858,7 @@ int xdoll;
char c;
char tname[30] = ".msh_XXXXXX";
jmp_buf ev;
-
+
tf = mkstemp(tname);
if (tf < 0)
return (-1);
@@ -4917,24 +4917,24 @@ int area;
/*
* Copyright (c) 1987,1997, Prentice Hall
* All rights reserved.
- *
+ *
* Redistribution and use of the MINIX operating system in source and
* binary forms, with or without modification, are permitted provided
* that the following conditions are met:
- *
+ *
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
- *
+ *
* Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
- *
+ *
* Neither the name of Prentice Hall nor the names of the software
* authors or contributors may be used to endorse or promote
* products derived from this software without specific prior
* written permission.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS, AUTHORS, AND
* CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
diff --git a/sysdeps/linux/Config.in b/sysdeps/linux/Config.in
index 2559965f2..d288cc58c 100644
--- a/sysdeps/linux/Config.in
+++ b/sysdeps/linux/Config.in
@@ -101,7 +101,7 @@ config CONFIG_FEATURE_SUID_CONFIG
checking /etc/busybox.conf. The format of this file is as follows:
<applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
-
+
An example might help:
[SUID]
@@ -147,8 +147,8 @@ config CONFIG_STATIC
bool "Build BusyBox as a static binary (no shared libs)"
default n
help
- If you want to build a static BusyBox binary, which does not
- use or require any shared libraries, then enable this option.
+ If you want to build a static BusyBox binary, which does not
+ use or require any shared libraries, then enable this option.
This can cause BusyBox to be considerably larger, so you should
leave this option false unless you have a good reason (i.e.
your target platform does not support shared libraries, or
@@ -158,7 +158,7 @@ config CONFIG_STATIC
Most people will leave this set to 'N'.
config CONFIG_LFS
- bool "Build with Large File Support (for accessing files > 2 GB)"
+ bool "Build with Large File Support (for accessing files > 2 GB)"
default n
help
If you want to build BusyBox with large file support, then enable
@@ -180,7 +180,7 @@ config CROSS_COMPILER_PREFIX
default "/usr/i386-linux-uclibc/bin/i386-uclibc-"
depends on USING_CROSS_COMPILER
help
- If you want to build BusyBox with a cross compiler, then you
+ If you want to build BusyBox with a cross compiler, then you
will need to set this to the cross-compiler prefix. For example,
if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc
then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
@@ -240,7 +240,7 @@ config CONFIG_DEBUG
help
Say Y here if you wish to compile BusyBox with debugging symbols.
This will allow you to use a debugger to examine BusyBox internals
- while applets are running. This increases the size of the binary
+ while applets are running. This increases the size of the binary
considerably and should only be used when doing development.
If you are doing development and want to debug BusyBox, answer Y.
@@ -261,7 +261,7 @@ config CONFIG_DMALLOC
-p check-fence -p check-heap -p check-lists -p check-blank \
-p check-funcs -p realloc-copy -p allow-free-null
- This will make BusyBox be considerable larger and run slower, so
+ This will make BusyBox be considerable larger and run slower, so
you should leave this option disabled for production use.
config CONFIG_EFENCE
@@ -271,9 +271,9 @@ config CONFIG_EFENCE
help
This enables compiling with Electric-fence support. Electric
fence is another very useful malloc debugging library which uses
- your computer's virtual memory hardware to detect illegal memory
- accesses. This support will make BusyBox be considerable larger
- and run slower, so you should leave this option disabled unless
+ your computer's virtual memory hardware to detect illegal memory
+ accesses. This support will make BusyBox be considerable larger
+ and run slower, so you should leave this option disabled unless
you are hunting a hard to find memory problem.
endmenu
diff --git a/sysklogd/Config.in b/sysklogd/Config.in
index a671f59f1..f77d79e8c 100644
--- a/sysklogd/Config.in
+++ b/sysklogd/Config.in
@@ -79,10 +79,10 @@ config CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING
default n
depends on CONFIG_LOGREAD
help
- 'logread' ouput to slow serial terminals can have
+ 'logread' ouput to slow serial terminals can have
side effects on syslog because of the semaphore.
- This option make logread to double buffer copy
- from circular buffer, minimizing semaphore
+ This option make logread to double buffer copy
+ from circular buffer, minimizing semaphore
contention at some minor memory expense.
config CONFIG_KLOGD
diff --git a/sysklogd/Makefile b/sysklogd/Makefile
index 0c01f546f..f6ce14530 100644
--- a/sysklogd/Makefile
+++ b/sysklogd/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/sysklogd/Makefile.in b/sysklogd/Makefile.in
index d088ae855..1c6e90774 100644
--- a/sysklogd/Makefile.in
+++ b/sysklogd/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index df3a668dd..94da61658 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -6,7 +6,7 @@
* Changes: Made this a standalone busybox module which uses standalone
* syslog() client interface.
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* Copyright (C) 2000 by Karl M. Hegbloom <karlheg@debian.org>
*
@@ -136,7 +136,7 @@ extern int klogd_main(int argc, char **argv)
bb_show_usage();
}
console_log_level++;
-
+
break;
case 'n':
doFork = FALSE;
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 252cfc494..981cef322 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -2,7 +2,7 @@
/*
* Mini logger implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -49,11 +49,11 @@
# endif
#endif
-/* Decode a symbolic name to a numeric value
+/* Decode a symbolic name to a numeric value
* this function is based on code
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
- *
+ *
* Original copyright notice is retained at the end of this file.
*/
static int decode(char *name, CODE * codetab)
@@ -71,7 +71,7 @@ static int decode(char *name, CODE * codetab)
return (-1);
}
-/* Decode a symbolic name to a numeric value
+/* Decode a symbolic name to a numeric value
* this function is based on code
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -132,7 +132,7 @@ extern int logger_main(int argc, char **argv)
do {
/* read from stdin */
i = 0;
- while ((c = getc(stdin)) != EOF && c != '\n' &&
+ while ((c = getc(stdin)) != EOF && c != '\n' &&
i < (sizeof(buf)-1)) {
buf[i++] = c;
}
@@ -180,8 +180,8 @@ extern int logger_main(int argc, char **argv)
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
+ * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
+ * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
*
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
diff --git a/sysklogd/logread.c b/sysklogd/logread.c
index 207e78b57..70d1db631 100644
--- a/sysklogd/logread.c
+++ b/sysklogd/logread.c
@@ -62,13 +62,13 @@ static void interrupted(int sig);
*/
static inline void sem_up(int semid)
{
- if ( semop(semid, SMrup, 1) == -1 )
+ if ( semop(semid, SMrup, 1) == -1 )
error_exit("semop[SMrup]");
}
/*
* sem_down - down()'s a semaphore
- */
+ */
static inline void sem_down(int semid)
{
if ( semop(semid, SMrdn, 2) == -1 )
@@ -79,7 +79,7 @@ extern int logread_main(int argc, char **argv)
{
int i;
int follow=0;
-
+
if (argc == 2 && strcmp(argv[1],"-f")==0) {
follow = 1;
} else {
@@ -87,16 +87,16 @@ extern int logread_main(int argc, char **argv)
if (argc > 1)
bb_show_usage();
}
-
+
// handle intrrupt signal
if (setjmp(jmp_env)) goto output_end;
-
+
// attempt to redefine ^C signal
signal(SIGINT, interrupted);
-
+
if ( (log_shmid = shmget(KEY_ID, 0, 0)) == -1)
error_exit("Can't find circular buffer");
-
+
// Attach shared memory to our char*
if ( (buf = shmat(log_shmid, NULL, SHM_RDONLY)) == NULL)
error_exit("Can't get access to circular buffer from syslogd");
@@ -113,7 +113,7 @@ extern int logread_main(int argc, char **argv)
int log_len,j;
#endif
- sem_down(log_semid);
+ sem_down(log_semid);
//printf("head: %i tail: %i size: %i\n",buf->head,buf->tail,buf->size);
if (buf->head == buf->tail || i==buf->tail) {
@@ -125,8 +125,8 @@ extern int logread_main(int argc, char **argv)
printf("<empty syslog>\n");
}
}
-
- // Read Memory
+
+ // Read Memory
#ifdef CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING
log_len = buf->tail - i;
if (log_len < 0)
@@ -165,10 +165,10 @@ extern int logread_main(int argc, char **argv)
} while (follow);
output_end:
- if (log_shmid != -1)
+ if (log_shmid != -1)
shmdt(buf);
-
- return EXIT_SUCCESS;
+
+ return EXIT_SUCCESS;
}
static void interrupted(int sig){
@@ -179,7 +179,7 @@ static void interrupted(int sig){
static void error_exit(const char *str){
perror(str);
//release all acquired resources
- if (log_shmid != -1)
+ if (log_shmid != -1)
shmdt(buf);
exit(1);
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index a533bce6b..ac326aa00 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -2,7 +2,7 @@
/*
* Mini syslogd implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* Copyright (C) 2000 by Karl M. Hegbloom <karlheg@debian.org>
*
diff --git a/tests/multibuild.pl b/tests/multibuild.pl
index a3e49a625..301ed3500 100755
--- a/tests/multibuild.pl
+++ b/tests/multibuild.pl
@@ -6,7 +6,7 @@
# flush out are those involving preprocessor instructions in
# utility.c.
#
-# TODO: some time it might be nice to list absolute and
+# TODO: some time it might be nice to list absolute and
# differential object sizes for each option...
#
diff --git a/tests/tester.sh b/tests/tester.sh
index 09ba750ec..a17762f05 100755
--- a/tests/tester.sh
+++ b/tests/tester.sh
@@ -87,7 +87,7 @@ unalias -a # gets rid of aliases that might create different output
# do extra setup (if any)
-if [ ! -z "$SETUP" ]
+if [ ! -z "$SETUP" ]
then
[ $DEBUG -ge 2 ] && echo "running setup commands in $SETUP"
source $SETUP
@@ -136,7 +136,7 @@ do
if [ $? -eq 1 ]
then
[ $DEBUG -ge 1 ] && echo "FAILED: $line" | tee -a $LOGFILE
- diff -u $CONFIG_OUT $GNU_OUT >> $LOGFILE
+ diff -u $CONFIG_OUT $GNU_OUT >> $LOGFILE
fi
fi
fi
@@ -151,7 +151,7 @@ done
# do extra cleanup (if any)
-if [ ! -z "$CLEANUP" ]
+if [ ! -z "$CLEANUP" ]
then
[ $DEBUG -ge 2 ] && echo "running cleanup commands in $CLEANUP"
source $CLEANUP
diff --git a/util-linux/Config.in b/util-linux/Config.in
index 2bb9c09cc..c97e5c436 100644
--- a/util-linux/Config.in
+++ b/util-linux/Config.in
@@ -71,7 +71,7 @@ config CONFIG_FDISK
help
The fdisk utility is used to divide hard disks into one or more
logical disks, which are generally called partitions. This utility
- can be used to list and edit the set of partitions or BSD style
+ can be used to list and edit the set of partitions or BSD style
'disk slices' that are defined on a hard drive.
if !CONFIG_LFS
@@ -84,7 +84,7 @@ config FDISK_SUPPORT_LARGE_DISKS
endif
config CONFIG_FEATURE_FDISK_WRITABLE
- bool " Write support"
+ bool " Write support"
default y
depends on CONFIG_FDISK
help
@@ -95,7 +95,7 @@ config CONFIG_FEATURE_FDISK_WRITABLE
config CONFIG_FEATURE_AIX_LABEL
bool " Support AIX disklabels"
default n
- depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
+ depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
help
Enabling this option allows you to create or change AIX disklabels.
Most people can safely leave this option disabled.
@@ -111,7 +111,7 @@ config CONFIG_FEATURE_SGI_LABEL
config CONFIG_FEATURE_SUN_LABEL
bool " Support SUN disklabels"
default n
- depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
+ depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
help
Enabling this option allows you to create or change SUN disklabels.
Most people can safely leave this option disabled.
@@ -267,7 +267,7 @@ config CONFIG_RDATE
bool "rdate"
default n
help
- The rdate utility allows you to synchronize the date and time of your
+ The rdate utility allows you to synchronize the date and time of your
system clock with the date and time of a remote networked system using
the RFC868 protocol, which is built into the inetd daemon on most
systems.
diff --git a/util-linux/Makefile b/util-linux/Makefile
index d2e496231..f2e2021f0 100644
--- a/util-linux/Makefile
+++ b/util-linux/Makefile
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/util-linux/Makefile.in b/util-linux/Makefile.in
index 8cd5f1bd0..f56d57464 100644
--- a/util-linux/Makefile.in
+++ b/util-linux/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for busybox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index b7d17840f..2ca882714 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -10,8 +10,8 @@
* 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
* - added Native Language Support
*
- * from util-linux -- adapted for busybox by
- * Erik Andersen <andersen@codepoet.org>. I ripped out Native Language
+ * from util-linux -- adapted for busybox by
+ * Erik Andersen <andersen@codepoet.org>. I ripped out Native Language
* Support, replaced getopt, added some gotos for redundant stuff.
*
* Audited and cleaned up on 7 March 2003 to reduce size of
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index b5f57b1e4..83bf309a3 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -20,7 +20,7 @@
*
* This is a from-scratch implementation of fbset; but the de facto fbset
* implementation was a good reference. fbset (original) is released under
- * the GPL, and is (c) 1995-1999 by:
+ * the GPL, and is (c) 1995-1999 by:
* Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
*/
@@ -89,8 +89,8 @@ static const int FBIOPUT_VSCREENINFO = 0x4601;
struct fb_bitfield {
uint32_t offset; /* beginning of bitfield */
uint32_t length; /* length of bitfield */
- uint32_t msb_right; /* != 0 : Most significant bit is */
- /* right */
+ uint32_t msb_right; /* != 0 : Most significant bit is */
+ /* right */
};
struct fb_var_screeninfo {
uint32_t xres; /* visible resolution */
@@ -106,7 +106,7 @@ struct fb_var_screeninfo {
struct fb_bitfield red; /* bitfield in fb mem if true color, */
struct fb_bitfield green; /* else only length is significant */
struct fb_bitfield blue;
- struct fb_bitfield transp; /* transparency */
+ struct fb_bitfield transp; /* transparency */
uint32_t nonstd; /* != 0 Non standard pixel format */
@@ -210,13 +210,13 @@ static int readmode(struct fb_var_screeninfo *base, const char *fn,
if ((p = strstr(buf, "geometry "))) {
p += 9;
- sscanf(p, "%d %d %d %d %d",
- &(base->xres), &(base->yres),
- &(base->xres_virtual), &(base->yres_virtual),
+ sscanf(p, "%d %d %d %d %d",
+ &(base->xres), &(base->yres),
+ &(base->xres_virtual), &(base->yres_virtual),
&(base->bits_per_pixel));
} else if ((p = strstr(buf, "timings "))) {
p += 8;
-
+
sscanf(p, "%d %d %d %d %d %d %d",
&(base->pixclock),
&(base->left_margin), &(base->right_margin),
@@ -271,7 +271,7 @@ static int readmode(struct fb_var_screeninfo *base, const char *fn,
base->sync |= FB_SYNC_EXT;
}
}
-
+
if (strstr(buf, "endmode"))
return 1;
}
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 2374960df..f35aeb9f3 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -52,7 +52,7 @@
#define BLKSSZGET _IO(0x12,104) /* get block device sector size */
/* Avoid conflicts with the 2.6 kernel headers, which define
- * _IOR rather differently */
+ * _IOR rather differently */
#undef _IOR
#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
#define BLKGETSIZE64 _IOR(0x12,114,uint64_t)
@@ -4279,7 +4279,7 @@ read_int(uint low, uint dflt, uint high, uint base, char *mesg)
while (isdigit(*++line_ptr))
use_default = 0;
-
+
switch (*line_ptr) {
case 'c':
case 'C':
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 38267e61e..e5061dc34 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -45,7 +45,7 @@ freeramdisk_main(int argc, char **argv)
}
fd = bb_xopen(argv[1], O_RDWR);
-
+
result = ioctl(fd, BLKFLSBUF);
#ifdef CONFIG_FEATURE_CLEAN_UP
close(fd);
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 4d07e028f..709a2a143 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -49,7 +49,7 @@
* 01.07.96 - Fixed the v2 fs stuff to use the right #defines and such
* for modern libcs (janl@math.uio.no, Nicolai Langfeldt)
*
- * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk
+ * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk
* (Russell King). He made them for ARM. It would seem
* that the ARM is powerful enough to do this in C whereas
* i386 and m64k must use assembly to get it fast >:-)
@@ -57,7 +57,7 @@
* (janl@math.uio.no, Nicolai Langfeldt)
*
* 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler
- * warnings. Added mc68k bitops from
+ * warnings. Added mc68k bitops from
* Joerg Dorchain <dorchain@mpi-sb.mpg.de>.
*
* 06.11.96 - Added v2 code submitted by Joerg Dorchain, but written by
@@ -83,7 +83,7 @@
* -f force filesystem check even if filesystem marked as valid
*
* The device may be a block device or a image of one, but this isn't
- * enforced (but it's not much fun on a character device :-).
+ * enforced (but it's not much fun on a character device :-).
*/
#include <stdio.h>
@@ -1312,7 +1312,7 @@ static void free_name_list(void)
{
int i;
- if (name_list) {
+ if (name_list) {
for (i = 0; i < MAX_DEPTH; i++) {
free(name_list[i]);
}
@@ -1396,7 +1396,7 @@ extern int fsck_minix_main(int argc, char **argv)
/*
* Determine whether or not we should continue with the checking.
* This is based on the status of the filesystem valid and error
- * flags and whether or not the -f switch was specified on the
+ * flags and whether or not the -f switch was specified on the
* command line.
*/
printf("%s, %s\n", bb_applet_name, program_version);
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index e089b1d81..fae511f9c 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -46,7 +46,7 @@ struct linux_rtc_time {
int tm_yday;
int tm_isdst;
};
-
+
#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
@@ -71,17 +71,17 @@ static time_t read_rtc(int utc)
if ( ioctl ( rtc, RTC_RD_TIME, &tm ) < 0 )
bb_perror_msg_and_die ( "Could not read time from RTC" );
tm. tm_isdst = -1; // not known
-
+
close ( rtc );
- if ( utc ) {
+ if ( utc ) {
oldtz = getenv ( "TZ" );
setenv ( "TZ", "UTC 0", 1 );
tzset ( );
}
-
+
t = mktime ( &tm );
-
+
if ( utc ) {
if ( oldtz )
setenv ( "TZ", oldtz, 1 );
@@ -101,13 +101,13 @@ static void write_rtc(time_t t, int utc)
if (( rtc = open ( "/dev/misc/rtc", O_WRONLY )) < 0 )
bb_perror_msg_and_die ( "Could not access RTC" );
}
-
+
tm = *( utc ? gmtime ( &t ) : localtime ( &t ));
tm. tm_isdst = 0;
-
+
if ( ioctl ( rtc, RTC_SET_TIME, &tm ) < 0 )
bb_perror_msg_and_die ( "Could not set the RTC time" );
-
+
close ( rtc );
}
@@ -117,16 +117,16 @@ static int show_clock(int utc)
time_t t;
char buffer [64];
- t = read_rtc ( utc );
+ t = read_rtc ( utc );
ptm = localtime ( &t ); /* Sets 'tzname[]' */
-
+
safe_strncpy ( buffer, ctime ( &t ), sizeof( buffer ));
if ( buffer [0] )
buffer [bb_strlen ( buffer ) - 1] = 0;
-
+
//printf ( "%s %.6f seconds %s\n", buffer, 0.0, utc ? "" : ( ptm-> tm_isdst ? tzname [1] : tzname [0] ));
printf ( "%s %.6f seconds\n", buffer, 0.0 );
-
+
return 0;
}
@@ -134,7 +134,7 @@ static int to_sys_clock(int utc)
{
struct timeval tv = { 0, 0 };
const struct timezone tz = { timezone/60 - 60*daylight, 0 };
-
+
tv. tv_sec = read_rtc ( utc );
if ( settimeofday ( &tv, &tz ))
@@ -160,18 +160,18 @@ static int check_utc(void)
{
int utc = 0;
FILE *f = fopen ( "/var/lib/hwclock/adjtime", "r" );
-
+
if ( f ) {
char buffer [128];
-
+
while ( fgets ( buffer, sizeof( buffer ), f )) {
int len = bb_strlen ( buffer );
-
+
while ( len && isspace ( buffer [len - 1] ))
len--;
-
+
buffer [len] = 0;
-
+
if ( strncmp ( buffer, "UTC", 3 ) == 0 ) {
utc = 1;
break;
@@ -224,6 +224,6 @@ static const struct option hwclock_long_options[] = {
return from_sys_clock ( utc );
} else {
/* default HWCLOCK_OPT_SHOW */
- return show_clock ( utc );
+ return show_clock ( utc );
}
}
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index 0f72b3592..3c140ef2a 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -35,7 +35,7 @@
*
* 30.10.94 - added support for v2 filesystem
* (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de)
- *
+ *
* 09.11.94 - Added test to prevent overwrite of mounted fs adapted
* from Theodore Ts'o's (tytso@athena.mit.edu) mke2fs
* program. (Daniel Quinlan, quinlan@yggdrasil.com)
@@ -56,7 +56,7 @@
* -v for v2 filesystem
*
* The device may be a block device or a image of one, but this isn't
- * enforced (but it's not much fun on a character device :-).
+ * enforced (but it's not much fun on a character device :-).
*
* Modified for BusyBox by Erik Andersen <andersen@debian.org> --
* removed getopt based parser and added a hand rolled one.
@@ -702,7 +702,7 @@ extern int mkfs_minix_main(int argc, char **argv)
if (INODE_SIZE2 * MINIX2_INODES_PER_BLOCK != BLOCK_SIZE)
bb_error_msg_and_die("bad inode size");
#endif
-
+
/* Parse options */
argv++;
while (--argc >= 0 && *argv && **argv) {
@@ -755,7 +755,7 @@ extern int mkfs_minix_main(int argc, char **argv)
magic = MINIX_SUPER_MAGIC;
else if (i == 30)
magic = MINIX_SUPER_MAGIC2;
- else
+ else
bb_show_usage();
namelen = i;
dirsize = i + 2;
diff --git a/util-linux/more.c b/util-linux/more.c
index e3a1d8656..d7b7ce22f 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -3,10 +3,10 @@
* Mini more implementation for busybox
*
* Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* Latest version blended together by Erik Andersen <andersen@codepoet.org>,
- * based on the original more implementation by Bruce, and code from the
+ * based on the original more implementation by Bruce, and code from the
* Debian boot-floppies team.
*
* Termios corrects by Vladimir Oleynik <dzo@simtreas.ru>
@@ -101,7 +101,7 @@ extern int more_main(int argc, char **argv)
file = bb_wfopen(*argv, "r");
if(file==0)
goto loop;
-
+
st.st_size = 0;
fstat(fileno(file), &st);
@@ -158,7 +158,7 @@ extern int more_main(int argc, char **argv)
goto end;
}
- /*
+ /*
* There are two input streams to worry about here:
*
* c : the character we are reading from the file being "mored"
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 8a1f4a11a..098e63663 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -3,7 +3,7 @@
* Mini mount implementation for busybox
*
* Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -27,8 +27,8 @@
*
* 1999-10-07 Erik Andersen <andersen@codepoet.org>.
* Rewrite of a lot of code. Removed mtab usage (I plan on
- * putting it back as a compile-time option some time),
- * major adjustments to option parsing, and some serious
+ * putting it back as a compile-time option some time),
+ * major adjustments to option parsing, and some serious
* dieting all around.
*
* 1999-11-06 mtab suppport is back - andersee
@@ -40,8 +40,8 @@
* Rewrote fstab while loop and lower mount section. Can now do
* single mounts from fstab. Can override fstab options for single
* mount. Common mount_one call for single mounts and 'all'. Fixed
- * mtab updating and stale entries. Removed 'remount' default.
- *
+ * mtab updating and stale entries. Removed 'remount' default.
+ *
*/
#include <limits.h>
@@ -289,7 +289,7 @@ static int mount_one(char *blockDevice, char *directory, char *filesystemType,
}
if (read_proc && !status) {
-
+
f = bb_xfopen("/proc/filesystems", "r");
while (fgets(buf, sizeof(buf), f) != NULL) {
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index 4241f79f5..34f23f5aa 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -24,7 +24,7 @@
*
* 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
* - added Native Language Support
- *
+ *
* Modified by Olaf Kirch and Trond Myklebust for new NFS code,
* plus NFSv3 stuff.
*/
@@ -95,7 +95,7 @@ enum nfs_stat {
NFSERR_BADTYPE = 10007, /* v3 */
NFSERR_JUKEBOX = 10008 /* v3 */
};
-
+
#define NFS_PROGRAM 100003
@@ -445,7 +445,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
for (opt = strtok(old_opts, ","); opt; opt = strtok(NULL, ",")) {
if ((opteq = strchr(opt, '='))) {
- val = atoi(opteq + 1);
+ val = atoi(opteq + 1);
*opteq = '\0';
if (!strcmp(opt, "rsize"))
data.rsize = val;
@@ -515,9 +515,9 @@ int nfsmount(const char *spec, const char *node, int *flags,
val = 0;
opt += 2;
}
- if (!strcmp(opt, "bg"))
+ if (!strcmp(opt, "bg"))
bg = val;
- else if (!strcmp(opt, "fg"))
+ else if (!strcmp(opt, "fg"))
bg = !val;
else if (!strcmp(opt, "soft"))
soft = val;
@@ -872,7 +872,7 @@ fail:
if (fsock != -1)
close(fsock);
return retval;
-}
+}
/*
* We need to translate between nfs status return values and
diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c
index 39453a261..85e180c46 100644
--- a/util-linux/pivot_root.c
+++ b/util-linux/pivot_root.c
@@ -4,7 +4,7 @@
*
* busyboxed by Evin Robertson
* pivot_root syscall stubbed by Erik Andersen, so it will compile
- * regardless of the kernel being used.
+ * regardless of the kernel being used.
*/
#include <stdlib.h>
#include <stdio.h>
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 9da70756e..7c7031bce 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -2,8 +2,7 @@
/*
* Mini swapon/swapoff implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 5df597028..37a8f061e 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -2,7 +2,7 @@
/*
* Mini umount implementation for busybox
*
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@
#include <stdlib.h>
#include "busybox.h"
-/* Teach libc5 about realpath -- it includes it but the
+/* Teach libc5 about realpath -- it includes it but the
* prototype is missing... */
#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)
extern char *realpath(const char *path, char *resolved_path);
@@ -148,7 +148,7 @@ static char *mtab_first(void **iter)
return mtab_next(iter);
}
-/* Don't bother to clean up, since exit() does that
+/* Don't bother to clean up, since exit() does that
* automagically, so we can save a few bytes */
#ifdef CONFIG_FEATURE_CLEAN_UP
static void mtab_free(void)