usage.c: remove reference to busybox.h

*: s/include "busybox.h"/include "libbb.h"
This commit is contained in:
Denis Vlasenko
2007-05-26 19:00:18 +00:00
parent 5a6aeddfa7
commit b6adbf1be2
251 changed files with 270 additions and 269 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
* 3) Save some space by using strcmp(). Calling strncmp() here was silly.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -17,7 +17,7 @@
* Major size reduction... over 50% (>1.5k) on i386.
*/
#include "busybox.h"
#include "libbb.h"
#define THURSDAY 4 /* for reformation */
#define SATURDAY 6 /* 1 Jan 1 was a Saturday */
+1 -1
View File
@@ -10,7 +10,7 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/cat.html */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -10,7 +10,7 @@
/* See "Cat -v considered harmful" at
* http://cm.bell-labs.com/cm/cs/doc/84/kp.ps.gz */
#include "busybox.h"
#include "libbb.h"
int catv_main(int argc, char **argv);
int catv_main(int argc, char **argv)
+1 -1
View File
@@ -11,7 +11,7 @@
/* BB_AUDIT GNU defects - unsupported long options. */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/chgrp.html */
#include "busybox.h"
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -14,7 +14,7 @@
/* BB_AUDIT GNU defects - unsupported long options. */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */
#include "busybox.h"
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -11,7 +11,7 @@
/* BB_AUDIT GNU defects - unsupported long options. */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/chown.html */
#include "busybox.h"
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -9,7 +9,7 @@
/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
#include "busybox.h"
#include "libbb.h"
int chroot_main(int argc, char **argv);
int chroot_main(int argc, char **argv)
+1 -1
View File
@@ -6,7 +6,7 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */
#include "busybox.h"
#include "libbb.h"
int cksum_main(int argc, char **argv);
int cksum_main(int argc, char **argv)
+1 -1
View File
@@ -21,7 +21,7 @@
* in the '-l' case.
*/
#include "busybox.h"
#include "libbb.h"
static FILE *cmp_xfopen_input(const char *filename)
{
+1 -1
View File
@@ -7,7 +7,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
#define COMM_OPT_1 (1 << 0)
#define COMM_OPT_2 (1 << 1)
+1 -1
View File
@@ -15,7 +15,7 @@
* Size reduction.
*/
#include "busybox.h"
#include "libbb.h"
#include "libcoreutils/coreutils.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -9,7 +9,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -10,7 +10,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
/* This 'date' command supports only 2 time setting formats,
all the GNU strftime stuff (its in libc, lets use it),
+1 -1
View File
@@ -9,7 +9,7 @@
*/
#include <signal.h> /* For FEATURE_DD_SIGNAL_HANDLING */
#include "busybox.h"
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -24,7 +24,7 @@
#include <unistd.h>
#include <mntent.h>
#include <sys/vfs.h>
#include "busybox.h"
#include "libbb.h"
#ifndef CONFIG_FEATURE_HUMAN_READABLE
static long kscale(long b, long bs)
+1 -1
View File
@@ -12,7 +12,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
#define FSIZE_MAX 32768
+1 -1
View File
@@ -10,7 +10,7 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/dirname.html */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -12,7 +12,7 @@
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
#include "busybox.h"
#include "libbb.h"
enum ConvType {
CT_UNIX2DOS = 1,
+1 -1
View File
@@ -23,7 +23,7 @@
* 4) Fixed busybox bug #1284 involving long overflow with human_readable.
*/
#include "busybox.h"
#include "libbb.h"
#if ENABLE_FEATURE_HUMAN_READABLE
# if ENABLE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K
+1 -1
View File
@@ -23,7 +23,7 @@
* The previous version did not allow 4-digit octals.
*/
#include "busybox.h"
#include "libbb.h"
int bb_echo(char **argv)
{
+2 -2
View File
@@ -29,11 +29,11 @@
* - use xfunc_error_retval
*/
#include "busybox.h"
#include <errno.h>
#include <getopt.h> /* struct option */
extern char **environ;
#include "libbb.h"
#if ENABLE_FEATURE_ENV_LONG_OPTIONS
static const struct option env_long_options[] = {
{ "ignore-environment", 0, NULL, 'i' },
+1 -1
View File
@@ -25,7 +25,7 @@
/* no getopt needed */
#include "busybox.h"
#include "libbb.h"
#include "xregex.h"
/* The kinds of value we can have. */
+1 -1
View File
@@ -10,7 +10,7 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/false.html */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -10,7 +10,7 @@
Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
#include "busybox.h"
#include "libbb.h"
static unsigned long flags;
#define FLAG_COUNT_BYTES 1
+1 -1
View File
@@ -11,7 +11,7 @@
/* BB_AUDIT GNU compatible -c, -q, and -v options in 'fancy' configuration. */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */
#include "busybox.h"
#include "libbb.h"
static const char head_opts[] =
"n:"
+1 -1
View File
@@ -9,7 +9,7 @@
/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -13,7 +13,7 @@
* -Z option support: by Yuichi Nakamura <ynakam@hitachisoft.jp>
*/
#include "busybox.h"
#include "libbb.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
+3 -2
View File
@@ -9,11 +9,12 @@
* owner/group, will probably modify bb_make_directory(...)
*/
#include "busybox.h"
#include "libcoreutils/coreutils.h"
#include <libgen.h>
#include <getopt.h> /* struct option */
#include "libbb.h"
#include "libcoreutils/coreutils.h"
#if ENABLE_FEATURE_INSTALL_LONG_OPTIONS
static const struct option install_long_options[] = {
{ "directory", 0, NULL, 'd' },
+1 -1
View File
@@ -2,7 +2,7 @@
/* BB_AUDIT SUSv3 N/A -- Apparently a busybox (obsolete?) extension. */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -11,7 +11,7 @@
/* BB_AUDIT GNU options missing: -d, -F, -i, and -v. */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/ln.html */
#include "busybox.h"
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -20,7 +20,7 @@
* a diagnostic message and an error return.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -30,7 +30,7 @@
*/
#include <getopt.h>
#include "busybox.h"
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -6,7 +6,7 @@
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
#include "busybox.h"
#include "libbb.h"
typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t;
+1 -1
View File
@@ -20,7 +20,7 @@
*/
#include <getopt.h> /* struct option */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -10,7 +10,7 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/mkfifo.html */
#include "busybox.h"
#include "libbb.h"
#include "libcoreutils/coreutils.h"
int mkfifo_main(int argc, char **argv);
+1 -1
View File
@@ -11,7 +11,7 @@
#include <sys/sysmacros.h> // For makedev
#include "busybox.h"
#include "libbb.h"
#include "libcoreutils/coreutils.h"
static const char modes_chars[] = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 };
+1 -1
View File
@@ -20,7 +20,7 @@
#include <errno.h>
#include <stdlib.h>
#include <getopt.h> /* struct option */
#include "busybox.h"
#include "libbb.h"
#include "libcoreutils/coreutils.h"
#if ENABLE_FEATURE_MV_LONG_OPTIONS
+1 -1
View File
@@ -8,7 +8,7 @@
*/
#include <sys/resource.h>
#include "busybox.h"
#include "libbb.h"
int nice_main(int argc, char **argv);
int nice_main(int argc, char **argv)
+1 -1
View File
@@ -10,7 +10,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
int nohup_main(int argc, char **argv);
int nohup_main(int argc, char **argv)
+1 -1
View File
@@ -12,7 +12,7 @@
*/
#include "busybox.h"
#include "libbb.h"
#if ENABLE_DESKTOP
/* This one provides -t (busybox's own build script needs it) */
#include "od_bloaty.c"
+1 -2
View File
@@ -49,8 +49,7 @@ diff -u -a std bbox >bbox.diff || { echo Different!; sleep 1; }
*/
#include "busybox.h"
#include "libbb.h"
#include <getopt.h>
#define assert(a) ((void)0)
+1 -1
View File
@@ -11,7 +11,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "busybox.h"
#include "libbb.h"
extern char **environ;
int printenv_main(int argc, char **argv);
+1 -1
View File
@@ -38,7 +38,7 @@
// 19990508 Busy Boxed! Dave Cinege
#include "busybox.h"
#include "libbb.h"
typedef void (*converter)(const char *arg, void *result);
+1 -1
View File
@@ -7,7 +7,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -10,7 +10,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
int realpath_main(int argc, char **argv);
int realpath_main(int argc, char **argv)
+1 -1
View File
@@ -15,7 +15,7 @@
* Size reduction.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -11,7 +11,7 @@
/* http://www.opengroup.org/onlinepubs/007904975/utilities/rmdir.html */
#include <libgen.h>
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -7,7 +7,7 @@
* Licensed under the GPL v2, see the file LICENSE in this tarball.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -18,7 +18,7 @@
* time suffixes for seconds, minutes, hours, and days.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -12,7 +12,7 @@
* http://www.opengroup.org/onlinepubs/007904975/utilities/sort.html
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -9,7 +9,7 @@
* SUSv3 requirements:
* http://www.opengroup.org/onlinepubs/009695399/utilities/split.html
*/
#include "busybox.h"
#include "libbb.h"
static const struct suffix_mult split_suffices[] = {
#if ENABLE_FEATURE_SPLIT_FANCY
+1 -1
View File
@@ -13,7 +13,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
/* vars to control behavior */
#define OPT_FILESYS (1<<0)
+1 -1
View File
@@ -21,7 +21,7 @@
*/
#include "busybox.h"
#include "libbb.h"
#ifndef _POSIX_VDISABLE
# define _POSIX_VDISABLE ((unsigned char) 0)
+1 -1
View File
@@ -13,7 +13,7 @@
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
#include "busybox.h"
#include "libbb.h"
enum { SUM_BSD, PRINT_NAME, SUM_SYSV };
+1 -1
View File
@@ -9,7 +9,7 @@
/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -24,7 +24,7 @@
* 7) lseek attempted when count==0 even if arg was +0 (from top)
*/
#include "busybox.h"
#include "libbb.h"
static const struct suffix_mult tail_suffixes[] = {
{ "b", 512 },
+1 -1
View File
@@ -10,7 +10,7 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/tee.html */
#include "busybox.h"
#include "libbb.h"
#include <signal.h>
int tee_main(int argc, char **argv);
+1 -1
View File
@@ -20,7 +20,7 @@
* "This program is in the Public Domain."
*/
#include "busybox.h"
#include "libbb.h"
#include <setjmp.h>
/* This is a NOEXEC applet. Be very careful! */
+1 -1
View File
@@ -17,7 +17,7 @@
* Also, exiting on a failure was a bug. All args should be processed.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -18,7 +18,7 @@
/* http://www.opengroup.org/onlinepubs/009695399/utilities/tr.html
* TODO: xdigit, graph, print
*/
#include "busybox.h"
#include "libbb.h"
#define ASCII 0377
+1 -1
View File
@@ -10,7 +10,7 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/true.html */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -10,7 +10,7 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/tty.html */
#include "busybox.h"
#include "libbb.h"
int tty_main(int argc, char **argv);
int tty_main(int argc, char **argv)
+1 -1
View File
@@ -37,7 +37,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include "busybox.h"
#include "libbb.h"
typedef struct {
struct utsname name;
+1 -1
View File
@@ -10,7 +10,7 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */
#include "busybox.h"
#include "libbb.h"
static const char uniq_opts[] = "cdu" "f:s:" "cdu\0\1\2\4";
+1 -1
View File
@@ -9,7 +9,7 @@
/* BB_AUDIT SUSv3 N/A -- Apparently a busybox extension. */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -12,7 +12,7 @@
*/
#include "busybox.h"
#include "libbb.h"
static void read_stduu(FILE *src_stream, FILE *dst_stream)
{
+1 -1
View File
@@ -8,7 +8,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include "libbb.h"
#define SRC_BUF_SIZE 45 // This *MUST* be a multiple of 3
+1 -1
View File
@@ -11,7 +11,7 @@
/* BB_AUDIT SUSv3 N/A */
/* BB_AUDIT GNU defects -- only option -n is supported. */
#include "busybox.h"
#include "libbb.h"
// procps 2.0.18:
// watch [-d] [-n seconds]
+1 -1
View File
@@ -41,7 +41,7 @@
* for which 'wc -c' should output '0'.
*/
#include "busybox.h"
#include "libbb.h"
#ifdef CONFIG_LOCALE_SUPPORT
#define isspace_given_isprint(c) isspace(c)
+1 -1
View File
@@ -17,7 +17,7 @@
*----------------------------------------------------------------------
*/
#include "busybox.h"
#include "libbb.h"
#include <utmp.h>
#include <time.h>
+1 -1
View File
@@ -9,7 +9,7 @@
/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
+1 -1
View File
@@ -14,7 +14,7 @@
* Size reductions and removed redundant applet name prefix from error messages.
*/
#include "busybox.h"
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */