aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-26 19:00:18 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-26 19:00:18 +0000
commitb6adbf1be29841501cc49917249e85f273e1df7c (patch)
treee28a5603e6009b2479e949b8b9b4aa0620fed400
parent5a6aeddfa7262e41802c77f70c9ef88e9c2c2476 (diff)
downloadbusybox-w32-b6adbf1be29841501cc49917249e85f273e1df7c.tar.gz
busybox-w32-b6adbf1be29841501cc49917249e85f273e1df7c.tar.bz2
busybox-w32-b6adbf1be29841501cc49917249e85f273e1df7c.zip
usage.c: remove reference to busybox.h
*: s/include "busybox.h"/include "libbb.h"
-rw-r--r--applets/usage.c1
-rw-r--r--archival/ar.c2
-rw-r--r--archival/bbunzip.c2
-rw-r--r--archival/cpio.c2
-rw-r--r--archival/dpkg.c2
-rw-r--r--archival/dpkg_deb.c2
-rw-r--r--archival/gzip.c2
-rw-r--r--archival/rpm.c2
-rw-r--r--archival/rpm2cpio.c2
-rw-r--r--archival/tar.c2
-rw-r--r--archival/unzip.c2
-rw-r--r--console-tools/chvt.c2
-rw-r--r--console-tools/clear.c2
-rw-r--r--console-tools/deallocvt.c2
-rw-r--r--console-tools/dumpkmap.c2
-rw-r--r--console-tools/loadfont.c2
-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/resize.c2
-rw-r--r--console-tools/setconsole.c2
-rw-r--r--console-tools/setkeycodes.c2
-rw-r--r--console-tools/setlogcons.c2
-rw-r--r--coreutils/basename.c2
-rw-r--r--coreutils/cal.c2
-rw-r--r--coreutils/cat.c2
-rw-r--r--coreutils/catv.c2
-rw-r--r--coreutils/chgrp.c2
-rw-r--r--coreutils/chmod.c2
-rw-r--r--coreutils/chown.c2
-rw-r--r--coreutils/chroot.c2
-rw-r--r--coreutils/cksum.c2
-rw-r--r--coreutils/cmp.c2
-rw-r--r--coreutils/comm.c2
-rw-r--r--coreutils/cp.c2
-rw-r--r--coreutils/cut.c2
-rw-r--r--coreutils/date.c2
-rw-r--r--coreutils/dd.c2
-rw-r--r--coreutils/df.c2
-rw-r--r--coreutils/diff.c2
-rw-r--r--coreutils/dirname.c2
-rw-r--r--coreutils/dos2unix.c2
-rw-r--r--coreutils/du.c2
-rw-r--r--coreutils/echo.c2
-rw-r--r--coreutils/env.c4
-rw-r--r--coreutils/expr.c2
-rw-r--r--coreutils/false.c2
-rw-r--r--coreutils/fold.c2
-rw-r--r--coreutils/head.c2
-rw-r--r--coreutils/hostid.c2
-rw-r--r--coreutils/id.c2
-rw-r--r--coreutils/install.c5
-rw-r--r--coreutils/length.c2
-rw-r--r--coreutils/ln.c2
-rw-r--r--coreutils/logname.c2
-rw-r--r--coreutils/ls.c2
-rw-r--r--coreutils/md5_sha1_sum.c2
-rw-r--r--coreutils/mkdir.c2
-rw-r--r--coreutils/mkfifo.c2
-rw-r--r--coreutils/mknod.c2
-rw-r--r--coreutils/mv.c2
-rw-r--r--coreutils/nice.c2
-rw-r--r--coreutils/nohup.c2
-rw-r--r--coreutils/od.c2
-rw-r--r--coreutils/od_bloaty.c3
-rw-r--r--coreutils/printenv.c2
-rw-r--r--coreutils/printf.c2
-rw-r--r--coreutils/pwd.c2
-rw-r--r--coreutils/realpath.c2
-rw-r--r--coreutils/rm.c2
-rw-r--r--coreutils/rmdir.c2
-rw-r--r--coreutils/seq.c2
-rw-r--r--coreutils/sleep.c2
-rw-r--r--coreutils/sort.c2
-rw-r--r--coreutils/split.c2
-rw-r--r--coreutils/stat.c2
-rw-r--r--coreutils/stty.c2
-rw-r--r--coreutils/sum.c2
-rw-r--r--coreutils/sync.c2
-rw-r--r--coreutils/tail.c2
-rw-r--r--coreutils/tee.c2
-rw-r--r--coreutils/test.c2
-rw-r--r--coreutils/touch.c2
-rw-r--r--coreutils/tr.c2
-rw-r--r--coreutils/true.c2
-rw-r--r--coreutils/tty.c2
-rw-r--r--coreutils/uname.c2
-rw-r--r--coreutils/uniq.c2
-rw-r--r--coreutils/usleep.c2
-rw-r--r--coreutils/uudecode.c2
-rw-r--r--coreutils/uuencode.c2
-rw-r--r--coreutils/watch.c2
-rw-r--r--coreutils/wc.c2
-rw-r--r--coreutils/who.c2
-rw-r--r--coreutils/whoami.c2
-rw-r--r--coreutils/yes.c2
-rw-r--r--debianutils/mktemp.c2
-rw-r--r--debianutils/pipe_progress.c2
-rw-r--r--debianutils/readlink.c6
-rw-r--r--debianutils/run_parts.c4
-rw-r--r--debianutils/start_stop_daemon.c3
-rw-r--r--debianutils/which.c2
-rw-r--r--docs/new-applet-HOWTO.txt4
-rw-r--r--e2fsprogs/chattr.c2
-rw-r--r--e2fsprogs/fsck.c2
-rw-r--r--e2fsprogs/lsattr.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/e2fsck.h2
-rw-r--r--e2fsprogs/old_e2fsprogs/e2p/e2p.h2
-rw-r--r--e2fsprogs/old_e2fsprogs/fsck.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/tune2fs.c2
-rw-r--r--editors/awk.c2
-rw-r--r--editors/ed.c2
-rw-r--r--editors/patch.c6
-rw-r--r--editors/sed.c2
-rw-r--r--editors/vi.c2
-rw-r--r--findutils/find.c2
-rw-r--r--findutils/grep.c2
-rw-r--r--findutils/xargs.c2
-rw-r--r--init/halt.c2
-rw-r--r--init/init.c2
-rw-r--r--init/mesg.c2
-rw-r--r--ipsvd/ipsvd_perhost.c2
-rw-r--r--ipsvd/tcpudp.c2
-rw-r--r--libbb/getopt32.c2
-rw-r--r--libbb/lineedit.c2
-rw-r--r--libbb/selinux_common.c2
-rw-r--r--libbb/xfuncs.c2
-rw-r--r--libpwdgrp/uidgid_get.c2
-rw-r--r--loginutils/addgroup.c2
-rw-r--r--loginutils/adduser.c2
-rw-r--r--loginutils/cryptpw.c2
-rw-r--r--loginutils/deluser.c2
-rw-r--r--loginutils/getty.c2
-rw-r--r--loginutils/login.c2
-rw-r--r--loginutils/passwd.c2
-rw-r--r--loginutils/su.c2
-rw-r--r--loginutils/sulogin.c2
-rw-r--r--loginutils/vlock.c2
-rw-r--r--miscutils/adjtimex.c2
-rw-r--r--miscutils/bbconfig.c2
-rw-r--r--miscutils/chrt.c2
-rw-r--r--miscutils/crond.c2
-rw-r--r--miscutils/crontab.c2
-rw-r--r--miscutils/dc.c2
-rw-r--r--miscutils/devfsd.c2
-rw-r--r--miscutils/eject.c2
-rw-r--r--miscutils/hdparm.c2
-rw-r--r--miscutils/last.c2
-rw-r--r--miscutils/less.c2
-rw-r--r--miscutils/makedevs.c2
-rw-r--r--miscutils/mountpoint.c2
-rw-r--r--miscutils/mt.c2
-rw-r--r--miscutils/nmeter.c2
-rw-r--r--miscutils/raidautorun.c2
-rw-r--r--miscutils/readahead.c2
-rw-r--r--miscutils/runlevel.c2
-rw-r--r--miscutils/rx.c2
-rw-r--r--miscutils/setsid.c2
-rw-r--r--miscutils/strings.c6
-rw-r--r--miscutils/taskset.c2
-rw-r--r--miscutils/time.c2
-rw-r--r--miscutils/watchdog.c2
-rw-r--r--modutils/insmod.c2
-rw-r--r--modutils/lsmod.c2
-rw-r--r--modutils/modprobe.c2
-rw-r--r--modutils/rmmod.c2
-rw-r--r--networking/arp.c2
-rw-r--r--networking/arping.c2
-rw-r--r--networking/dnsd.c2
-rw-r--r--networking/ether-wake.c2
-rw-r--r--networking/ftpgetput.c2
-rw-r--r--networking/hostname.c2
-rw-r--r--networking/httpd.c2
-rw-r--r--networking/ifconfig.c2
-rw-r--r--networking/ifupdown.c3
-rw-r--r--networking/inetd.c2
-rw-r--r--networking/interface.c2
-rw-r--r--networking/ip.c2
-rw-r--r--networking/ipcalc.c4
-rw-r--r--networking/isrv.c2
-rw-r--r--networking/isrv_identd.c2
-rw-r--r--networking/libiproute/ip_common.h2
-rw-r--r--networking/nameif.c2
-rw-r--r--networking/nc.c2
-rw-r--r--networking/nc_bloaty.c2
-rw-r--r--networking/netstat.c2
-rw-r--r--networking/nslookup.c2
-rw-r--r--networking/ping.c2
-rw-r--r--networking/route.c5
-rw-r--r--networking/telnet.c2
-rw-r--r--networking/telnetd.c2
-rw-r--r--networking/tftp.c2
-rw-r--r--networking/traceroute.c2
-rw-r--r--networking/udhcp/common.h2
-rw-r--r--networking/vconfig.c2
-rw-r--r--networking/wget.c2
-rw-r--r--networking/zcip.c2
-rw-r--r--procps/free.c2
-rw-r--r--procps/fuser.c2
-rw-r--r--procps/kill.c2
-rw-r--r--procps/pidof.c2
-rw-r--r--procps/ps.c2
-rw-r--r--procps/renice.c2
-rw-r--r--procps/sysctl.c2
-rw-r--r--procps/top.c2
-rw-r--r--procps/uptime.c2
-rw-r--r--runit/chpst.c2
-rw-r--r--runit/runsv.c2
-rw-r--r--runit/runsvdir.c2
-rw-r--r--runit/sv.c2
-rw-r--r--runit/svlogd.c2
-rw-r--r--selinux/chcon.c3
-rw-r--r--selinux/getenforce.c2
-rw-r--r--selinux/getsebool.c2
-rw-r--r--selinux/load_policy.c2
-rw-r--r--selinux/matchpathcon.c2
-rw-r--r--selinux/runcon.c3
-rw-r--r--selinux/selinuxenabled.c2
-rw-r--r--selinux/setenforce.c2
-rw-r--r--shell/ash.c2
-rw-r--r--shell/bbsh.c2
-rw-r--r--shell/hush.c5
-rw-r--r--shell/lash.c5
-rw-r--r--sysklogd/klogd.c2
-rw-r--r--sysklogd/logger.c2
-rw-r--r--sysklogd/logread.c2
-rw-r--r--sysklogd/syslogd.c2
-rw-r--r--util-linux/dmesg.c2
-rw-r--r--util-linux/fbset.c2
-rw-r--r--util-linux/fdformat.c2
-rw-r--r--util-linux/fdisk.c2
-rw-r--r--util-linux/freeramdisk.c2
-rw-r--r--util-linux/fsck_minix.c2
-rw-r--r--util-linux/getopt.c2
-rw-r--r--util-linux/hexdump.c2
-rw-r--r--util-linux/hwclock.c2
-rw-r--r--util-linux/ipcrm.c2
-rw-r--r--util-linux/ipcs.c2
-rw-r--r--util-linux/losetup.c3
-rw-r--r--util-linux/mdev.c2
-rw-r--r--util-linux/mkfs_minix.c2
-rw-r--r--util-linux/mkswap.c2
-rw-r--r--util-linux/more.c2
-rw-r--r--util-linux/mount.c2
-rw-r--r--util-linux/pivot_root.c2
-rw-r--r--util-linux/rdate.c2
-rw-r--r--util-linux/readprofile.c2
-rw-r--r--util-linux/setarch.c2
-rw-r--r--util-linux/swaponoff.c2
-rw-r--r--util-linux/switch_root.c2
-rw-r--r--util-linux/umount.c2
251 files changed, 270 insertions, 269 deletions
diff --git a/applets/usage.c b/applets/usage.c
index bb7ca826f..f2281d699 100644
--- a/applets/usage.c
+++ b/applets/usage.c
@@ -2,7 +2,6 @@
2#include <unistd.h> 2#include <unistd.h>
3 3
4#include "../include/autoconf.h" 4#include "../include/autoconf.h"
5#include "../include/busybox.h"
6 5
7static const char usage_messages[] = "" 6static const char usage_messages[] = ""
8#define MAKE_USAGE 7#define MAKE_USAGE
diff --git a/archival/ar.c b/archival/ar.c
index 23d9b49a5..31e96de4f 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -14,7 +14,7 @@
14 * http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html 14 * http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html
15 */ 15 */
16 16
17#include "busybox.h" 17#include "libbb.h"
18#include "unarchive.h" 18#include "unarchive.h"
19 19
20static void header_verbose_list_ar(const file_header_t *file_header) 20static void header_verbose_list_ar(const file_header_t *file_header)
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index 00cece4ad..83b5637cd 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -5,7 +5,7 @@
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
6 */ 6 */
7 7
8#include "busybox.h" 8#include "libbb.h"
9#include "unarchive.h" 9#include "unarchive.h"
10 10
11enum { 11enum {
diff --git a/archival/cpio.c b/archival/cpio.c
index 011386782..6d1ee166d 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -16,7 +16,7 @@
16#include <string.h> 16#include <string.h>
17#include <unistd.h> 17#include <unistd.h>
18#include "unarchive.h" 18#include "unarchive.h"
19#include "busybox.h" 19#include "libbb.h"
20 20
21#define CPIO_OPT_EXTRACT 0x01 21#define CPIO_OPT_EXTRACT 0x01
22#define CPIO_OPT_TEST 0x02 22#define CPIO_OPT_TEST 0x02
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 7d31ad12e..dcbd0d162 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -24,7 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "busybox.h" 27#include "libbb.h"
28#include "unarchive.h" 28#include "unarchive.h"
29 29
30/* note: if you vary hash_prime sizes be aware, 30/* note: if you vary hash_prime sizes be aware,
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index fde3c3382..138caff39 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
6 */ 6 */
7#include "busybox.h" 7#include "libbb.h"
8#include "unarchive.h" 8#include "unarchive.h"
9 9
10#define DPKG_DEB_OPT_CONTENTS 1 10#define DPKG_DEB_OPT_CONTENTS 1
diff --git a/archival/gzip.c b/archival/gzip.c
index 03b6b9117..fdf2a794c 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -39,7 +39,7 @@ gzip: bogus: No such file or directory
39aa: 85.1% -- replaced with aa.gz 39aa: 85.1% -- replaced with aa.gz
40*/ 40*/
41 41
42#include "busybox.h" 42#include "libbb.h"
43 43
44 44
45/* =========================================================================== 45/* ===========================================================================
diff --git a/archival/rpm.c b/archival/rpm.c
index 654a4a381..71ed32e41 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11#include "unarchive.h" 11#include "unarchive.h"
12 12
13#define RPM_HEADER_MAGIC "\216\255\350" 13#define RPM_HEADER_MAGIC "\216\255\350"
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index 307d1a0f6..460aeaff2 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -6,7 +6,7 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9#include "busybox.h" 9#include "libbb.h"
10#include "unarchive.h" 10#include "unarchive.h"
11 11
12#define RPM_MAGIC "\355\253\356\333" 12#define RPM_MAGIC "\355\253\356\333"
diff --git a/archival/tar.c b/archival/tar.c
index e634cc670..432355353 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -25,7 +25,7 @@
25 25
26#include <fnmatch.h> 26#include <fnmatch.h>
27#include <getopt.h> 27#include <getopt.h>
28#include "busybox.h" 28#include "libbb.h"
29#include "unarchive.h" 29#include "unarchive.h"
30 30
31#if ENABLE_FEATURE_TAR_CREATE 31#if ENABLE_FEATURE_TAR_CREATE
diff --git a/archival/unzip.c b/archival/unzip.c
index 8a9034fc3..ef58cd463 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -24,7 +24,7 @@
24 * - central directory 24 * - central directory
25 */ 25 */
26 26
27#include "busybox.h" 27#include "libbb.h"
28#include "unarchive.h" 28#include "unarchive.h"
29 29
30#define ZIP_FILEHEADER_MAGIC SWAP_LE32(0x04034b50) 30#define ZIP_FILEHEADER_MAGIC SWAP_LE32(0x04034b50)
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index 50908115c..e8761d523 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12/* From <linux/vt.h> */ 12/* From <linux/vt.h> */
13enum { 13enum {
diff --git a/console-tools/clear.c b/console-tools/clear.c
index 8e34d6d9a..053293ce2 100644
--- a/console-tools/clear.c
+++ b/console-tools/clear.c
@@ -12,7 +12,7 @@
12 12
13#include <stdio.h> 13#include <stdio.h>
14#include <stdlib.h> 14#include <stdlib.h>
15#include "busybox.h" 15#include "libbb.h"
16 16
17 17
18int clear_main(int argc, char **argv); 18int clear_main(int argc, char **argv);
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c
index 476eefa51..db52747ad 100644
--- a/console-tools/deallocvt.c
+++ b/console-tools/deallocvt.c
@@ -10,7 +10,7 @@
10 10
11/* no options, no getopt */ 11/* no options, no getopt */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15/* From <linux/vt.h> */ 15/* From <linux/vt.h> */
16enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */ 16enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 0c1914830..f61795cf0 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -8,7 +8,7 @@
8 * 8 *
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13/* From <linux/kd.h> */ 13/* From <linux/kd.h> */
14struct kbentry { 14struct kbentry {
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index f691b11af..88d7a0401 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -7,7 +7,7 @@
7 * Loads the console font, and possibly the corresponding screen map(s). 7 * Loads the console font, and possibly the corresponding screen map(s).
8 * (Adapted for busybox by Matej Vela.) 8 * (Adapted for busybox by Matej Vela.)
9 */ 9 */
10#include "busybox.h" 10#include "libbb.h"
11#include <sys/kd.h> 11#include <sys/kd.h>
12 12
13enum { 13enum {
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c
index a141435e2..4a726f9c8 100644
--- a/console-tools/loadkmap.c
+++ b/console-tools/loadkmap.c
@@ -8,7 +8,7 @@
8 * 8 *
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13#define BINARY_KEYMAP_MAGIC "bkeymap" 13#define BINARY_KEYMAP_MAGIC "bkeymap"
14 14
diff --git a/console-tools/openvt.c b/console-tools/openvt.c
index 882563b29..c050ba19e 100644
--- a/console-tools/openvt.c
+++ b/console-tools/openvt.c
@@ -10,7 +10,7 @@
10 10
11/* getopt not needed */ 11/* getopt not needed */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15int openvt_main(int argc, char **argv); 15int openvt_main(int argc, char **argv);
16int openvt_main(int argc, char **argv) 16int openvt_main(int argc, char **argv)
diff --git a/console-tools/reset.c b/console-tools/reset.c
index 03b078c5d..c844e1511 100644
--- a/console-tools/reset.c
+++ b/console-tools/reset.c
@@ -13,7 +13,7 @@
13#include <stdio.h> 13#include <stdio.h>
14#include <stdlib.h> 14#include <stdlib.h>
15#include <unistd.h> 15#include <unistd.h>
16#include "busybox.h" 16#include "libbb.h"
17 17
18int reset_main(int argc, char **argv); 18int reset_main(int argc, char **argv);
19int reset_main(int argc, char **argv) 19int reset_main(int argc, char **argv)
diff --git a/console-tools/resize.c b/console-tools/resize.c
index 64f318c76..52fdb26f4 100644
--- a/console-tools/resize.c
+++ b/console-tools/resize.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9/* no options, no getopt */ 9/* no options, no getopt */
10#include "busybox.h" 10#include "libbb.h"
11 11
12#define ESC "\033" 12#define ESC "\033"
13 13
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c
index 31ee1fc63..f437415db 100644
--- a/console-tools/setconsole.c
+++ b/console-tools/setconsole.c
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10#include <getopt.h> 10#include <getopt.h>
11#include "busybox.h" 11#include "libbb.h"
12 12
13#if ENABLE_FEATURE_SETCONSOLE_LONG_OPTIONS 13#if ENABLE_FEATURE_SETCONSOLE_LONG_OPTIONS
14static const struct option setconsole_long_options[] = { 14static const struct option setconsole_long_options[] = {
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c
index ff137d562..a0d291d30 100644
--- a/console-tools/setkeycodes.c
+++ b/console-tools/setkeycodes.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include <sys/ioctl.h> 12#include <sys/ioctl.h>
13#include "busybox.h" 13#include "libbb.h"
14 14
15 15
16/* From <linux/kd.h> */ 16/* From <linux/kd.h> */
diff --git a/console-tools/setlogcons.c b/console-tools/setlogcons.c
index 7b5addca7..f95a65390 100644
--- a/console-tools/setlogcons.c
+++ b/console-tools/setlogcons.c
@@ -9,7 +9,7 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14int setlogcons_main(int argc, char **argv); 14int setlogcons_main(int argc, char **argv);
15int setlogcons_main(int argc, char **argv) 15int setlogcons_main(int argc, char **argv)
diff --git a/coreutils/basename.c b/coreutils/basename.c
index f4307d6ce..f59d7a8de 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -20,7 +20,7 @@
20 * 3) Save some space by using strcmp(). Calling strncmp() here was silly. 20 * 3) Save some space by using strcmp(). Calling strncmp() here was silly.
21 */ 21 */
22 22
23#include "busybox.h" 23#include "libbb.h"
24 24
25/* This is a NOFORK applet. Be very careful! */ 25/* This is a NOFORK applet. Be very careful! */
26 26
diff --git a/coreutils/cal.c b/coreutils/cal.c
index 3d617916e..ce910bc63 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -17,7 +17,7 @@
17 * Major size reduction... over 50% (>1.5k) on i386. 17 * Major size reduction... over 50% (>1.5k) on i386.
18 */ 18 */
19 19
20#include "busybox.h" 20#include "libbb.h"
21 21
22#define THURSDAY 4 /* for reformation */ 22#define THURSDAY 4 /* for reformation */
23#define SATURDAY 6 /* 1 Jan 1 was a Saturday */ 23#define SATURDAY 6 /* 1 Jan 1 was a Saturday */
diff --git a/coreutils/cat.c b/coreutils/cat.c
index ed3f33650..64e697eb3 100644
--- a/coreutils/cat.c
+++ b/coreutils/cat.c
@@ -10,7 +10,7 @@
10/* BB_AUDIT SUSv3 compliant */ 10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/cat.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/cat.html */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15/* This is a NOFORK applet. Be very careful! */ 15/* This is a NOFORK applet. Be very careful! */
16 16
diff --git a/coreutils/catv.c b/coreutils/catv.c
index 826e0e9a6..2d2229f7f 100644
--- a/coreutils/catv.c
+++ b/coreutils/catv.c
@@ -10,7 +10,7 @@
10/* See "Cat -v considered harmful" at 10/* See "Cat -v considered harmful" at
11 * http://cm.bell-labs.com/cm/cs/doc/84/kp.ps.gz */ 11 * http://cm.bell-labs.com/cm/cs/doc/84/kp.ps.gz */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15int catv_main(int argc, char **argv); 15int catv_main(int argc, char **argv);
16int catv_main(int argc, char **argv) 16int catv_main(int argc, char **argv)
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c
index 48014ecdf..90a1cfe2b 100644
--- a/coreutils/chgrp.c
+++ b/coreutils/chgrp.c
@@ -11,7 +11,7 @@
11/* BB_AUDIT GNU defects - unsupported long options. */ 11/* BB_AUDIT GNU defects - unsupported long options. */
12/* http://www.opengroup.org/onlinepubs/007904975/utilities/chgrp.html */ 12/* http://www.opengroup.org/onlinepubs/007904975/utilities/chgrp.html */
13 13
14#include "busybox.h" 14#include "libbb.h"
15 15
16/* This is a NOEXEC applet. Be very careful! */ 16/* This is a NOEXEC applet. Be very careful! */
17 17
diff --git a/coreutils/chmod.c b/coreutils/chmod.c
index aa3625877..52cc40d97 100644
--- a/coreutils/chmod.c
+++ b/coreutils/chmod.c
@@ -14,7 +14,7 @@
14/* BB_AUDIT GNU defects - unsupported long options. */ 14/* BB_AUDIT GNU defects - unsupported long options. */
15/* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */ 15/* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */
16 16
17#include "busybox.h" 17#include "libbb.h"
18 18
19/* This is a NOEXEC applet. Be very careful! */ 19/* This is a NOEXEC applet. Be very careful! */
20 20
diff --git a/coreutils/chown.c b/coreutils/chown.c
index 71ba81247..7579e1735 100644
--- a/coreutils/chown.c
+++ b/coreutils/chown.c
@@ -11,7 +11,7 @@
11/* BB_AUDIT GNU defects - unsupported long options. */ 11/* BB_AUDIT GNU defects - unsupported long options. */
12/* http://www.opengroup.org/onlinepubs/007904975/utilities/chown.html */ 12/* http://www.opengroup.org/onlinepubs/007904975/utilities/chown.html */
13 13
14#include "busybox.h" 14#include "libbb.h"
15 15
16/* This is a NOEXEC applet. Be very careful! */ 16/* This is a NOEXEC applet. Be very careful! */
17 17
diff --git a/coreutils/chroot.c b/coreutils/chroot.c
index 874ee917e..192daa894 100644
--- a/coreutils/chroot.c
+++ b/coreutils/chroot.c
@@ -9,7 +9,7 @@
9 9
10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ 10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14int chroot_main(int argc, char **argv); 14int chroot_main(int argc, char **argv);
15int chroot_main(int argc, char **argv) 15int chroot_main(int argc, char **argv)
diff --git a/coreutils/cksum.c b/coreutils/cksum.c
index 70febdf3a..865bea0ee 100644
--- a/coreutils/cksum.c
+++ b/coreutils/cksum.c
@@ -6,7 +6,7 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */
8 8
9#include "busybox.h" 9#include "libbb.h"
10 10
11int cksum_main(int argc, char **argv); 11int cksum_main(int argc, char **argv);
12int cksum_main(int argc, char **argv) 12int cksum_main(int argc, char **argv)
diff --git a/coreutils/cmp.c b/coreutils/cmp.c
index 80fab0b90..e5dda80ff 100644
--- a/coreutils/cmp.c
+++ b/coreutils/cmp.c
@@ -21,7 +21,7 @@
21 * in the '-l' case. 21 * in the '-l' case.
22 */ 22 */
23 23
24#include "busybox.h" 24#include "libbb.h"
25 25
26static FILE *cmp_xfopen_input(const char *filename) 26static FILE *cmp_xfopen_input(const char *filename)
27{ 27{
diff --git a/coreutils/comm.c b/coreutils/comm.c
index 28e3982f2..3be6760dc 100644
--- a/coreutils/comm.c
+++ b/coreutils/comm.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12#define COMM_OPT_1 (1 << 0) 12#define COMM_OPT_1 (1 << 0)
13#define COMM_OPT_2 (1 << 1) 13#define COMM_OPT_2 (1 << 1)
diff --git a/coreutils/cp.c b/coreutils/cp.c
index 8c0937971..f98f281b5 100644
--- a/coreutils/cp.c
+++ b/coreutils/cp.c
@@ -15,7 +15,7 @@
15 * Size reduction. 15 * Size reduction.
16 */ 16 */
17 17
18#include "busybox.h" 18#include "libbb.h"
19#include "libcoreutils/coreutils.h" 19#include "libcoreutils/coreutils.h"
20 20
21/* This is a NOEXEC applet. Be very careful! */ 21/* This is a NOEXEC applet. Be very careful! */
diff --git a/coreutils/cut.c b/coreutils/cut.c
index b9ea3127c..084f7be37 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -9,7 +9,7 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14/* This is a NOEXEC applet. Be very careful! */ 14/* This is a NOEXEC applet. Be very careful! */
15 15
diff --git a/coreutils/date.c b/coreutils/date.c
index d2d77f413..57c826a3f 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -10,7 +10,7 @@
10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
11*/ 11*/
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15/* This 'date' command supports only 2 time setting formats, 15/* This 'date' command supports only 2 time setting formats,
16 all the GNU strftime stuff (its in libc, lets use it), 16 all the GNU strftime stuff (its in libc, lets use it),
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 5aee9dbb4..dd311d86a 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -9,7 +9,7 @@
9 */ 9 */
10 10
11#include <signal.h> /* For FEATURE_DD_SIGNAL_HANDLING */ 11#include <signal.h> /* For FEATURE_DD_SIGNAL_HANDLING */
12#include "busybox.h" 12#include "libbb.h"
13 13
14/* This is a NOEXEC applet. Be very careful! */ 14/* This is a NOEXEC applet. Be very careful! */
15 15
diff --git a/coreutils/df.c b/coreutils/df.c
index 484cabb37..d455d27f6 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -24,7 +24,7 @@
24#include <unistd.h> 24#include <unistd.h>
25#include <mntent.h> 25#include <mntent.h>
26#include <sys/vfs.h> 26#include <sys/vfs.h>
27#include "busybox.h" 27#include "libbb.h"
28 28
29#ifndef CONFIG_FEATURE_HUMAN_READABLE 29#ifndef CONFIG_FEATURE_HUMAN_READABLE
30static long kscale(long b, long bs) 30static long kscale(long b, long bs)
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 09cacbde6..f6b045b2d 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -12,7 +12,7 @@
12 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 12 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
13 */ 13 */
14 14
15#include "busybox.h" 15#include "libbb.h"
16 16
17#define FSIZE_MAX 32768 17#define FSIZE_MAX 32768
18 18
diff --git a/coreutils/dirname.c b/coreutils/dirname.c
index 7c5484bfd..fd2c381c8 100644
--- a/coreutils/dirname.c
+++ b/coreutils/dirname.c
@@ -10,7 +10,7 @@
10/* BB_AUDIT SUSv3 compliant */ 10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/dirname.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/dirname.html */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15/* This is a NOFORK applet. Be very careful! */ 15/* This is a NOFORK applet. Be very careful! */
16 16
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index 04c56ac9c..b053a0cbf 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -12,7 +12,7 @@
12 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 12 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
13*/ 13*/
14 14
15#include "busybox.h" 15#include "libbb.h"
16 16
17enum ConvType { 17enum ConvType {
18 CT_UNIX2DOS = 1, 18 CT_UNIX2DOS = 1,
diff --git a/coreutils/du.c b/coreutils/du.c
index e95f3a2f1..cb3e715d9 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -23,7 +23,7 @@
23 * 4) Fixed busybox bug #1284 involving long overflow with human_readable. 23 * 4) Fixed busybox bug #1284 involving long overflow with human_readable.
24 */ 24 */
25 25
26#include "busybox.h" 26#include "libbb.h"
27 27
28#if ENABLE_FEATURE_HUMAN_READABLE 28#if ENABLE_FEATURE_HUMAN_READABLE
29# if ENABLE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K 29# if ENABLE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K
diff --git a/coreutils/echo.c b/coreutils/echo.c
index 2de19c2e3..9aad2c2ba 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -23,7 +23,7 @@
23 * The previous version did not allow 4-digit octals. 23 * The previous version did not allow 4-digit octals.
24 */ 24 */
25 25
26#include "busybox.h" 26#include "libbb.h"
27 27
28int bb_echo(char **argv) 28int bb_echo(char **argv)
29{ 29{
diff --git a/coreutils/env.c b/coreutils/env.c
index 2a271f703..ad30f0193 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -29,11 +29,11 @@
29 * - use xfunc_error_retval 29 * - use xfunc_error_retval
30 */ 30 */
31 31
32#include "busybox.h"
33#include <errno.h>
34#include <getopt.h> /* struct option */ 32#include <getopt.h> /* struct option */
35extern char **environ; 33extern char **environ;
36 34
35#include "libbb.h"
36
37#if ENABLE_FEATURE_ENV_LONG_OPTIONS 37#if ENABLE_FEATURE_ENV_LONG_OPTIONS
38static const struct option env_long_options[] = { 38static const struct option env_long_options[] = {
39 { "ignore-environment", 0, NULL, 'i' }, 39 { "ignore-environment", 0, NULL, 'i' },
diff --git a/coreutils/expr.c b/coreutils/expr.c
index b6bd383f6..46e18d190 100644
--- a/coreutils/expr.c
+++ b/coreutils/expr.c
@@ -25,7 +25,7 @@
25 25
26/* no getopt needed */ 26/* no getopt needed */
27 27
28#include "busybox.h" 28#include "libbb.h"
29#include "xregex.h" 29#include "xregex.h"
30 30
31/* The kinds of value we can have. */ 31/* The kinds of value we can have. */
diff --git a/coreutils/false.c b/coreutils/false.c
index 90d6a0162..07cf9e83e 100644
--- a/coreutils/false.c
+++ b/coreutils/false.c
@@ -10,7 +10,7 @@
10/* BB_AUDIT SUSv3 compliant */ 10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/false.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/false.html */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15/* This is a NOFORK applet. Be very careful! */ 15/* This is a NOFORK applet. Be very careful! */
16 16
diff --git a/coreutils/fold.c b/coreutils/fold.c
index 4ce52cf0b..d5e3a4d72 100644
--- a/coreutils/fold.c
+++ b/coreutils/fold.c
@@ -10,7 +10,7 @@
10 Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 10 Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
11*/ 11*/
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15static unsigned long flags; 15static unsigned long flags;
16#define FLAG_COUNT_BYTES 1 16#define FLAG_COUNT_BYTES 1
diff --git a/coreutils/head.c b/coreutils/head.c
index ed1d01d52..1700af27a 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -11,7 +11,7 @@
11/* BB_AUDIT GNU compatible -c, -q, and -v options in 'fancy' configuration. */ 11/* BB_AUDIT GNU compatible -c, -q, and -v options in 'fancy' configuration. */
12/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */ 12/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */
13 13
14#include "busybox.h" 14#include "libbb.h"
15 15
16static const char head_opts[] = 16static const char head_opts[] =
17 "n:" 17 "n:"
diff --git a/coreutils/hostid.c b/coreutils/hostid.c
index e14f6ca57..7d96651e7 100644
--- a/coreutils/hostid.c
+++ b/coreutils/hostid.c
@@ -9,7 +9,7 @@
9 9
10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ 10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14/* This is a NOFORK applet. Be very careful! */ 14/* This is a NOFORK applet. Be very careful! */
15 15
diff --git a/coreutils/id.c b/coreutils/id.c
index 8a604195d..064bd29d9 100644
--- a/coreutils/id.c
+++ b/coreutils/id.c
@@ -13,7 +13,7 @@
13 * -Z option support: by Yuichi Nakamura <ynakam@hitachisoft.jp> 13 * -Z option support: by Yuichi Nakamura <ynakam@hitachisoft.jp>
14 */ 14 */
15 15
16#include "busybox.h" 16#include "libbb.h"
17#include <stdio.h> 17#include <stdio.h>
18#include <unistd.h> 18#include <unistd.h>
19#include <sys/types.h> 19#include <sys/types.h>
diff --git a/coreutils/install.c b/coreutils/install.c
index ece5b955b..7f168d2fd 100644
--- a/coreutils/install.c
+++ b/coreutils/install.c
@@ -9,11 +9,12 @@
9 * owner/group, will probably modify bb_make_directory(...) 9 * owner/group, will probably modify bb_make_directory(...)
10 */ 10 */
11 11
12#include "busybox.h"
13#include "libcoreutils/coreutils.h"
14#include <libgen.h> 12#include <libgen.h>
15#include <getopt.h> /* struct option */ 13#include <getopt.h> /* struct option */
16 14
15#include "libbb.h"
16#include "libcoreutils/coreutils.h"
17
17#if ENABLE_FEATURE_INSTALL_LONG_OPTIONS 18#if ENABLE_FEATURE_INSTALL_LONG_OPTIONS
18static const struct option install_long_options[] = { 19static const struct option install_long_options[] = {
19 { "directory", 0, NULL, 'd' }, 20 { "directory", 0, NULL, 'd' },
diff --git a/coreutils/length.c b/coreutils/length.c
index b3a9d4903..a310b3b2f 100644
--- a/coreutils/length.c
+++ b/coreutils/length.c
@@ -2,7 +2,7 @@
2 2
3/* BB_AUDIT SUSv3 N/A -- Apparently a busybox (obsolete?) extension. */ 3/* BB_AUDIT SUSv3 N/A -- Apparently a busybox (obsolete?) extension. */
4 4
5#include "busybox.h" 5#include "libbb.h"
6 6
7/* This is a NOFORK applet. Be very careful! */ 7/* This is a NOFORK applet. Be very careful! */
8 8
diff --git a/coreutils/ln.c b/coreutils/ln.c
index fd4eacec2..93a283d41 100644
--- a/coreutils/ln.c
+++ b/coreutils/ln.c
@@ -11,7 +11,7 @@
11/* BB_AUDIT GNU options missing: -d, -F, -i, and -v. */ 11/* BB_AUDIT GNU options missing: -d, -F, -i, and -v. */
12/* http://www.opengroup.org/onlinepubs/007904975/utilities/ln.html */ 12/* http://www.opengroup.org/onlinepubs/007904975/utilities/ln.html */
13 13
14#include "busybox.h" 14#include "libbb.h"
15 15
16/* This is a NOEXEC applet. Be very careful! */ 16/* This is a NOEXEC applet. Be very careful! */
17 17
diff --git a/coreutils/logname.c b/coreutils/logname.c
index aba6ce3c6..2e628bc14 100644
--- a/coreutils/logname.c
+++ b/coreutils/logname.c
@@ -20,7 +20,7 @@
20 * a diagnostic message and an error return. 20 * a diagnostic message and an error return.
21 */ 21 */
22 22
23#include "busybox.h" 23#include "libbb.h"
24 24
25/* This is a NOFORK applet. Be very careful! */ 25/* This is a NOFORK applet. Be very careful! */
26 26
diff --git a/coreutils/ls.c b/coreutils/ls.c
index b9c07adf8..e2ed3ee1f 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -30,7 +30,7 @@
30 */ 30 */
31 31
32#include <getopt.h> 32#include <getopt.h>
33#include "busybox.h" 33#include "libbb.h"
34 34
35/* This is a NOEXEC applet. Be very careful! */ 35/* This is a NOEXEC applet. Be very careful! */
36 36
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index a3818d519..4523fa4ec 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -6,7 +6,7 @@
6 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 6 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
7 */ 7 */
8 8
9#include "busybox.h" 9#include "libbb.h"
10 10
11typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t; 11typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t;
12 12
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c
index 5a6c9d077..60c03a1f9 100644
--- a/coreutils/mkdir.c
+++ b/coreutils/mkdir.c
@@ -20,7 +20,7 @@
20 */ 20 */
21 21
22#include <getopt.h> /* struct option */ 22#include <getopt.h> /* struct option */
23#include "busybox.h" 23#include "libbb.h"
24 24
25/* This is a NOFORK applet. Be very careful! */ 25/* This is a NOFORK applet. Be very careful! */
26 26
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c
index 7dcc50fa9..030c9d22f 100644
--- a/coreutils/mkfifo.c
+++ b/coreutils/mkfifo.c
@@ -10,7 +10,7 @@
10/* BB_AUDIT SUSv3 compliant */ 10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/mkfifo.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/mkfifo.html */
12 12
13#include "busybox.h" 13#include "libbb.h"
14#include "libcoreutils/coreutils.h" 14#include "libcoreutils/coreutils.h"
15 15
16int mkfifo_main(int argc, char **argv); 16int mkfifo_main(int argc, char **argv);
diff --git a/coreutils/mknod.c b/coreutils/mknod.c
index 6fa6d8353..415ef55c1 100644
--- a/coreutils/mknod.c
+++ b/coreutils/mknod.c
@@ -11,7 +11,7 @@
11 11
12#include <sys/sysmacros.h> // For makedev 12#include <sys/sysmacros.h> // For makedev
13 13
14#include "busybox.h" 14#include "libbb.h"
15#include "libcoreutils/coreutils.h" 15#include "libcoreutils/coreutils.h"
16 16
17static const char modes_chars[] = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 }; 17static const char modes_chars[] = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 };
diff --git a/coreutils/mv.c b/coreutils/mv.c
index c08d2327c..ad36051f9 100644
--- a/coreutils/mv.c
+++ b/coreutils/mv.c
@@ -20,7 +20,7 @@
20#include <errno.h> 20#include <errno.h>
21#include <stdlib.h> 21#include <stdlib.h>
22#include <getopt.h> /* struct option */ 22#include <getopt.h> /* struct option */
23#include "busybox.h" 23#include "libbb.h"
24#include "libcoreutils/coreutils.h" 24#include "libcoreutils/coreutils.h"
25 25
26#if ENABLE_FEATURE_MV_LONG_OPTIONS 26#if ENABLE_FEATURE_MV_LONG_OPTIONS
diff --git a/coreutils/nice.c b/coreutils/nice.c
index 328531528..8d77ae472 100644
--- a/coreutils/nice.c
+++ b/coreutils/nice.c
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10#include <sys/resource.h> 10#include <sys/resource.h>
11#include "busybox.h" 11#include "libbb.h"
12 12
13int nice_main(int argc, char **argv); 13int nice_main(int argc, char **argv);
14int nice_main(int argc, char **argv) 14int nice_main(int argc, char **argv)
diff --git a/coreutils/nohup.c b/coreutils/nohup.c
index 6a6c70e13..22419b800 100644
--- a/coreutils/nohup.c
+++ b/coreutils/nohup.c
@@ -10,7 +10,7 @@
10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
11 */ 11 */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15int nohup_main(int argc, char **argv); 15int nohup_main(int argc, char **argv);
16int nohup_main(int argc, char **argv) 16int nohup_main(int argc, char **argv)
diff --git a/coreutils/od.c b/coreutils/od.c
index 0de9def5a..00de080b6 100644
--- a/coreutils/od.c
+++ b/coreutils/od.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14 14
15#include "busybox.h" 15#include "libbb.h"
16#if ENABLE_DESKTOP 16#if ENABLE_DESKTOP
17/* This one provides -t (busybox's own build script needs it) */ 17/* This one provides -t (busybox's own build script needs it) */
18#include "od_bloaty.c" 18#include "od_bloaty.c"
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c
index efdbf354a..325085626 100644
--- a/coreutils/od_bloaty.c
+++ b/coreutils/od_bloaty.c
@@ -49,8 +49,7 @@ diff -u -a std bbox >bbox.diff || { echo Different!; sleep 1; }
49 49
50*/ 50*/
51 51
52 52#include "libbb.h"
53#include "busybox.h"
54#include <getopt.h> 53#include <getopt.h>
55 54
56#define assert(a) ((void)0) 55#define assert(a) ((void)0)
diff --git a/coreutils/printenv.c b/coreutils/printenv.c
index 935f52df3..0e69ff217 100644
--- a/coreutils/printenv.c
+++ b/coreutils/printenv.c
@@ -11,7 +11,7 @@
11#include <stdio.h> 11#include <stdio.h>
12#include <string.h> 12#include <string.h>
13#include <stdlib.h> 13#include <stdlib.h>
14#include "busybox.h" 14#include "libbb.h"
15extern char **environ; 15extern char **environ;
16 16
17int printenv_main(int argc, char **argv); 17int printenv_main(int argc, char **argv);
diff --git a/coreutils/printf.c b/coreutils/printf.c
index a2a82d249..d0cf5a671 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -38,7 +38,7 @@
38 38
39// 19990508 Busy Boxed! Dave Cinege 39// 19990508 Busy Boxed! Dave Cinege
40 40
41#include "busybox.h" 41#include "libbb.h"
42 42
43typedef void (*converter)(const char *arg, void *result); 43typedef void (*converter)(const char *arg, void *result);
44 44
diff --git a/coreutils/pwd.c b/coreutils/pwd.c
index a93b8f115..73a9d5be8 100644
--- a/coreutils/pwd.c
+++ b/coreutils/pwd.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12/* This is a NOFORK applet. Be very careful! */ 12/* This is a NOFORK applet. Be very careful! */
13 13
diff --git a/coreutils/realpath.c b/coreutils/realpath.c
index b3f7e4957..7c5dc3b10 100644
--- a/coreutils/realpath.c
+++ b/coreutils/realpath.c
@@ -10,7 +10,7 @@
10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
11 */ 11 */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15int realpath_main(int argc, char **argv); 15int realpath_main(int argc, char **argv);
16int realpath_main(int argc, char **argv) 16int realpath_main(int argc, char **argv)
diff --git a/coreutils/rm.c b/coreutils/rm.c
index e29073db8..cc2264770 100644
--- a/coreutils/rm.c
+++ b/coreutils/rm.c
@@ -15,7 +15,7 @@
15 * Size reduction. 15 * Size reduction.
16 */ 16 */
17 17
18#include "busybox.h" 18#include "libbb.h"
19 19
20/* This is a NOFORK applet. Be very careful! */ 20/* This is a NOFORK applet. Be very careful! */
21 21
diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c
index 7f3253017..c1b89e427 100644
--- a/coreutils/rmdir.c
+++ b/coreutils/rmdir.c
@@ -11,7 +11,7 @@
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/rmdir.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/rmdir.html */
12 12
13#include <libgen.h> 13#include <libgen.h>
14#include "busybox.h" 14#include "libbb.h"
15 15
16/* This is a NOFORK applet. Be very careful! */ 16/* This is a NOFORK applet. Be very careful! */
17 17
diff --git a/coreutils/seq.c b/coreutils/seq.c
index ef884d6ae..050c33317 100644
--- a/coreutils/seq.c
+++ b/coreutils/seq.c
@@ -7,7 +7,7 @@
7 * Licensed under the GPL v2, see the file LICENSE in this tarball. 7 * Licensed under the GPL v2, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12/* This is a NOFORK applet. Be very careful! */ 12/* This is a NOFORK applet. Be very careful! */
13 13
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index 592005bab..e9a30daf2 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -18,7 +18,7 @@
18 * time suffixes for seconds, minutes, hours, and days. 18 * time suffixes for seconds, minutes, hours, and days.
19 */ 19 */
20 20
21#include "busybox.h" 21#include "libbb.h"
22 22
23/* This is a NOFORK applet. Be very careful! */ 23/* This is a NOFORK applet. Be very careful! */
24 24
diff --git a/coreutils/sort.c b/coreutils/sort.c
index 06a6cbf70..f41bd6329 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -12,7 +12,7 @@
12 * http://www.opengroup.org/onlinepubs/007904975/utilities/sort.html 12 * http://www.opengroup.org/onlinepubs/007904975/utilities/sort.html
13 */ 13 */
14 14
15#include "busybox.h" 15#include "libbb.h"
16 16
17/* This is a NOEXEC applet. Be very careful! */ 17/* This is a NOEXEC applet. Be very careful! */
18 18
diff --git a/coreutils/split.c b/coreutils/split.c
index 10035e9ab..27f9cfdd6 100644
--- a/coreutils/split.c
+++ b/coreutils/split.c
@@ -9,7 +9,7 @@
9 * SUSv3 requirements: 9 * SUSv3 requirements:
10 * http://www.opengroup.org/onlinepubs/009695399/utilities/split.html 10 * http://www.opengroup.org/onlinepubs/009695399/utilities/split.html
11 */ 11 */
12#include "busybox.h" 12#include "libbb.h"
13 13
14static const struct suffix_mult split_suffices[] = { 14static const struct suffix_mult split_suffices[] = {
15#if ENABLE_FEATURE_SPLIT_FANCY 15#if ENABLE_FEATURE_SPLIT_FANCY
diff --git a/coreutils/stat.c b/coreutils/stat.c
index 16b8d1e44..9930d847d 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -13,7 +13,7 @@
13 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 13 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
14 */ 14 */
15 15
16#include "busybox.h" 16#include "libbb.h"
17 17
18/* vars to control behavior */ 18/* vars to control behavior */
19#define OPT_FILESYS (1<<0) 19#define OPT_FILESYS (1<<0)
diff --git a/coreutils/stty.c b/coreutils/stty.c
index 702cada63..488a7f8fb 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -21,7 +21,7 @@
21 21
22 */ 22 */
23 23
24#include "busybox.h" 24#include "libbb.h"
25 25
26#ifndef _POSIX_VDISABLE 26#ifndef _POSIX_VDISABLE
27# define _POSIX_VDISABLE ((unsigned char) 0) 27# define _POSIX_VDISABLE ((unsigned char) 0)
diff --git a/coreutils/sum.c b/coreutils/sum.c
index 9327ca55e..5799d142d 100644
--- a/coreutils/sum.c
+++ b/coreutils/sum.c
@@ -13,7 +13,7 @@
13 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 13 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
14 */ 14 */
15 15
16#include "busybox.h" 16#include "libbb.h"
17 17
18enum { SUM_BSD, PRINT_NAME, SUM_SYSV }; 18enum { SUM_BSD, PRINT_NAME, SUM_SYSV };
19 19
diff --git a/coreutils/sync.c b/coreutils/sync.c
index e52ab768d..d562f3fc5 100644
--- a/coreutils/sync.c
+++ b/coreutils/sync.c
@@ -9,7 +9,7 @@
9 9
10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ 10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14/* This is a NOFORK applet. Be very careful! */ 14/* This is a NOFORK applet. Be very careful! */
15 15
diff --git a/coreutils/tail.c b/coreutils/tail.c
index 32df25914..e0d21ed34 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -24,7 +24,7 @@
24 * 7) lseek attempted when count==0 even if arg was +0 (from top) 24 * 7) lseek attempted when count==0 even if arg was +0 (from top)
25 */ 25 */
26 26
27#include "busybox.h" 27#include "libbb.h"
28 28
29static const struct suffix_mult tail_suffixes[] = { 29static const struct suffix_mult tail_suffixes[] = {
30 { "b", 512 }, 30 { "b", 512 },
diff --git a/coreutils/tee.c b/coreutils/tee.c
index 338232ce9..2160141c9 100644
--- a/coreutils/tee.c
+++ b/coreutils/tee.c
@@ -10,7 +10,7 @@
10/* BB_AUDIT SUSv3 compliant */ 10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/tee.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/tee.html */
12 12
13#include "busybox.h" 13#include "libbb.h"
14#include <signal.h> 14#include <signal.h>
15 15
16int tee_main(int argc, char **argv); 16int tee_main(int argc, char **argv);
diff --git a/coreutils/test.c b/coreutils/test.c
index 70b392f38..df8387b14 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -20,7 +20,7 @@
20 * "This program is in the Public Domain." 20 * "This program is in the Public Domain."
21 */ 21 */
22 22
23#include "busybox.h" 23#include "libbb.h"
24#include <setjmp.h> 24#include <setjmp.h>
25 25
26/* This is a NOEXEC applet. Be very careful! */ 26/* This is a NOEXEC applet. Be very careful! */
diff --git a/coreutils/touch.c b/coreutils/touch.c
index 5f81b2380..7b82339fc 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -17,7 +17,7 @@
17 * Also, exiting on a failure was a bug. All args should be processed. 17 * Also, exiting on a failure was a bug. All args should be processed.
18 */ 18 */
19 19
20#include "busybox.h" 20#include "libbb.h"
21 21
22/* This is a NOFORK applet. Be very careful! */ 22/* This is a NOFORK applet. Be very careful! */
23 23
diff --git a/coreutils/tr.c b/coreutils/tr.c
index 5d3dd4cd8..7e89e9a80 100644
--- a/coreutils/tr.c
+++ b/coreutils/tr.c
@@ -18,7 +18,7 @@
18/* http://www.opengroup.org/onlinepubs/009695399/utilities/tr.html 18/* http://www.opengroup.org/onlinepubs/009695399/utilities/tr.html
19 * TODO: xdigit, graph, print 19 * TODO: xdigit, graph, print
20 */ 20 */
21#include "busybox.h" 21#include "libbb.h"
22 22
23#define ASCII 0377 23#define ASCII 0377
24 24
diff --git a/coreutils/true.c b/coreutils/true.c
index eee621331..9dcd69aa3 100644
--- a/coreutils/true.c
+++ b/coreutils/true.c
@@ -10,7 +10,7 @@
10/* BB_AUDIT SUSv3 compliant */ 10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/true.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/true.html */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15/* This is a NOFORK applet. Be very careful! */ 15/* This is a NOFORK applet. Be very careful! */
16 16
diff --git a/coreutils/tty.c b/coreutils/tty.c
index d4c179fca..2c77c9960 100644
--- a/coreutils/tty.c
+++ b/coreutils/tty.c
@@ -10,7 +10,7 @@
10/* BB_AUDIT SUSv3 compliant */ 10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/tty.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/tty.html */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15int tty_main(int argc, char **argv); 15int tty_main(int argc, char **argv);
16int tty_main(int argc, char **argv) 16int tty_main(int argc, char **argv)
diff --git a/coreutils/uname.c b/coreutils/uname.c
index 2faa89321..d4188cdae 100644
--- a/coreutils/uname.c
+++ b/coreutils/uname.c
@@ -37,7 +37,7 @@
37#include <unistd.h> 37#include <unistd.h>
38#include <sys/types.h> 38#include <sys/types.h>
39#include <sys/utsname.h> 39#include <sys/utsname.h>
40#include "busybox.h" 40#include "libbb.h"
41 41
42typedef struct { 42typedef struct {
43 struct utsname name; 43 struct utsname name;
diff --git a/coreutils/uniq.c b/coreutils/uniq.c
index 11a731aaa..adc196b97 100644
--- a/coreutils/uniq.c
+++ b/coreutils/uniq.c
@@ -10,7 +10,7 @@
10/* BB_AUDIT SUSv3 compliant */ 10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15static const char uniq_opts[] = "cdu" "f:s:" "cdu\0\1\2\4"; 15static const char uniq_opts[] = "cdu" "f:s:" "cdu\0\1\2\4";
16 16
diff --git a/coreutils/usleep.c b/coreutils/usleep.c
index 2baf2bc87..e0cd56e54 100644
--- a/coreutils/usleep.c
+++ b/coreutils/usleep.c
@@ -9,7 +9,7 @@
9 9
10/* BB_AUDIT SUSv3 N/A -- Apparently a busybox extension. */ 10/* BB_AUDIT SUSv3 N/A -- Apparently a busybox extension. */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14/* This is a NOFORK applet. Be very careful! */ 14/* This is a NOFORK applet. Be very careful! */
15 15
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index c195a3e6f..779710edd 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14 14
15#include "busybox.h" 15#include "libbb.h"
16 16
17static void read_stduu(FILE *src_stream, FILE *dst_stream) 17static void read_stduu(FILE *src_stream, FILE *dst_stream)
18{ 18{
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c
index 3207d7296..9490474b9 100644
--- a/coreutils/uuencode.c
+++ b/coreutils/uuencode.c
@@ -8,7 +8,7 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13 13
14#define SRC_BUF_SIZE 45 // This *MUST* be a multiple of 3 14#define SRC_BUF_SIZE 45 // This *MUST* be a multiple of 3
diff --git a/coreutils/watch.c b/coreutils/watch.c
index 60a4a71ce..2ad0564cd 100644
--- a/coreutils/watch.c
+++ b/coreutils/watch.c
@@ -11,7 +11,7 @@
11/* BB_AUDIT SUSv3 N/A */ 11/* BB_AUDIT SUSv3 N/A */
12/* BB_AUDIT GNU defects -- only option -n is supported. */ 12/* BB_AUDIT GNU defects -- only option -n is supported. */
13 13
14#include "busybox.h" 14#include "libbb.h"
15 15
16// procps 2.0.18: 16// procps 2.0.18:
17// watch [-d] [-n seconds] 17// watch [-d] [-n seconds]
diff --git a/coreutils/wc.c b/coreutils/wc.c
index 926b3ac19..04112c194 100644
--- a/coreutils/wc.c
+++ b/coreutils/wc.c
@@ -41,7 +41,7 @@
41 * for which 'wc -c' should output '0'. 41 * for which 'wc -c' should output '0'.
42 */ 42 */
43 43
44#include "busybox.h" 44#include "libbb.h"
45 45
46#ifdef CONFIG_LOCALE_SUPPORT 46#ifdef CONFIG_LOCALE_SUPPORT
47#define isspace_given_isprint(c) isspace(c) 47#define isspace_given_isprint(c) isspace(c)
diff --git a/coreutils/who.c b/coreutils/who.c
index a5d3b02eb..546050aee 100644
--- a/coreutils/who.c
+++ b/coreutils/who.c
@@ -17,7 +17,7 @@
17 *---------------------------------------------------------------------- 17 *----------------------------------------------------------------------
18 */ 18 */
19 19
20#include "busybox.h" 20#include "libbb.h"
21#include <utmp.h> 21#include <utmp.h>
22#include <time.h> 22#include <time.h>
23 23
diff --git a/coreutils/whoami.c b/coreutils/whoami.c
index 25757f633..156516fa7 100644
--- a/coreutils/whoami.c
+++ b/coreutils/whoami.c
@@ -9,7 +9,7 @@
9 9
10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ 10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14/* This is a NOFORK applet. Be very careful! */ 14/* This is a NOFORK applet. Be very careful! */
15 15
diff --git a/coreutils/yes.c b/coreutils/yes.c
index 569764150..5529eab14 100644
--- a/coreutils/yes.c
+++ b/coreutils/yes.c
@@ -14,7 +14,7 @@
14 * Size reductions and removed redundant applet name prefix from error messages. 14 * Size reductions and removed redundant applet name prefix from error messages.
15 */ 15 */
16 16
17#include "busybox.h" 17#include "libbb.h"
18 18
19/* This is a NOFORK applet. Be very careful! */ 19/* This is a NOFORK applet. Be very careful! */
20 20
diff --git a/debianutils/mktemp.c b/debianutils/mktemp.c
index ce5bda515..966257aed 100644
--- a/debianutils/mktemp.c
+++ b/debianutils/mktemp.c
@@ -9,7 +9,7 @@
9 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 9 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13#include <stdio.h> 13#include <stdio.h>
14#include <errno.h> 14#include <errno.h>
15#include <string.h> 15#include <string.h>
diff --git a/debianutils/pipe_progress.c b/debianutils/pipe_progress.c
index 51a017c98..f95008493 100644
--- a/debianutils/pipe_progress.c
+++ b/debianutils/pipe_progress.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11#include <stdio.h> 11#include <stdio.h>
12#include <stdlib.h> 12#include <stdlib.h>
13#include <unistd.h> 13#include <unistd.h>
diff --git a/debianutils/readlink.c b/debianutils/readlink.c
index 1a2c1efb7..b6b49651c 100644
--- a/debianutils/readlink.c
+++ b/debianutils/readlink.c
@@ -7,12 +7,10 @@
7 * Licensed under GPL v2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPL v2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h"
11#include <errno.h>
12#include <unistd.h>
13#include <stdlib.h>
14#include <getopt.h> 10#include <getopt.h>
15 11
12#include "libbb.h"
13
16int readlink_main(int argc, char **argv); 14int readlink_main(int argc, char **argv);
17int readlink_main(int argc, char **argv) 15int readlink_main(int argc, char **argv)
18{ 16{
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c
index e6dec04bc..cb4a4e4c7 100644
--- a/debianutils/run_parts.c
+++ b/debianutils/run_parts.c
@@ -30,10 +30,10 @@
30 * -u MASK umask. Set the umask of the program executed to MASK. 30 * -u MASK umask. Set the umask of the program executed to MASK.
31 */ 31 */
32 32
33
34#include "busybox.h"
35#include <getopt.h> 33#include <getopt.h>
36 34
35#include "libbb.h"
36
37#if ENABLE_FEATURE_RUN_PARTS_LONG_OPTIONS 37#if ENABLE_FEATURE_RUN_PARTS_LONG_OPTIONS
38static const struct option runparts_long_options[] = { 38static const struct option runparts_long_options[] = {
39 { "arg", 1, NULL, 'a' }, 39 { "arg", 1, NULL, 'a' },
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index 1154794fd..0681a085c 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -8,10 +8,11 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include "busybox.h"
12#include <getopt.h> 11#include <getopt.h>
13#include <sys/resource.h> 12#include <sys/resource.h>
14 13
14#include "libbb.h"
15
15static int signal_nr = 15; 16static int signal_nr = 15;
16static int user_id = -1; 17static int user_id = -1;
17static char *userspec; 18static char *userspec;
diff --git a/debianutils/which.c b/debianutils/which.c
index 02992d0f6..2c71ed32d 100644
--- a/debianutils/which.c
+++ b/debianutils/which.c
@@ -10,7 +10,7 @@
10 * Based on which from debianutils 10 * Based on which from debianutils
11 */ 11 */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15int which_main(int argc, char **argv); 15int which_main(int argc, char **argv);
16int which_main(int argc, char **argv) 16int which_main(int argc, char **argv)
diff --git a/docs/new-applet-HOWTO.txt b/docs/new-applet-HOWTO.txt
index 5d8fbe78a..2bc938f14 100644
--- a/docs/new-applet-HOWTO.txt
+++ b/docs/new-applet-HOWTO.txt
@@ -19,7 +19,7 @@ such as who you stole the code from and so forth. Also include the mini-GPL
19boilerplate. Be sure to name the main function <applet>_main instead of main. 19boilerplate. Be sure to name the main function <applet>_main instead of main.
20And be sure to put it in <applet>.c. Usage does not have to be taken care of by 20And be sure to put it in <applet>.c. Usage does not have to be taken care of by
21your applet. 21your applet.
22Make sure to #include "busybox.h" as the first include file in your applet so 22Make sure to #include "libbb.h" as the first include file in your applet so
23the bb_config.h and appropriate platform specific files are included properly. 23the bb_config.h and appropriate platform specific files are included properly.
24 24
25For a new applet mu, here is the code that would go in mu.c: 25For a new applet mu, here is the code that would go in mu.c:
@@ -39,7 +39,7 @@ For a new applet mu, here is the code that would go in mu.c:
39 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 39 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
40 */ 40 */
41 41
42#include "busybox.h" 42#include "libbb.h"
43#include "other.h" 43#include "other.h"
44 44
45int mu_main(int argc, char **argv); 45int mu_main(int argc, char **argv);
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c
index 82dba4adf..0ac03738c 100644
--- a/e2fsprogs/chattr.c
+++ b/e2fsprogs/chattr.c
@@ -19,7 +19,7 @@
19 * 98/12/29 - Display version info only when -V specified (G M Sipe) 19 * 98/12/29 - Display version info only when -V specified (G M Sipe)
20 */ 20 */
21 21
22#include "busybox.h" 22#include "libbb.h"
23#include "e2fs_lib.h" 23#include "e2fs_lib.h"
24 24
25#define OPT_ADD 1 25#define OPT_ADD 1
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index 446541e84..2954cabf3 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -37,7 +37,7 @@
37 * It doesn't guess filesystem types from on-disk format. 37 * It doesn't guess filesystem types from on-disk format.
38 */ 38 */
39 39
40#include "busybox.h" 40#include "libbb.h"
41 41
42#define EXIT_OK 0 42#define EXIT_OK 0
43#define EXIT_NONDESTRUCT 1 43#define EXIT_NONDESTRUCT 1
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c
index 25d2e3e48..fbfbea2bc 100644
--- a/e2fsprogs/lsattr.c
+++ b/e2fsprogs/lsattr.c
@@ -18,7 +18,7 @@
18 * 98/12/29 - Display version info only when -V specified (G M Sipe) 18 * 98/12/29 - Display version info only when -V specified (G M Sipe)
19 */ 19 */
20 20
21#include "busybox.h" 21#include "libbb.h"
22#include "e2fs_lib.h" 22#include "e2fs_lib.h"
23 23
24enum { 24enum {
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.h b/e2fsprogs/old_e2fsprogs/e2fsck.h
index e520632a0..73d398ff4 100644
--- a/e2fsprogs/old_e2fsprogs/e2fsck.h
+++ b/e2fsprogs/old_e2fsprogs/e2fsck.h
@@ -39,7 +39,7 @@
39#include "blkid/blkid.h" 39#include "blkid/blkid.h"
40#include "ext2fs/ext2_ext_attr.h" 40#include "ext2fs/ext2_ext_attr.h"
41#include "uuid/uuid.h" 41#include "uuid/uuid.h"
42#include "busybox.h" 42#include "libbb.h"
43 43
44#ifdef HAVE_CONIO_H 44#ifdef HAVE_CONIO_H
45#undef HAVE_TERMIOS_H 45#undef HAVE_TERMIOS_H
diff --git a/e2fsprogs/old_e2fsprogs/e2p/e2p.h b/e2fsprogs/old_e2fsprogs/e2p/e2p.h
index 2a2367b9f..cae28f115 100644
--- a/e2fsprogs/old_e2fsprogs/e2p/e2p.h
+++ b/e2fsprogs/old_e2fsprogs/e2p/e2p.h
@@ -1,5 +1,5 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2#include "busybox.h" 2#include "libbb.h"
3#include <sys/types.h> /* Needed by dirent.h on netbsd */ 3#include <sys/types.h> /* Needed by dirent.h on netbsd */
4#include <stdio.h> 4#include <stdio.h>
5#include <dirent.h> 5#include <dirent.h>
diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c
index 7b794c3aa..0ad62ca04 100644
--- a/e2fsprogs/old_e2fsprogs/fsck.c
+++ b/e2fsprogs/old_e2fsprogs/fsck.c
@@ -46,7 +46,7 @@
46 46
47#include "e2fsbb.h" 47#include "e2fsbb.h"
48 48
49#include "busybox.h" 49#include "libbb.h"
50 50
51#ifndef _PATH_MNTTAB 51#ifndef _PATH_MNTTAB
52#define _PATH_MNTTAB "/etc/fstab" 52#define _PATH_MNTTAB "/etc/fstab"
diff --git a/e2fsprogs/old_e2fsprogs/tune2fs.c b/e2fsprogs/old_e2fsprogs/tune2fs.c
index e5a93378d..920a50c6a 100644
--- a/e2fsprogs/old_e2fsprogs/tune2fs.c
+++ b/e2fsprogs/old_e2fsprogs/tune2fs.c
@@ -44,7 +44,7 @@
44#include "util.h" 44#include "util.h"
45#include "blkid/blkid.h" 45#include "blkid/blkid.h"
46 46
47#include "busybox.h" 47#include "libbb.h"
48 48
49static char * device_name = NULL; 49static char * device_name = NULL;
50static char * new_label, *new_last_mounted, *new_UUID; 50static char * new_label, *new_last_mounted, *new_UUID;
diff --git a/editors/awk.c b/editors/awk.c
index 2d6773b65..ea326ecdf 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -7,7 +7,7 @@
7 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 7 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11#include "xregex.h" 11#include "xregex.h"
12#include <math.h> 12#include <math.h>
13extern char **environ; 13extern char **environ;
diff --git a/editors/ed.c b/editors/ed.c
index 1706e4271..731aef1cb 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -7,7 +7,7 @@
7 * The "ed" built-in command (much simplified) 7 * The "ed" built-in command (much simplified)
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12enum { 12enum {
13 USERSIZE = sizeof(bb_common_bufsiz1) > 1024 ? 1024 13 USERSIZE = sizeof(bb_common_bufsiz1) > 1024 ? 1024
diff --git a/editors/patch.c b/editors/patch.c
index 11b2f2587..f65bbf4f9 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -20,10 +20,8 @@
20 */ 20 */
21 21
22#include <getopt.h> 22#include <getopt.h>
23#include <string.h> 23
24#include <stdlib.h> 24#include "libbb.h"
25#include <unistd.h>
26#include "busybox.h"
27 25
28static unsigned int copy_lines(FILE *src_stream, FILE *dest_stream, const unsigned int lines_count) 26static unsigned int copy_lines(FILE *src_stream, FILE *dest_stream, const unsigned int lines_count)
29{ 27{
diff --git a/editors/sed.c b/editors/sed.c
index 4dd533177..b3c4430a1 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -58,7 +58,7 @@
58 Reference http://www.opengroup.org/onlinepubs/007904975/utilities/sed.html 58 Reference http://www.opengroup.org/onlinepubs/007904975/utilities/sed.html
59*/ 59*/
60 60
61#include "busybox.h" 61#include "libbb.h"
62#include "xregex.h" 62#include "xregex.h"
63 63
64/* Each sed command turns into one of these structures. */ 64/* Each sed command turns into one of these structures. */
diff --git a/editors/vi.c b/editors/vi.c
index 66b01e26b..97ca802dc 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -21,7 +21,7 @@
21 * An "ex" line oriented mode- maybe using "cmdedit" 21 * An "ex" line oriented mode- maybe using "cmdedit"
22 */ 22 */
23 23
24#include "busybox.h" 24#include "libbb.h"
25 25
26#define ENABLE_FEATURE_VI_CRASHME 0 26#define ENABLE_FEATURE_VI_CRASHME 0
27 27
diff --git a/findutils/find.c b/findutils/find.c
index aec22a5bc..2d271d27e 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -46,7 +46,7 @@
46 */ 46 */
47 47
48#include <fnmatch.h> 48#include <fnmatch.h>
49#include "busybox.h" 49#include "libbb.h"
50 50
51/* This is a NOEXEC applet. Be very careful! */ 51/* This is a NOEXEC applet. Be very careful! */
52 52
diff --git a/findutils/grep.c b/findutils/grep.c
index f43417601..59508607f 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -19,7 +19,7 @@
19 * (C) 2006 Jac Goudsmit added -o option 19 * (C) 2006 Jac Goudsmit added -o option
20 */ 20 */
21 21
22#include "busybox.h" 22#include "libbb.h"
23#include "xregex.h" 23#include "xregex.h"
24 24
25/* options */ 25/* options */
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 1a83ee189..4ca95639a 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -17,7 +17,7 @@
17 * 17 *
18 */ 18 */
19 19
20#include "busybox.h" 20#include "libbb.h"
21 21
22/* This is a NOEXEC applet. Be very careful! */ 22/* This is a NOEXEC applet. Be very careful! */
23 23
diff --git a/init/halt.c b/init/halt.c
index 8faf9d8c3..ca5c15340 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -7,7 +7,7 @@
7 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 7 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11#include <sys/reboot.h> 11#include <sys/reboot.h>
12 12
13int halt_main(int argc, char **argv); 13int halt_main(int argc, char **argv);
diff --git a/init/init.c b/init/init.c
index 342e0a6b8..3dcd0726b 100644
--- a/init/init.c
+++ b/init/init.c
@@ -9,7 +9,7 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13#include <paths.h> 13#include <paths.h>
14#include <signal.h> 14#include <signal.h>
15#include <sys/ioctl.h> 15#include <sys/ioctl.h>
diff --git a/init/mesg.c b/init/mesg.c
index 77bfe0e21..e182b4153 100644
--- a/init/mesg.c
+++ b/init/mesg.c
@@ -7,7 +7,7 @@
7 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 7 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12#ifdef USE_TTY_GROUP 12#ifdef USE_TTY_GROUP
13#define S_IWGRP_OR_S_IWOTH S_IWGRP 13#define S_IWGRP_OR_S_IWOTH S_IWGRP
diff --git a/ipsvd/ipsvd_perhost.c b/ipsvd/ipsvd_perhost.c
index 281f708b0..ed802f027 100644
--- a/ipsvd/ipsvd_perhost.c
+++ b/ipsvd/ipsvd_perhost.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11#include "ipsvd_perhost.h" 11#include "ipsvd_perhost.h"
12 12
13static struct hcc *cc; 13static struct hcc *cc;
diff --git a/ipsvd/tcpudp.c b/ipsvd/tcpudp.c
index 553fee870..bc3d3a209 100644
--- a/ipsvd/tcpudp.c
+++ b/ipsvd/tcpudp.c
@@ -32,7 +32,7 @@
32#include <limits.h> 32#include <limits.h>
33#include <linux/netfilter_ipv4.h> /* wants <limits.h> */ 33#include <linux/netfilter_ipv4.h> /* wants <limits.h> */
34 34
35#include "busybox.h" 35#include "libbb.h"
36#include "ipsvd_perhost.h" 36#include "ipsvd_perhost.h"
37 37
38#ifdef SSLSVD 38#ifdef SSLSVD
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index 382d28a4e..d4465f899 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -7,8 +7,8 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "libbb.h"
11#include <getopt.h> 10#include <getopt.h>
11#include "libbb.h"
12 12
13/* Documentation 13/* Documentation
14 14
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 3cb9c3e28..9bbc7097d 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -29,7 +29,7 @@
29 */ 29 */
30 30
31#include <sys/ioctl.h> 31#include <sys/ioctl.h>
32#include "busybox.h" 32#include "libbb.h"
33 33
34 34
35/* FIXME: obsolete CONFIG item? */ 35/* FIXME: obsolete CONFIG item? */
diff --git a/libbb/selinux_common.c b/libbb/selinux_common.c
index 4cb85f00f..ff076f6f0 100644
--- a/libbb/selinux_common.c
+++ b/libbb/selinux_common.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> 5 * Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp>
6 */ 6 */
7#include "busybox.h" 7#include "libbb.h"
8#include <selinux/context.h> 8#include <selinux/context.h>
9 9
10context_t set_security_context_component(security_context_t cur_context, 10context_t set_security_context_component(security_context_t cur_context,
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 4eb4737c0..d02ef9c77 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -9,7 +9,7 @@
9 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 9 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14/* All the functions starting with "x" call bb_error_msg_and_die() if they 14/* All the functions starting with "x" call bb_error_msg_and_die() if they
15 * fail, so callers never need to check for errors. If it returned, it 15 * fail, so callers never need to check for errors. If it returned, it
diff --git a/libpwdgrp/uidgid_get.c b/libpwdgrp/uidgid_get.c
index f10b40654..b0085c423 100644
--- a/libpwdgrp/uidgid_get.c
+++ b/libpwdgrp/uidgid_get.c
@@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/ 26*/
27 27
28#include "busybox.h" 28#include "libbb.h"
29 29
30/* Always sets uid and gid */ 30/* Always sets uid and gid */
31int get_uidgid(struct bb_uidgid_t *u, const char *ug, int numeric_ok) 31int get_uidgid(struct bb_uidgid_t *u, const char *ug, int numeric_ok)
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c
index 5aefda6ff..2487aad31 100644
--- a/loginutils/addgroup.c
+++ b/loginutils/addgroup.c
@@ -10,7 +10,7 @@
10 * 10 *
11 */ 11 */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15static void xgroup_study(struct group *g) 15static void xgroup_study(struct group *g)
16{ 16{
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
index 124e17730..82a4381ad 100644
--- a/loginutils/adduser.c
+++ b/loginutils/adduser.c
@@ -8,7 +8,7 @@
8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13#define OPT_DONT_SET_PASS (1 << 4) 13#define OPT_DONT_SET_PASS (1 << 4)
14#define OPT_DONT_MAKE_HOME (1 << 6) 14#define OPT_DONT_MAKE_HOME (1 << 6)
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c
index 54babdc80..0c298c50d 100644
--- a/loginutils/cryptpw.c
+++ b/loginutils/cryptpw.c
@@ -5,7 +5,7 @@
5 * Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no> 5 * Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no>
6 */ 6 */
7 7
8#include "busybox.h" 8#include "libbb.h"
9 9
10int cryptpw_main(int argc, char **argv); 10int cryptpw_main(int argc, char **argv);
11int cryptpw_main(int argc, char **argv) 11int cryptpw_main(int argc, char **argv)
diff --git a/loginutils/deluser.c b/loginutils/deluser.c
index 2781df319..59e69b9e9 100644
--- a/loginutils/deluser.c
+++ b/loginutils/deluser.c
@@ -10,7 +10,7 @@
10 * 10 *
11 */ 11 */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15/* Status */ 15/* Status */
16#define STATUS_OK 0 16#define STATUS_OK 0
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 64d2d08c2..f969124c1 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -16,7 +16,7 @@
16 * 16 *
17 */ 17 */
18 18
19#include "busybox.h" 19#include "libbb.h"
20#include <syslog.h> 20#include <syslog.h>
21 21
22#if ENABLE_FEATURE_UTMP 22#if ENABLE_FEATURE_UTMP
diff --git a/loginutils/login.c b/loginutils/login.c
index 232c610cc..d725466aa 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -3,7 +3,7 @@
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
4 */ 4 */
5 5
6#include "busybox.h" 6#include "libbb.h"
7#include <utmp.h> 7#include <utmp.h>
8#include <sys/resource.h> 8#include <sys/resource.h>
9#include <syslog.h> 9#include <syslog.h>
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index a323c0a40..8f65c3d0b 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -3,7 +3,7 @@
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
4 */ 4 */
5 5
6#include "busybox.h" 6#include "libbb.h"
7#include <syslog.h> 7#include <syslog.h>
8 8
9 9
diff --git a/loginutils/su.c b/loginutils/su.c
index 0a786cbfb..fd17319da 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -5,7 +5,7 @@
5 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 5 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6 */ 6 */
7 7
8#include "busybox.h" 8#include "libbb.h"
9#include <syslog.h> 9#include <syslog.h>
10 10
11#define SU_OPT_mp (3) 11#define SU_OPT_mp (3)
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 38503f7b1..36b10fbc4 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -7,7 +7,7 @@
7 7
8#include <syslog.h> 8#include <syslog.h>
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12static const char * const forbid[] = { 12static const char * const forbid[] = {
13 "ENV", 13 "ENV",
diff --git a/loginutils/vlock.c b/loginutils/vlock.c
index 06a7169d9..7f614fca1 100644
--- a/loginutils/vlock.c
+++ b/loginutils/vlock.c
@@ -16,7 +16,7 @@
16/* Fixed by Erik Andersen to do passwords the tinylogin way... 16/* Fixed by Erik Andersen to do passwords the tinylogin way...
17 * It now works with md5, sha1, etc passwords. */ 17 * It now works with md5, sha1, etc passwords. */
18 18
19#include "busybox.h" 19#include "libbb.h"
20#include <sys/vt.h> 20#include <sys/vt.h>
21 21
22static struct passwd *pw; 22static struct passwd *pw;
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index 22fd39e8e..9f8227cf0 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -11,7 +11,7 @@
11 * Licensed under GPLv2 or later, see file License in this tarball for details. 11 * Licensed under GPLv2 or later, see file License in this tarball for details.
12 */ 12 */
13 13
14#include "busybox.h" 14#include "libbb.h"
15#include <sys/timex.h> 15#include <sys/timex.h>
16 16
17static const struct {int bit; const char *name;} statlist[] = { 17static const struct {int bit; const char *name;} statlist[] = {
diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c
index 6896506e6..803d1d94b 100644
--- a/miscutils/bbconfig.c
+++ b/miscutils/bbconfig.c
@@ -1,7 +1,7 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* This file was released into the public domain by Paul Fox. 2/* This file was released into the public domain by Paul Fox.
3 */ 3 */
4#include "busybox.h" 4#include "libbb.h"
5#include "bbconfigopts.h" 5#include "bbconfigopts.h"
6 6
7int bbconfig_main(int argc, char **argv); 7int bbconfig_main(int argc, char **argv);
diff --git a/miscutils/chrt.c b/miscutils/chrt.c
index f52c3cd1b..8a4b78fc4 100644
--- a/miscutils/chrt.c
+++ b/miscutils/chrt.c
@@ -6,10 +6,10 @@
6 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 6 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
7 */ 7 */
8 8
9#include "busybox.h"
10#include <unistd.h> 9#include <unistd.h>
11#include <sched.h> 10#include <sched.h>
12#include <getopt.h> /* optind */ 11#include <getopt.h> /* optind */
12#include "libbb.h"
13#ifndef _POSIX_PRIORITY_SCHEDULING 13#ifndef _POSIX_PRIORITY_SCHEDULING
14#warning your system may be foobared 14#warning your system may be foobared
15#endif 15#endif
diff --git a/miscutils/crond.c b/miscutils/crond.c
index c7d1a6c50..a490d417f 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -12,7 +12,7 @@
12 12
13#define VERSION "2.3.2" 13#define VERSION "2.3.2"
14 14
15#include "busybox.h" 15#include "libbb.h"
16#include <sys/syslog.h> 16#include <sys/syslog.h>
17 17
18#define arysize(ary) (sizeof(ary)/sizeof((ary)[0])) 18#define arysize(ary) (sizeof(ary)/sizeof((ary)[0]))
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 02df85be8..76c382e8f 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -10,7 +10,7 @@
10 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 10 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
11 */ 11 */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15#ifndef CRONTABS 15#ifndef CRONTABS
16#define CRONTABS "/var/spool/cron/crontabs" 16#define CRONTABS "/var/spool/cron/crontabs"
diff --git a/miscutils/dc.c b/miscutils/dc.c
index 1953a9489..872b814cd 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -3,7 +3,7 @@
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
4 */ 4 */
5 5
6#include "busybox.h" 6#include "libbb.h"
7#include <math.h> 7#include <math.h>
8 8
9/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */ 9/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index d1a5163d2..0b08fb6e5 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -54,7 +54,7 @@
54 Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia. 54 Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia.
55*/ 55*/
56 56
57#include "busybox.h" 57#include "libbb.h"
58#include "xregex.h" 58#include "xregex.h"
59#include <unistd.h> 59#include <unistd.h>
60#include <stdio.h> 60#include <stdio.h>
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 5d7ef1c28..631a344a1 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -13,7 +13,7 @@
13 * Most of the dirty work blatantly ripped off from cat.c =) 13 * Most of the dirty work blatantly ripped off from cat.c =)
14 */ 14 */
15 15
16#include "busybox.h" 16#include "libbb.h"
17 17
18/* various defines swiped from linux/cdrom.h */ 18/* various defines swiped from linux/cdrom.h */
19#define CDROMCLOSETRAY 0x5319 /* pendant of CDROMEJECT */ 19#define CDROMCLOSETRAY 0x5319 /* pendant of CDROMEJECT */
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 0a689d87e..181ac5f6e 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -12,7 +12,7 @@
12 * - by Mark Lord (C) 1994-2002 -- freely distributable 12 * - by Mark Lord (C) 1994-2002 -- freely distributable
13 */ 13 */
14 14
15#include "busybox.h" 15#include "libbb.h"
16#include <linux/hdreg.h> 16#include <linux/hdreg.h>
17 17
18/* device types */ 18/* device types */
diff --git a/miscutils/last.c b/miscutils/last.c
index d354807e5..f38c4b878 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -7,7 +7,7 @@
7 * Licensed under the GPL version 2, see the file LICENSE in this tarball. 7 * Licensed under the GPL version 2, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11#include <utmp.h> 11#include <utmp.h>
12 12
13#ifndef SHUTDOWN_TIME 13#ifndef SHUTDOWN_TIME
diff --git a/miscutils/less.c b/miscutils/less.c
index 138bd4711..3df1f3785 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -23,7 +23,7 @@
23 23
24#include <sched.h> /* sched_yield() */ 24#include <sched.h> /* sched_yield() */
25 25
26#include "busybox.h" 26#include "libbb.h"
27#if ENABLE_FEATURE_LESS_REGEXP 27#if ENABLE_FEATURE_LESS_REGEXP
28#include "xregex.h" 28#include "xregex.h"
29#endif 29#endif
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index fce7ea43d..0ad12d798 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -7,7 +7,7 @@
7 * known bugs: can't deal with alpha ranges 7 * known bugs: can't deal with alpha ranges
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12#ifdef CONFIG_FEATURE_MAKEDEVS_LEAF 12#ifdef CONFIG_FEATURE_MAKEDEVS_LEAF
13int makedevs_main(int argc, char **argv); 13int makedevs_main(int argc, char **argv);
diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c
index e380154ee..b5ce35cf1 100644
--- a/miscutils/mountpoint.c
+++ b/miscutils/mountpoint.c
@@ -9,7 +9,7 @@
9 * Based on sysvinit's mountpoint 9 * Based on sysvinit's mountpoint
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14int mountpoint_main(int argc, char **argv); 14int mountpoint_main(int argc, char **argv);
15int mountpoint_main(int argc, char **argv) 15int mountpoint_main(int argc, char **argv)
diff --git a/miscutils/mt.c b/miscutils/mt.c
index bed2969ca..2971421ef 100644
--- a/miscutils/mt.c
+++ b/miscutils/mt.c
@@ -3,7 +3,7 @@
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
4 */ 4 */
5 5
6#include "busybox.h" 6#include "libbb.h"
7#include <sys/mtio.h> 7#include <sys/mtio.h>
8 8
9struct mt_opcodes { 9struct mt_opcodes {
diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c
index c96ce5da5..e15cc8c71 100644
--- a/miscutils/nmeter.c
+++ b/miscutils/nmeter.c
@@ -12,7 +12,7 @@
12// disk_io: (3,0):(22272,17897,410702,4375,54750) 12// disk_io: (3,0):(22272,17897,410702,4375,54750)
13// btime 1059401962 13// btime 1059401962
14 14
15#include "busybox.h" 15#include "libbb.h"
16#include <time.h> 16#include <time.h>
17 17
18typedef unsigned long long ullong; 18typedef unsigned long long ullong;
diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c
index c95b00aae..2b65d39bc 100644
--- a/miscutils/raidautorun.c
+++ b/miscutils/raidautorun.c
@@ -8,7 +8,7 @@
8 * 8 *
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13#include <linux/major.h> 13#include <linux/major.h>
14#include <linux/raid/md_u.h> 14#include <linux/raid/md_u.h>
diff --git a/miscutils/readahead.c b/miscutils/readahead.c
index 601e845bc..103ce8e5d 100644
--- a/miscutils/readahead.c
+++ b/miscutils/readahead.c
@@ -10,7 +10,7 @@
10 * Licensed under GPLv2 or later, see file License in this tarball for details. 10 * Licensed under GPLv2 or later, see file License in this tarball for details.
11 */ 11 */
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15int readahead_main(int argc, char **argv); 15int readahead_main(int argc, char **argv);
16int readahead_main(int argc, char **argv) 16int readahead_main(int argc, char **argv)
diff --git a/miscutils/runlevel.c b/miscutils/runlevel.c
index df2da2b1f..f7d55de0f 100644
--- a/miscutils/runlevel.c
+++ b/miscutils/runlevel.c
@@ -12,7 +12,7 @@
12 * initially busyboxified by Bernhard Fischer 12 * initially busyboxified by Bernhard Fischer
13 */ 13 */
14 14
15#include "busybox.h" 15#include "libbb.h"
16#include <stdio.h> 16#include <stdio.h>
17#include <utmp.h> 17#include <utmp.h>
18#include <time.h> 18#include <time.h>
diff --git a/miscutils/rx.c b/miscutils/rx.c
index 6e79f3438..675aad2a0 100644
--- a/miscutils/rx.c
+++ b/miscutils/rx.c
@@ -19,7 +19,7 @@
19 * 19 *
20 */ 20 */
21 21
22#include "busybox.h" 22#include "libbb.h"
23 23
24#define SOH 0x01 24#define SOH 0x01
25#define STX 0x02 25#define STX 0x02
diff --git a/miscutils/setsid.c b/miscutils/setsid.c
index 1abb54530..a976fe93b 100644
--- a/miscutils/setsid.c
+++ b/miscutils/setsid.c
@@ -14,7 +14,7 @@
14 * - busyboxed 14 * - busyboxed
15 */ 15 */
16 16
17#include "busybox.h" 17#include "libbb.h"
18 18
19int setsid_main(int argc, char **argv); 19int setsid_main(int argc, char **argv);
20int setsid_main(int argc, char **argv) 20int setsid_main(int argc, char **argv)
diff --git a/miscutils/strings.c b/miscutils/strings.c
index 49f2cf31e..eff1bd947 100644
--- a/miscutils/strings.c
+++ b/miscutils/strings.c
@@ -7,11 +7,9 @@
7 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 7 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include "busybox.h"
11#include <stdio.h>
12#include <stdlib.h>
13#include <getopt.h> 10#include <getopt.h>
14#include <ctype.h> 11
12#include "libbb.h"
15 13
16#define WHOLE_FILE 1 14#define WHOLE_FILE 1
17#define PRINT_NAME 2 15#define PRINT_NAME 2
diff --git a/miscutils/taskset.c b/miscutils/taskset.c
index b3bf4902e..cd8ffc840 100644
--- a/miscutils/taskset.c
+++ b/miscutils/taskset.c
@@ -6,9 +6,9 @@
6 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 6 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
7 */ 7 */
8 8
9#include "busybox.h"
10#include <sched.h> 9#include <sched.h>
11#include <getopt.h> /* optind */ 10#include <getopt.h> /* optind */
11#include "libbb.h"
12 12
13#if ENABLE_FEATURE_TASKSET_FANCY 13#if ENABLE_FEATURE_TASKSET_FANCY
14#define TASKSET_PRINTF_MASK "%s" 14#define TASKSET_PRINTF_MASK "%s"
diff --git a/miscutils/time.c b/miscutils/time.c
index a45919502..0a2e0b7e2 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -9,7 +9,7 @@
9 Heavily modified for busybox by Erik Andersen <andersen@codepoet.org> 9 Heavily modified for busybox by Erik Andersen <andersen@codepoet.org>
10*/ 10*/
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14#define TV_MSEC tv_usec / 1000 14#define TV_MSEC tv_usec / 1000
15 15
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c
index 28ae9bdb0..b64291b32 100644
--- a/miscutils/watchdog.c
+++ b/miscutils/watchdog.c
@@ -8,7 +8,7 @@
8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13#define OPT_FOREGROUND 0x01 13#define OPT_FOREGROUND 0x01
14#define OPT_TIMER 0x02 14#define OPT_TIMER 0x02
diff --git a/modutils/insmod.c b/modutils/insmod.c
index adfbd33fe..f8be9ce6b 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -58,7 +58,7 @@
58 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 58 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
59 */ 59 */
60 60
61#include "busybox.h" 61#include "libbb.h"
62#include <libgen.h> 62#include <libgen.h>
63#include <sys/utsname.h> 63#include <sys/utsname.h>
64 64
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 31549b919..acca23012 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -11,7 +11,7 @@
11 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 11 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
12 */ 12 */
13 13
14#include "busybox.h" 14#include "libbb.h"
15 15
16 16
17#ifndef CONFIG_FEATURE_CHECK_TAINTED_MODULE 17#ifndef CONFIG_FEATURE_CHECK_TAINTED_MODULE
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index 4c5e43656..a7c6307f8 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -11,7 +11,7 @@
11 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 11 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
12*/ 12*/
13 13
14#include "busybox.h" 14#include "libbb.h"
15#include <sys/utsname.h> 15#include <sys/utsname.h>
16#include <fnmatch.h> 16#include <fnmatch.h>
17 17
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 67cf58c3b..4c792d3ae 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11#include <sys/syscall.h> 11#include <sys/syscall.h>
12 12
13#ifdef CONFIG_FEATURE_2_6_MODULES 13#ifdef CONFIG_FEATURE_2_6_MODULES
diff --git a/networking/arp.c b/networking/arp.c
index 7a36f44bb..6a7c862b8 100644
--- a/networking/arp.c
+++ b/networking/arp.c
@@ -13,7 +13,7 @@
13 * modified for getopt32 by Arne Bernin <arne [at] alamut.de> 13 * modified for getopt32 by Arne Bernin <arne [at] alamut.de>
14 */ 14 */
15 15
16#include "busybox.h" 16#include "libbb.h"
17#include "inet_common.h" 17#include "inet_common.h"
18 18
19#include <arpa/inet.h> 19#include <arpa/inet.h>
diff --git a/networking/arping.c b/networking/arping.c
index d71ac4930..0371df369 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -16,7 +16,7 @@
16#include <netinet/ether.h> 16#include <netinet/ether.h>
17#include <netpacket/packet.h> 17#include <netpacket/packet.h>
18 18
19#include "busybox.h" 19#include "libbb.h"
20 20
21static struct in_addr src; 21static struct in_addr src;
22static struct in_addr dst; 22static struct in_addr dst;
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 8807bbedc..32166e555 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -18,7 +18,7 @@
18 */ 18 */
19 19
20#include <syslog.h> 20#include <syslog.h>
21#include "busybox.h" 21#include "libbb.h"
22 22
23//#define DEBUG 1 23//#define DEBUG 1
24#define DEBUG 0 24#define DEBUG 0
diff --git a/networking/ether-wake.c b/networking/ether-wake.c
index ed41590aa..9de0d489b 100644
--- a/networking/ether-wake.c
+++ b/networking/ether-wake.c
@@ -70,7 +70,7 @@
70#include <netinet/ether.h> 70#include <netinet/ether.h>
71#include <linux/if.h> 71#include <linux/if.h>
72 72
73#include "busybox.h" 73#include "libbb.h"
74 74
75/* Note: PF_INET, SOCK_DGRAM, IPPROTO_UDP would allow SIOCGIFHWADDR to 75/* Note: PF_INET, SOCK_DGRAM, IPPROTO_UDP would allow SIOCGIFHWADDR to
76 * work as non-root, but we need SOCK_PACKET to specify the Ethernet 76 * work as non-root, but we need SOCK_PACKET to specify the Ethernet
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 9b0510df9..54b5f5a91 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -13,8 +13,8 @@
13 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 13 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
14 */ 14 */
15 15
16#include "busybox.h"
17#include <getopt.h> 16#include <getopt.h>
17#include "libbb.h"
18 18
19typedef struct ftp_host_info_s { 19typedef struct ftp_host_info_s {
20 const char *user; 20 const char *user;
diff --git a/networking/hostname.c b/networking/hostname.c
index 3f6a658d6..50ef7b5d1 100644
--- a/networking/hostname.c
+++ b/networking/hostname.c
@@ -12,7 +12,7 @@
12 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 12 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
13 */ 13 */
14 14
15#include "busybox.h" 15#include "libbb.h"
16 16
17static void do_sethostname(char *s, int isfile) 17static void do_sethostname(char *s, int isfile)
18{ 18{
diff --git a/networking/httpd.c b/networking/httpd.c
index d8ea483eb..f47e2c11f 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -91,7 +91,7 @@
91 * 91 *
92*/ 92*/
93 93
94#include "busybox.h" 94#include "libbb.h"
95 95
96/* amount of buffering in a pipe */ 96/* amount of buffering in a pipe */
97#ifndef PIPE_BUF 97#ifndef PIPE_BUF
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 3dcc902ca..5742399c5 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -37,7 +37,7 @@
37#include <netinet/if_ether.h> 37#include <netinet/if_ether.h>
38#endif 38#endif
39#include "inet_common.h" 39#include "inet_common.h"
40#include "busybox.h" 40#include "libbb.h"
41 41
42#if ENABLE_FEATURE_IFCONFIG_SLIP 42#if ENABLE_FEATURE_IFCONFIG_SLIP
43# include <net/if_slip.h> 43# include <net/if_slip.h>
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 5b2251777..8e8341e96 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -15,11 +15,12 @@
15 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 15 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
16 */ 16 */
17 17
18#include "busybox.h"
19#include <sys/utsname.h> 18#include <sys/utsname.h>
20#include <fnmatch.h> 19#include <fnmatch.h>
21#include <getopt.h> 20#include <getopt.h>
22 21
22#include "libbb.h"
23
23#define MAX_OPT_DEPTH 10 24#define MAX_OPT_DEPTH 10
24#define EUNBALBRACK 10001 25#define EUNBALBRACK 10001
25#define EUNDEFVAR 10002 26#define EUNDEFVAR 10002
diff --git a/networking/inetd.c b/networking/inetd.c
index dc191a40e..211a8dcbf 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -155,7 +155,7 @@
155 * setuid() 155 * setuid()
156 */ 156 */
157 157
158#include "busybox.h" 158#include "libbb.h"
159#include <syslog.h> 159#include <syslog.h>
160#include <sys/un.h> 160#include <sys/un.h>
161 161
diff --git a/networking/interface.c b/networking/interface.c
index b1b935e7e..51e3d7487 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -34,7 +34,7 @@
34#include <net/if.h> 34#include <net/if.h>
35#include <net/if_arp.h> 35#include <net/if_arp.h>
36#include "inet_common.h" 36#include "inet_common.h"
37#include "busybox.h" 37#include "libbb.h"
38 38
39#if ENABLE_FEATURE_IPV6 39#if ENABLE_FEATURE_IPV6
40# define HAVE_AFINET6 1 40# define HAVE_AFINET6 1
diff --git a/networking/ip.c b/networking/ip.c
index c7816c8cc..0105bd98b 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -13,7 +13,7 @@
13 * Bernhard Fischer rewrote to use index_in_substr_array 13 * Bernhard Fischer rewrote to use index_in_substr_array
14 */ 14 */
15 15
16#include "busybox.h" 16#include "libbb.h"
17 17
18#include "libiproute/utils.h" 18#include "libiproute/utils.h"
19#include "libiproute/ip_common.h" 19#include "libiproute/ip_common.h"
diff --git a/networking/ipcalc.c b/networking/ipcalc.c
index 63ce99ffe..a39ad1a67 100644
--- a/networking/ipcalc.c
+++ b/networking/ipcalc.c
@@ -12,12 +12,12 @@
12 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 12 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
13 */ 13 */
14 14
15#include "busybox.h"
16#include <ctype.h>
17#include <getopt.h> 15#include <getopt.h>
18#include <sys/socket.h> 16#include <sys/socket.h>
19#include <arpa/inet.h> 17#include <arpa/inet.h>
20 18
19#include "libbb.h"
20
21#define CLASS_A_NETMASK ntohl(0xFF000000) 21#define CLASS_A_NETMASK ntohl(0xFF000000)
22#define CLASS_B_NETMASK ntohl(0xFFFF0000) 22#define CLASS_B_NETMASK ntohl(0xFFFF0000)
23#define CLASS_C_NETMASK ntohl(0xFFFFFF00) 23#define CLASS_C_NETMASK ntohl(0xFFFFFF00)
diff --git a/networking/isrv.c b/networking/isrv.c
index f0df2229c..a51618af1 100644
--- a/networking/isrv.c
+++ b/networking/isrv.c
@@ -8,7 +8,7 @@
8 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 8 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12#include "isrv.h" 12#include "isrv.h"
13 13
14#define DEBUG 0 14#define DEBUG 0
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c
index 59daf99ed..84cf6da6a 100644
--- a/networking/isrv_identd.c
+++ b/networking/isrv_identd.c
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10#include <syslog.h> 10#include <syslog.h>
11#include "busybox.h" 11#include "libbb.h"
12#include "isrv.h" 12#include "isrv.h"
13 13
14enum { TIMEOUT = 20 }; 14enum { TIMEOUT = 20 };
diff --git a/networking/libiproute/ip_common.h b/networking/libiproute/ip_common.h
index 96df6100a..97101079f 100644
--- a/networking/libiproute/ip_common.h
+++ b/networking/libiproute/ip_common.h
@@ -2,7 +2,7 @@
2#ifndef _IP_COMMON_H 2#ifndef _IP_COMMON_H
3#define _IP_COMMON_H 1 3#define _IP_COMMON_H 1
4 4
5#include "busybox.h" 5#include "libbb.h"
6#include <asm/types.h> 6#include <asm/types.h>
7#include <linux/netlink.h> 7#include <linux/netlink.h>
8#include <linux/rtnetlink.h> 8#include <linux/rtnetlink.h>
diff --git a/networking/nameif.c b/networking/nameif.c
index ec77512c3..a65f30819 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -9,7 +9,7 @@
9 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 9 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13#include <syslog.h> 13#include <syslog.h>
14#include <net/if.h> 14#include <net/if.h>
15#include <netinet/ether.h> 15#include <netinet/ether.h>
diff --git a/networking/nc.c b/networking/nc.c
index e89eb7615..1fb38f83c 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12#if ENABLE_DESKTOP 12#if ENABLE_DESKTOP
13#include "nc_bloaty.c" 13#include "nc_bloaty.c"
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index 57af7ebe5..3e333b7d5 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -48,7 +48,7 @@
48 * are closed, but nc doesn't exit - continues to listen/accept. 48 * are closed, but nc doesn't exit - continues to listen/accept.
49 */ 49 */
50 50
51/* done in nc.c: #include "busybox.h" */ 51/* done in nc.c: #include "libbb.h" */
52 52
53enum { 53enum {
54 SLEAZE_PORT = 31337, /* for UDP-scan RTT trick, change if ya want */ 54 SLEAZE_PORT = 31337, /* for UDP-scan RTT trick, change if ya want */
diff --git a/networking/netstat.c b/networking/netstat.c
index 5fb5c386f..38091ae3a 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -11,7 +11,7 @@
11 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 11 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
12 */ 12 */
13 13
14#include "busybox.h" 14#include "libbb.h"
15#include "inet_common.h" 15#include "inet_common.h"
16 16
17enum { 17enum {
diff --git a/networking/nslookup.c b/networking/nslookup.c
index 424a0e4b9..608e65462 100644
--- a/networking/nslookup.c
+++ b/networking/nslookup.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include <resolv.h> 14#include <resolv.h>
15#include "busybox.h" 15#include "libbb.h"
16 16
17/* 17/*
18 * I'm only implementing non-interactive mode; 18 * I'm only implementing non-interactive mode;
diff --git a/networking/ping.c b/networking/ping.c
index e413bec70..2f331910e 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -27,7 +27,7 @@
27 27
28#include <net/if.h> 28#include <net/if.h>
29#include <netinet/ip_icmp.h> 29#include <netinet/ip_icmp.h>
30#include "busybox.h" 30#include "libbb.h"
31 31
32#if ENABLE_PING6 32#if ENABLE_PING6
33#include <netinet/icmp6.h> 33#include <netinet/icmp6.h>
diff --git a/networking/route.c b/networking/route.c
index da5969868..881332b9f 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -25,12 +25,13 @@
25 * remove ridiculous amounts of bloat. 25 * remove ridiculous amounts of bloat.
26 */ 26 */
27 27
28#include "busybox.h"
29#include "inet_common.h"
30#include <getopt.h> 28#include <getopt.h>
31#include <net/route.h> 29#include <net/route.h>
32#include <net/if.h> 30#include <net/if.h>
33 31
32#include "libbb.h"
33#include "inet_common.h"
34
34 35
35#ifndef RTF_UP 36#ifndef RTF_UP
36/* Keep this in sync with /usr/src/linux/include/linux/route.h */ 37/* Keep this in sync with /usr/src/linux/include/linux/route.h */
diff --git a/networking/telnet.c b/networking/telnet.c
index 5c75a7409..a59450505 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -24,7 +24,7 @@
24#include <termios.h> 24#include <termios.h>
25#include <arpa/telnet.h> 25#include <arpa/telnet.h>
26#include <netinet/in.h> 26#include <netinet/in.h>
27#include "busybox.h" 27#include "libbb.h"
28 28
29#ifdef DOTRACE 29#ifdef DOTRACE
30#define TRACE(x, y) do { if (x) printf y; } while (0) 30#define TRACE(x, y) do { if (x) printf y; } while (0)
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 4ab6f5656..21b704a46 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -24,7 +24,7 @@
24/*#define DEBUG 1 */ 24/*#define DEBUG 1 */
25#define DEBUG 0 25#define DEBUG 0
26 26
27#include "busybox.h" 27#include "libbb.h"
28 28
29#if DEBUG 29#if DEBUG
30#define TELCMDS 30#define TELCMDS
diff --git a/networking/tftp.c b/networking/tftp.c
index 3fb76ecbb..e1e278aba 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -19,7 +19,7 @@
19 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 19 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
20 * ------------------------------------------------------------------------- */ 20 * ------------------------------------------------------------------------- */
21 21
22#include "busybox.h" 22#include "libbb.h"
23 23
24 24
25#if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT 25#if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT
diff --git a/networking/traceroute.c b/networking/traceroute.c
index b4cca25b0..ce8dc8395 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -215,7 +215,7 @@
215#include <netinet/ip.h> 215#include <netinet/ip.h>
216#include <netinet/ip_icmp.h> 216#include <netinet/ip_icmp.h>
217 217
218#include "busybox.h" 218#include "libbb.h"
219#include "inet_common.h" 219#include "inet_common.h"
220 220
221 221
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 6c0db5b4c..006d580d3 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -10,7 +10,7 @@
10#ifndef _COMMON_H 10#ifndef _COMMON_H
11#define _COMMON_H 11#define _COMMON_H
12 12
13#include "busybox.h" 13#include "libbb.h"
14 14
15#define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script" 15#define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
16 16
diff --git a/networking/vconfig.c b/networking/vconfig.c
index 06c06cb5e..e063d0a49 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -9,7 +9,7 @@
9 9
10/* BB_AUDIT SUSv3 N/A */ 10/* BB_AUDIT SUSv3 N/A */
11 11
12#include "busybox.h" 12#include "libbb.h"
13#include <net/if.h> 13#include <net/if.h>
14 14
15/* Stuff from linux/if_vlan.h, kernel version 2.4.23 */ 15/* Stuff from linux/if_vlan.h, kernel version 2.4.23 */
diff --git a/networking/wget.c b/networking/wget.c
index 026722afc..2c060d77d 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -10,8 +10,8 @@
10/* http://www.unix.org/version2/whatsnew/lfs20mar.html */ 10/* http://www.unix.org/version2/whatsnew/lfs20mar.html */
11#define _LARGEFILE64_SOURCE 1 11#define _LARGEFILE64_SOURCE 1
12 12
13#include "busybox.h"
14#include <getopt.h> /* for struct option */ 13#include <getopt.h> /* for struct option */
14#include "libbb.h"
15 15
16struct host_info { 16struct host_info {
17 // May be used if we ever will want to free() all xstrdup()s... 17 // May be used if we ever will want to free() all xstrdup()s...
diff --git a/networking/zcip.c b/networking/zcip.c
index 195ae50ab..3b67a032e 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -23,7 +23,7 @@
23// - avoid silent script failures, especially under load... 23// - avoid silent script failures, especially under load...
24// - link status monitoring (restart on link-up; stop on link-down) 24// - link status monitoring (restart on link-up; stop on link-down)
25 25
26#include "busybox.h" 26#include "libbb.h"
27#include <syslog.h> 27#include <syslog.h>
28#include <poll.h> 28#include <poll.h>
29#include <sys/wait.h> 29#include <sys/wait.h>
diff --git a/procps/free.c b/procps/free.c
index 2b205d0c7..42193fdec 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -9,7 +9,7 @@
9 9
10/* getopt not needed */ 10/* getopt not needed */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14int free_main(int argc, char **argv); 14int free_main(int argc, char **argv);
15int free_main(int argc, char **argv) 15int free_main(int argc, char **argv)
diff --git a/procps/fuser.c b/procps/fuser.c
index 40789dd5e..f65b05d98 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -8,7 +8,7 @@
8 * GNU Library General Public License 8 * GNU Library General Public License
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13#define FUSER_PROC_DIR "/proc" 13#define FUSER_PROC_DIR "/proc"
14#define FUSER_MAX_LINE 255 14#define FUSER_MAX_LINE 255
diff --git a/procps/kill.c b/procps/kill.c
index 3e0e121ca..892a798c5 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -8,7 +8,7 @@
8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13/* Note: kill_main is directly called from shell in order to implement 13/* Note: kill_main is directly called from shell in order to implement
14 * kill built-in. Shell substitutes job ids with process groups first. 14 * kill built-in. Shell substitutes job ids with process groups first.
diff --git a/procps/pidof.c b/procps/pidof.c
index ea2520a4f..3541aeee0 100644
--- a/procps/pidof.c
+++ b/procps/pidof.c
@@ -7,7 +7,7 @@
7 * Licensed under the GPL version 2, see the file LICENSE in this tarball. 7 * Licensed under the GPL version 2, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12enum { 12enum {
13 USE_FEATURE_PIDOF_SINGLE(OPTBIT_SINGLE,) 13 USE_FEATURE_PIDOF_SINGLE(OPTBIT_SINGLE,)
diff --git a/procps/ps.c b/procps/ps.c
index 55453131e..968a6fe99 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -7,7 +7,7 @@
7 * Licensed under the GPL version 2, see the file LICENSE in this tarball. 7 * Licensed under the GPL version 2, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12#if ENABLE_DESKTOP 12#if ENABLE_DESKTOP
13 13
diff --git a/procps/renice.c b/procps/renice.c
index 2964e20ea..6c5bb0e20 100644
--- a/procps/renice.c
+++ b/procps/renice.c
@@ -19,7 +19,7 @@
19 * following IDs (if any). Multiple switches are allowed. 19 * following IDs (if any). Multiple switches are allowed.
20 */ 20 */
21 21
22#include "busybox.h" 22#include "libbb.h"
23#include <sys/resource.h> 23#include <sys/resource.h>
24 24
25void BUG_bad_PRIO_PROCESS(void); 25void BUG_bad_PRIO_PROCESS(void);
diff --git a/procps/sysctl.c b/procps/sysctl.c
index 2c3fda5fe..a0e9e16e5 100644
--- a/procps/sysctl.c
+++ b/procps/sysctl.c
@@ -14,7 +14,7 @@
14 * 14 *
15 */ 15 */
16 16
17#include "busybox.h" 17#include "libbb.h"
18 18
19/* 19/*
20 * Function Prototypes 20 * Function Prototypes
diff --git a/procps/top.c b/procps/top.c
index 580c30050..948ab0315 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -28,7 +28,7 @@
28 * GNU Library General Public License 28 * GNU Library General Public License
29 */ 29 */
30 30
31#include "busybox.h" 31#include "libbb.h"
32 32
33 33
34typedef struct top_status_t { 34typedef struct top_status_t {
diff --git a/procps/uptime.c b/procps/uptime.c
index c2b5d3966..ee0657e1b 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -15,7 +15,7 @@
15 15
16/* getopt not needed */ 16/* getopt not needed */
17 17
18#include "busybox.h" 18#include "libbb.h"
19 19
20#ifndef FSHIFT 20#ifndef FSHIFT
21# define FSHIFT 16 /* nr of bits of precision */ 21# define FSHIFT 16 /* nr of bits of precision */
diff --git a/runit/chpst.c b/runit/chpst.c
index 7b907845f..8eb1e8af6 100644
--- a/runit/chpst.c
+++ b/runit/chpst.c
@@ -28,7 +28,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */ 28/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */
29/* Dependencies on runit_lib.c removed */ 29/* Dependencies on runit_lib.c removed */
30 30
31#include "busybox.h" 31#include "libbb.h"
32 32
33#include <dirent.h> 33#include <dirent.h>
34 34
diff --git a/runit/runsv.c b/runit/runsv.c
index d5bfd4e89..20f849528 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -30,7 +30,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 30
31#include <sys/poll.h> 31#include <sys/poll.h>
32#include <sys/file.h> 32#include <sys/file.h>
33#include "busybox.h" 33#include "libbb.h"
34#include "runit_lib.h" 34#include "runit_lib.h"
35 35
36static int selfpipe[2]; 36static int selfpipe[2];
diff --git a/runit/runsvdir.c b/runit/runsvdir.c
index 4b94aa211..8db0fc189 100644
--- a/runit/runsvdir.c
+++ b/runit/runsvdir.c
@@ -30,7 +30,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 30
31#include <sys/poll.h> 31#include <sys/poll.h>
32#include <sys/file.h> 32#include <sys/file.h>
33#include "busybox.h" 33#include "libbb.h"
34#include "runit_lib.h" 34#include "runit_lib.h"
35 35
36#define MAXSERVICES 1000 36#define MAXSERVICES 1000
diff --git a/runit/sv.c b/runit/sv.c
index 01488c060..a918bb7bd 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -153,7 +153,7 @@ Exit Codes
153 153
154#include <sys/poll.h> 154#include <sys/poll.h>
155#include <sys/file.h> 155#include <sys/file.h>
156#include "busybox.h" 156#include "libbb.h"
157#include "runit_lib.h" 157#include "runit_lib.h"
158 158
159static const char *acts; 159static const char *acts;
diff --git a/runit/svlogd.c b/runit/svlogd.c
index 4e9644fd5..08e0b6446 100644
--- a/runit/svlogd.c
+++ b/runit/svlogd.c
@@ -30,7 +30,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 30
31#include <sys/poll.h> 31#include <sys/poll.h>
32#include <sys/file.h> 32#include <sys/file.h>
33#include "busybox.h" 33#include "libbb.h"
34#include "runit_lib.h" 34#include "runit_lib.h"
35 35
36static unsigned verbose; 36static unsigned verbose;
diff --git a/selinux/chcon.c b/selinux/chcon.c
index 437502c90..a8a816be0 100644
--- a/selinux/chcon.c
+++ b/selinux/chcon.c
@@ -5,10 +5,11 @@
5 * 5 *
6 * Copyright (C) 2006 - 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> 6 * Copyright (C) 2006 - 2007 KaiGai Kohei <kaigai@kaigai.gr.jp>
7 */ 7 */
8#include "busybox.h"
9#include <getopt.h> 8#include <getopt.h>
10#include <selinux/context.h> 9#include <selinux/context.h>
11 10
11#include "libbb.h"
12
12#define OPT_RECURSIVE (1<<0) /* 'R' */ 13#define OPT_RECURSIVE (1<<0) /* 'R' */
13#define OPT_CHANHES (1<<1) /* 'c' */ 14#define OPT_CHANHES (1<<1) /* 'c' */
14#define OPT_NODEREFERENCE (1<<2) /* 'h' */ 15#define OPT_NODEREFERENCE (1<<2) /* 'h' */
diff --git a/selinux/getenforce.c b/selinux/getenforce.c
index 865fed9f2..62b42637c 100644
--- a/selinux/getenforce.c
+++ b/selinux/getenforce.c
@@ -6,7 +6,7 @@
6 * 6 *
7 */ 7 */
8 8
9#include "busybox.h" 9#include "libbb.h"
10 10
11int getenforce_main(int argc, char **argv); 11int getenforce_main(int argc, char **argv);
12int getenforce_main(int argc, char **argv) 12int getenforce_main(int argc, char **argv)
diff --git a/selinux/getsebool.c b/selinux/getsebool.c
index 0479598fb..b059003c1 100644
--- a/selinux/getsebool.c
+++ b/selinux/getsebool.c
@@ -6,7 +6,7 @@
6 * 6 *
7 */ 7 */
8 8
9#include "busybox.h" 9#include "libbb.h"
10 10
11int getsebool_main(int argc, char **argv); 11int getsebool_main(int argc, char **argv);
12int getsebool_main(int argc, char **argv) 12int getsebool_main(int argc, char **argv)
diff --git a/selinux/load_policy.c b/selinux/load_policy.c
index 5d5d7d5a8..5d140bc96 100644
--- a/selinux/load_policy.c
+++ b/selinux/load_policy.c
@@ -3,7 +3,7 @@
3 * This implementation is based on old load_policy to be small. 3 * This implementation is based on old load_policy to be small.
4 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp> 4 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp>
5 */ 5 */
6#include "busybox.h" 6#include "libbb.h"
7 7
8int load_policy_main(int argc, char **argv); 8int load_policy_main(int argc, char **argv);
9int load_policy_main(int argc, char **argv) 9int load_policy_main(int argc, char **argv)
diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c
index 4e33c99f1..8d681d02f 100644
--- a/selinux/matchpathcon.c
+++ b/selinux/matchpathcon.c
@@ -4,7 +4,7 @@
4 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp> 4 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp>
5 * 5 *
6 */ 6 */
7#include "busybox.h" 7#include "libbb.h"
8 8
9static int print_matchpathcon(char *path, int noprint) 9static int print_matchpathcon(char *path, int noprint)
10{ 10{
diff --git a/selinux/runcon.c b/selinux/runcon.c
index 9f61fdbb6..741c7bba6 100644
--- a/selinux/runcon.c
+++ b/selinux/runcon.c
@@ -26,11 +26,12 @@
26 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp> 26 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp>
27 * - based on coreutils-5.97 (in Fedora Core 6) 27 * - based on coreutils-5.97 (in Fedora Core 6)
28 */ 28 */
29#include "busybox.h"
30#include <getopt.h> 29#include <getopt.h>
31#include <selinux/context.h> 30#include <selinux/context.h>
32#include <selinux/flask.h> 31#include <selinux/flask.h>
33 32
33#include "libbb.h"
34
34static context_t runcon_compute_new_context(char *user, char *role, char *type, char *range, 35static context_t runcon_compute_new_context(char *user, char *role, char *type, char *range,
35 char *command, int compute_trans) 36 char *command, int compute_trans)
36{ 37{
diff --git a/selinux/selinuxenabled.c b/selinux/selinuxenabled.c
index c93ba706f..8a9c7cd02 100644
--- a/selinux/selinuxenabled.c
+++ b/selinux/selinuxenabled.c
@@ -5,7 +5,7 @@
5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp> 5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
6 * 6 *
7 */ 7 */
8#include "busybox.h" 8#include "libbb.h"
9 9
10int selinuxenabled_main(int argc, char **argv); 10int selinuxenabled_main(int argc, char **argv);
11int selinuxenabled_main(int argc, char **argv) 11int selinuxenabled_main(int argc, char **argv)
diff --git a/selinux/setenforce.c b/selinux/setenforce.c
index 9204fcc39..59b1b0fca 100644
--- a/selinux/setenforce.c
+++ b/selinux/setenforce.c
@@ -6,7 +6,7 @@
6 * 6 *
7 */ 7 */
8 8
9#include "busybox.h" 9#include "libbb.h"
10 10
11/* These strings are arranged so that odd ones 11/* These strings are arranged so that odd ones
12 * result in security_setenforce(1) being done, 12 * result in security_setenforce(1) being done,
diff --git a/shell/ash.c b/shell/ash.c
index ed46e1c0c..b1d22e5d2 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -53,7 +53,7 @@
53#if DEBUG 53#if DEBUG
54#define _GNU_SOURCE 54#define _GNU_SOURCE
55#endif 55#endif
56#include "busybox.h" 56#include "busybox.h" /* for struct bb_applet */
57#include <paths.h> 57#include <paths.h>
58#include <setjmp.h> 58#include <setjmp.h>
59#include <fnmatch.h> 59#include <fnmatch.h>
diff --git a/shell/bbsh.c b/shell/bbsh.c
index 8f0fb0511..4fd071404 100644
--- a/shell/bbsh.c
+++ b/shell/bbsh.c
@@ -36,7 +36,7 @@
36 echo `echo hello#comment " woot` and more 36 echo `echo hello#comment " woot` and more
37*/ 37*/
38 38
39#include "busybox.h" 39#include "libbb.h"
40 40
41// A single executable, its arguments, and other information we know about it. 41// A single executable, its arguments, and other information we know about it.
42#define BBSH_FLAG_EXIT 1 42#define BBSH_FLAG_EXIT 1
diff --git a/shell/hush.c b/shell/hush.c
index 2e6f286dc..6844f06c2 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -76,12 +76,15 @@
76 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 76 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
77 */ 77 */
78 78
79#include "busybox.h" 79
80#include <glob.h> /* glob, of course */ 80#include <glob.h> /* glob, of course */
81#include <getopt.h> /* should be pretty obvious */ 81#include <getopt.h> /* should be pretty obvious */
82/* #include <dmalloc.h> */ 82/* #include <dmalloc.h> */
83
83extern char **environ; /* This is in <unistd.h>, but protected with __USE_GNU */ 84extern char **environ; /* This is in <unistd.h>, but protected with __USE_GNU */
84 85
86#include "busybox.h" /* for struct bb_applet */
87
85 88
86/* If you comment out one of these below, it will be #defined later 89/* If you comment out one of these below, it will be #defined later
87 * to perform debug printfs to stderr: */ 90 * to perform debug printfs to stderr: */
diff --git a/shell/lash.c b/shell/lash.c
index 28449b791..21c95fb1b 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -20,10 +20,11 @@
20//For debugging/development on the shell only... 20//For debugging/development on the shell only...
21//#define DEBUG_SHELL 21//#define DEBUG_SHELL
22 22
23
24#include "busybox.h"
25#include <getopt.h> 23#include <getopt.h>
26#include <glob.h> 24#include <glob.h>
25
26#include "busybox.h" /* for struct bb_applet */
27
27#define expand_t glob_t 28#define expand_t glob_t
28 29
29/* Always enable for the moment... */ 30/* Always enable for the moment... */
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 62425394c..5beec14db 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -17,7 +17,7 @@
17 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 17 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
18 */ 18 */
19 19
20#include "busybox.h" 20#include "libbb.h"
21#include <sys/syslog.h> 21#include <sys/syslog.h>
22#include <sys/klog.h> 22#include <sys/klog.h>
23 23
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 71dd53142..971a6beae 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -7,7 +7,7 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11 11
12#if !defined CONFIG_SYSLOGD 12#if !defined CONFIG_SYSLOGD
13 13
diff --git a/sysklogd/logread.c b/sysklogd/logread.c
index b1758a695..ac354b5c3 100644
--- a/sysklogd/logread.c
+++ b/sysklogd/logread.c
@@ -9,7 +9,7 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13#include <sys/ipc.h> 13#include <sys/ipc.h>
14#include <sys/sem.h> 14#include <sys/sem.h>
15#include <sys/shm.h> 15#include <sys/shm.h>
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 76a446b6a..8897e9c2d 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -13,7 +13,7 @@
13 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 13 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
14 */ 14 */
15 15
16#include "busybox.h" 16#include "libbb.h"
17#include <paths.h> 17#include <paths.h>
18#include <sys/un.h> 18#include <sys/un.h>
19 19
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index 820b837c9..ed908ede9 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -9,7 +9,7 @@
9 * Licensed under GPLv2, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13#include <unistd.h> 13#include <unistd.h>
14#include <sys/klog.h> 14#include <sys/klog.h>
15 15
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index bd584e460..f963040bd 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -12,7 +12,7 @@
12 * Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be) 12 * Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
13 */ 13 */
14 14
15#include "busybox.h" 15#include "libbb.h"
16 16
17#define DEFAULTFBDEV FB_0 17#define DEFAULTFBDEV FB_0
18#define DEFAULTFBMODE "/etc/fb.modes" 18#define DEFAULTFBMODE "/etc/fb.modes"
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c
index d694bd631..e9fbeee7b 100644
--- a/util-linux/fdformat.c
+++ b/util-linux/fdformat.c
@@ -9,7 +9,7 @@
9 * 5 July 2003 -- modified for Busybox by Erik Andersen 9 * 5 July 2003 -- modified for Busybox by Erik Andersen
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14 14
15/* Stuff extracted from linux/fd.h */ 15/* Stuff extracted from linux/fd.h */
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index f3c7ca4c6..a1893c66e 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10#include <assert.h> /* assert */ 10#include <assert.h> /* assert */
11#include "busybox.h" 11#include "libbb.h"
12 12
13/* Looks like someone forgot to add this to config system */ 13/* Looks like someone forgot to add this to config system */
14#ifndef ENABLE_FEATURE_FDISK_BLKSIZE 14#ifndef ENABLE_FEATURE_FDISK_BLKSIZE
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index ae341b066..a1f2c56cf 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -9,7 +9,7 @@
9 * Licensed under GPLv2, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13 13
14/* From <linux/fd.h> */ 14/* From <linux/fd.h> */
15#define FDFLUSH _IO(2,0x4b) 15#define FDFLUSH _IO(2,0x4b)
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index cc73cdd5a..d35a25a9d 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -87,7 +87,7 @@
87 * enforced (but it's not much fun on a character device :-). 87 * enforced (but it's not much fun on a character device :-).
88 */ 88 */
89 89
90#include "busybox.h" 90#include "libbb.h"
91#include <mntent.h> 91#include <mntent.h>
92 92
93#include "minix.h" 93#include "minix.h"
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index 68e69de5c..b4749c199 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -31,8 +31,8 @@
31 * 31 *
32 */ 32 */
33 33
34#include "busybox.h"
35#include <getopt.h> 34#include <getopt.h>
35#include "libbb.h"
36 36
37/* NON_OPT is the code that is returned when a non-option is found in '+' 37/* NON_OPT is the code that is returned when a non-option is found in '+'
38 mode */ 38 mode */
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index 85a449038..36ed1e97c 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include <getopt.h> 12#include <getopt.h>
13#include "busybox.h" 13#include "libbb.h"
14#include "dump.h" 14#include "dump.h"
15 15
16/* This is a NOEXEC applet. Be very careful! */ 16/* This is a NOEXEC applet. Be very careful! */
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 4ca8eafad..686492578 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -11,7 +11,7 @@
11#include <sys/ioctl.h> 11#include <sys/ioctl.h>
12#include <sys/utsname.h> 12#include <sys/utsname.h>
13#include <getopt.h> 13#include <getopt.h>
14#include "busybox.h" 14#include "libbb.h"
15 15
16/* Copied from linux/rtc.h to eliminate the kernel dependency */ 16/* Copied from linux/rtc.h to eliminate the kernel dependency */
17struct linux_rtc_time { 17struct linux_rtc_time {
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c
index 025f527cf..1e6206217 100644
--- a/util-linux/ipcrm.c
+++ b/util-linux/ipcrm.c
@@ -8,7 +8,7 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13/* X/OPEN tells us to use <sys/{types,ipc,sem}.h> for semctl() */ 13/* X/OPEN tells us to use <sys/{types,ipc,sem}.h> for semctl() */
14/* X/OPEN tells us to use <sys/{types,ipc,msg}.h> for msgctl() */ 14/* X/OPEN tells us to use <sys/{types,ipc,msg}.h> for msgctl() */
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index 489480c85..393f94832 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -8,7 +8,7 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include "busybox.h" 11#include "libbb.h"
12#include <errno.h> 12#include <errno.h>
13#include <time.h> 13#include <time.h>
14#include <pwd.h> 14#include <pwd.h>
diff --git a/util-linux/losetup.c b/util-linux/losetup.c
index b1e4b08b0..e2d4e4d79 100644
--- a/util-linux/losetup.c
+++ b/util-linux/losetup.c
@@ -8,9 +8,8 @@
8 */ 8 */
9 9
10#include <getopt.h> 10#include <getopt.h>
11#include <stdlib.h>
12 11
13#include "busybox.h" 12#include "libbb.h"
14 13
15int losetup_main(int argc, char **argv); 14int losetup_main(int argc, char **argv);
16int losetup_main(int argc, char **argv) 15int losetup_main(int argc, char **argv)
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 6ff49fc01..a4716e2da 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -9,7 +9,7 @@
9 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 9 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h" 12#include "libbb.h"
13#include "xregex.h" 13#include "xregex.h"
14 14
15#define DEV_PATH "/dev" 15#define DEV_PATH "/dev"
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index d70d20fda..9707ba3bd 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -62,7 +62,7 @@
62 * removed getopt based parser and added a hand rolled one. 62 * removed getopt based parser and added a hand rolled one.
63 */ 63 */
64 64
65#include "busybox.h" 65#include "libbb.h"
66#include <mntent.h> 66#include <mntent.h>
67 67
68#include "minix.h" 68#include "minix.h"
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index a84792c66..88f1fbb03 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -6,7 +6,7 @@
6 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 6 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
7 */ 7 */
8 8
9#include "busybox.h" 9#include "libbb.h"
10 10
11int mkswap_main(int argc, char **argv); 11int mkswap_main(int argc, char **argv);
12int mkswap_main(int argc, char **argv) 12int mkswap_main(int argc, char **argv)
diff --git a/util-linux/more.c b/util-linux/more.c
index 2a38ef326..30ef896bc 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -14,7 +14,7 @@
14 * Licensed under GPLv2 or later, see file License in this tarball for details. 14 * Licensed under GPLv2 or later, see file License in this tarball for details.
15 */ 15 */
16 16
17#include "busybox.h" 17#include "libbb.h"
18 18
19 19
20#if ENABLE_FEATURE_USE_TERMIOS 20#if ENABLE_FEATURE_USE_TERMIOS
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 030ea662a..fe2f1d969 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -18,7 +18,7 @@
18 mount_it_now() does the actual mount. 18 mount_it_now() does the actual mount.
19*/ 19*/
20 20
21#include "busybox.h" 21#include "libbb.h"
22#include <mntent.h> 22#include <mntent.h>
23 23
24/* Needed for nfs support only... */ 24/* Needed for nfs support only... */
diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c
index 2706bd2ff..929ed30db 100644
--- a/util-linux/pivot_root.c
+++ b/util-linux/pivot_root.c
@@ -8,7 +8,7 @@
8 * 8 *
9 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 9 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
10 */ 10 */
11#include "busybox.h" 11#include "libbb.h"
12 12
13extern int pivot_root(const char * new_root,const char * put_old); 13extern int pivot_root(const char * new_root,const char * put_old);
14 14
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index 33cf64efb..9166546ae 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -8,7 +8,7 @@
8 * Licensed under GPL v2 or later, see file License for details. 8 * Licensed under GPL v2 or later, see file License for details.
9*/ 9*/
10 10
11#include "busybox.h" 11#include "libbb.h"
12 12
13enum { RFC_868_BIAS = 2208988800UL }; 13enum { RFC_868_BIAS = 2208988800UL };
14 14
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c
index a17b9c880..f2bd3bbae 100644
--- a/util-linux/readprofile.c
+++ b/util-linux/readprofile.c
@@ -32,7 +32,7 @@
32 * Paul Mundt <lethal@linux-sh.org>. 32 * Paul Mundt <lethal@linux-sh.org>.
33 */ 33 */
34 34
35#include "busybox.h" 35#include "libbb.h"
36#include <sys/utsname.h> 36#include <sys/utsname.h>
37 37
38#define S_LEN 128 38#define S_LEN 128
diff --git a/util-linux/setarch.c b/util-linux/setarch.c
index a7a45ec4d..f6433d6ba 100644
--- a/util-linux/setarch.c
+++ b/util-linux/setarch.c
@@ -14,7 +14,7 @@
14#include <stdio.h> 14#include <stdio.h>
15#include <sys/personality.h> 15#include <sys/personality.h>
16 16
17#include "busybox.h" 17#include "libbb.h"
18 18
19int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv); 19int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv);
20int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv) 20int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv)
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 893003549..cb1bbe940 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -7,7 +7,7 @@
7 * Licensed under the GPL version 2, see the file LICENSE in this tarball. 7 * Licensed under the GPL version 2, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include "busybox.h" 10#include "libbb.h"
11#include <mntent.h> 11#include <mntent.h>
12#include <sys/swap.h> 12#include <sys/swap.h>
13 13
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index 88bb9db2a..72a2f46c1 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -6,7 +6,7 @@
6 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 6 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
7 */ 7 */
8 8
9#include "busybox.h" 9#include "libbb.h"
10#include <sys/vfs.h> 10#include <sys/vfs.h>
11 11
12 12
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 19f13454b..7063a474d 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -8,9 +8,9 @@
8 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 8 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include "busybox.h"
12#include <mntent.h> 11#include <mntent.h>
13#include <getopt.h> 12#include <getopt.h>
13#include "libbb.h"
14 14
15#define OPTION_STRING "flDnravdt:" 15#define OPTION_STRING "flDnravdt:"
16#define OPT_FORCE 1 16#define OPT_FORCE 1