* between different systems
* http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html
*/
-
//config:config AR
//config: bool "ar (9.5 kb)"
//config: default n # needs to be improved to be able to replace binutils ar
//config: This enables archive creation (-c and -r) with busybox ar.
//applet:IF_AR(APPLET(ar, BB_DIR_USR_BIN, BB_SUID_DROP))
+
//kbuild:lib-$(CONFIG_AR) += ar.o
//usage:#define ar_trivial_usage
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-#include "libbb.h"
-#include "bb_archive.h"
-
//kbuild:lib-$(CONFIG_ZCAT) += bbunzip.o
//kbuild:lib-$(CONFIG_GUNZIP) += bbunzip.o
//kbuild:lib-$(CONFIG_BZCAT) += bbunzip.o
/* gzip_main() too: */
//kbuild:lib-$(CONFIG_GZIP) += bbunzip.o
+#include "libbb.h"
+#include "bb_archive.h"
+
/* Note: must be kept in sync with archival/lzop.c */
enum {
OPT_STDOUT = 1 << 0,
* See README and LICENSE files in bz/ directory for more information
* about bzip2 library code.
*/
-
//config:config BZIP2
//config: bool "bzip2 (18 kb)"
//config: default y
//config: enabled.
//applet:IF_BZIP2(APPLET(bzip2, BB_DIR_USR_BIN, BB_SUID_DROP))
+
//kbuild:lib-$(CONFIG_BZIP2) += bzip2.o
//usage:#define bzip2_trivial_usage
* Doesn't check CRC's
* Only supports new ASCII and CRC formats
*/
-#include "libbb.h"
-#include "common_bufsiz.h"
-#include "bb_archive.h"
-
//config:config CPIO
//config: bool "cpio (14 kb)"
//config: default y
//config: Passthrough mode. Rarely used.
//applet:IF_CPIO(APPLET(cpio, BB_DIR_BIN, BB_SUID_DROP))
+
//kbuild:lib-$(CONFIG_CPIO) += cpio.o
//usage:#define cpio_trivial_usage
-u, --unconditional Replace all files unconditionally
*/
+#include "libbb.h"
+#include "common_bufsiz.h"
+#include "bb_archive.h"
+
enum {
OPT_EXTRACT = (1 << 0),
OPT_TEST = (1 << 1),
* bugs that need to be fixed
* - (unknown, please let me know when you find any)
*/
-
//config:config DPKG
//config: bool "dpkg (44 kb)"
//config: default y
//config: you should use the official dpkg if possible.
//applet:IF_DPKG(APPLET(dpkg, BB_DIR_USR_BIN, BB_SUID_DROP))
+
//kbuild:lib-$(CONFIG_DPKG) += dpkg.o
//usage:#define dpkg_trivial_usage
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config DPKG_DEB
//config: bool "dpkg_deb"
//config: default y
gzip: bogus: No such file or directory
aa: 85.1% -- replaced with aa.gz
*/
-
//config:config GZIP
//config: bool "gzip (19 kb)"
//config: default y
//config: enabled.
//applet:IF_GZIP(APPLET(gzip, BB_DIR_BIN, BB_SUID_DROP))
+
//kbuild:lib-$(CONFIG_GZIP) += gzip.o
//usage:#define gzip_trivial_usage
"Minimalized" for busybox by Alain Knaff
*/
-
//config:config LZOP
//config: bool "lzop (13 kb)"
//config: default y
// APPLET_ODDNAME:name main location suid_type help
//applet:IF_UNLZOP( APPLET_ODDNAME(unlzop, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, unlzop))
//applet:IF_LZOPCAT(APPLET_ODDNAME(lzopcat, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, lzopcat))
+
//kbuild:lib-$(CONFIG_LZOP) += lzop.o
//kbuild:lib-$(CONFIG_UNLZOP) += lzop.o
//kbuild:lib-$(CONFIG_LZOPCAT) += lzop.o
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config TAR
//config: bool "tar (40 kb)"
//config: default y
//config: when extracting files from tar archives.
//applet:IF_TAR(APPLET(tar, BB_DIR_BIN, BB_SUID_DROP))
+
//kbuild:lib-$(CONFIG_TAR) += tar.o
#include <fnmatch.h>
* Copyright (C) Arne Bernin <arne@matrix.loopback.org>
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
- *
*/
//config:config DUMPKMAP
//config: bool "dumpkmap (1.3 kb)"
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-/* "Standard" version of this tool is in ncurses package */
-
//config:config RESET
//config: bool "reset (275 bytes)"
//config: default y
//usage:#define reset_full_usage "\n\n"
//usage: "Reset the screen"
+/* "Standard" version of this tool is in ncurses package */
+
#include "libbb.h"
#define ESC "\033"
//applet:IF_PRINTF(APPLET_NOFORK(printf, printf, BB_DIR_USR_BIN, BB_SUID_DROP, printf))
//kbuild:lib-$(CONFIG_PRINTF) += printf.o
-
//kbuild:lib-$(CONFIG_ASH_PRINTF) += printf.o
//kbuild:lib-$(CONFIG_HUSH_PRINTF) += printf.o
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config SHUF
//config: bool "shuf (5.4 kb)"
//config: default y
//config: help
//config: Generate random permutations
-//kbuild:lib-$(CONFIG_SHUF) += shuf.o
//applet:IF_SHUF(APPLET_NOEXEC(shuf, shuf, BB_DIR_USR_BIN, BB_SUID_DROP, shuf))
+//kbuild:lib-$(CONFIG_SHUF) += shuf.o
+
//usage:#define shuf_trivial_usage
//usage: "[-e|-i L-H] [-n NUM] [-o FILE] [-z] [FILE|ARG...]"
//usage:#define shuf_full_usage "\n\n"
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config AWK
//config: bool "awk (22 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
-/* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */
-/* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */
-
//config:config CMP
//config: bool "cmp (5.4 kb)"
//config: default y
//config: cmp is used to compare two files and returns the result
//config: to standard output.
-//kbuild:lib-$(CONFIG_CMP) += cmp.o
-
//applet:IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP))
+//kbuild:lib-$(CONFIG_CMP) += cmp.o
+
//usage:#define cmp_trivial_usage
//usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]"
//usage:#define cmp_full_usage "\n\n"
//usage: "\n for all differing bytes"
//usage: "\n -s Quiet"
+/* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */
+/* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */
+
#include "libbb.h"
static const char fmt_eof[] ALIGN1 = "cmp: EOF on %s\n";
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/*
* The following code uses an algorithm due to Harold Stone,
* which finds a pair of longest identical subsequences in
* 3*(number of k-candidates installed), typically about
* 6n words for files of length n.
*/
-
//config:config DIFF
//config: bool "diff (13 kb)"
//config: default y
//config: This option enables support for directory and subdirectory
//config: comparison.
-//kbuild:lib-$(CONFIG_DIFF) += diff.o
-
//applet:IF_DIFF(APPLET(diff, BB_DIR_USR_BIN, BB_SUID_DROP))
+//kbuild:lib-$(CONFIG_DIFF) += diff.o
+
//usage:#define diff_trivial_usage
//usage: "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
//usage:#define diff_full_usage "\n\n"
* -F fuzz (number, default 2)
* [file] which file to patch
*/
-
//config:config PATCH
//config: bool "patch (9.1 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
/* Code overview.
*
* Files are laid out to avoid unnecessary function declarations. So for
*
* sed_main() is where external code calls into this, with a command line.
*/
-
/* Supported features and commands in this version of sed:
*
* - comments ('#')
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html
* http://sed.sourceforge.net/sedfaq3.html
*/
-
//config:config SED
//config: bool "sed (12 kb)"
//config: default y
//config: sed is used to perform text transformations on a file
//config: or input from a pipeline.
-//kbuild:lib-$(CONFIG_SED) += sed.o
-
//applet:IF_SED(APPLET(sed, BB_DIR_BIN, BB_SUID_DROP))
+//kbuild:lib-$(CONFIG_SED) += sed.o
+
//usage:#define sed_trivial_usage
//usage: "[-i[SFX]] [-nrE] [-f FILE]... [-e CMD]... [FILE]...\n"
//usage: "or: sed [-i[SFX]] [-nrE] CMD [FILE]..."
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/*
* Things To Do:
* EXINIT
* ":r !cmd" and "!cmd" to filter text through an external command
* An "ex" line oriented mode- maybe using "cmdedit"
*/
-
//config:config VI
//config: bool "vi (22 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
/* findutils-4.1.20:
*
* # find file.txt -exec 'echo {}' '{} {}' ';'
* # find t z t z '(' -name '*t*' -o -name '*z*' ')' -o -print
* (no output)
*/
-
/* Testing script
* ./busybox find "$@" | tee /tmp/bb_find
* echo ==================
* echo ==================
* diff -u /tmp/std_find /tmp/bb_find && echo Identical
*/
-
//config:config FIND
//config: bool "find (14 kb)"
//config: default y
*
* (C) 2006 Jac Goudsmit added -o option
*/
-
//config:config GREP
//config: bool "grep (8.5 kb)"
//config: default y
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
-//applet:IF_BOOTCHARTD(APPLET(bootchartd, BB_DIR_SBIN, BB_SUID_DROP))
-
-//kbuild:lib-$(CONFIG_BOOTCHARTD) += bootchartd.o
-
//config:config BOOTCHARTD
//config: bool "bootchartd (10 kb)"
//config: default y
//config: Enable reading and parsing of $PWD/bootchartd.conf
//config: and /etc/bootchartd.conf files.
+//applet:IF_BOOTCHARTD(APPLET(bootchartd, BB_DIR_SBIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_BOOTCHARTD) += bootchartd.o
+
#include "libbb.h"
#include "common_bufsiz.h"
/* After libbb.h, since it needs sys/types.h on some systems */
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config HALT
//config: bool "halt (3.7 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config INIT
//config: bool "init (9.3 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config FEATURE_RTMINMAX
//config: bool "Support RTMIN[+n] and RTMAX[-n] signal names"
//config: default y
* Copyright (C) 2007 by Tito Ragusa <farmatito@tiscali.it>
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
- *
*/
//config:config ADDGROUP
//config: bool "addgroup (8.2 kb)"
* Copyright (C) 2009 Bernhard Reutner-Fischer
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
- *
*/
//config:config BEEP
//config: bool "beep (3 kb)"
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/*
* TODO:
* - Add more regular expression support - search modifiers, certain matches, etc.
* - the inp file pointer is used so that keyboard input works after
* redirected input has been read from stdin
*/
-
//config:config LESS
//config: bool "less (15 kb)"
//config: default y
*
* TODO: add support for large (>4GB) MTD devices
*/
-
//config:config NANDWRITE
//config: bool "nandwrite (5.9 kb)"
//config: default y
* Copyright (C) 2006 Bernhard Reutner-Fischer
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
- *
*/
//config:config RAIDAUTORUN
//config: bool "raidautorun (1.4 kb)"
/* vi: set sw=4 ts=4: */
/*
-* rfkill implementation for busybox
-*
-* Copyright (C) 2010 Malek Degachi <malek-degachi@laposte.net>
-*
-* Licensed under GPLv2 or later, see file LICENSE in this source tree.
-*/
-
+ * rfkill implementation for busybox
+ *
+ * Copyright (C) 2010 Malek Degachi <malek-degachi@laposte.net>
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
+ */
//config:config RFKILL
//config: bool "rfkill (5.3 kb)"
//config: default n # doesn't build on Ubuntu 9.04
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config SETSERIAL
//config: bool "setserial (6.6 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config UBIATTACH
//config: bool "ubiattach (4.7 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config HOSTNAME
//config: bool "hostname (5.6 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config IFUP
//config: bool "ifup (17 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config NAMEIF
//config: bool "nameif (6.6 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-#include "libbb.h"
-#include <netinet/tcp.h>
-#include <linux/fs.h>
-
-//applet:IF_NBDCLIENT(APPLET_NOEXEC(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient))
-
-//kbuild:lib-$(CONFIG_NBDCLIENT) += nbd-client.o
-
//config:config NBDCLIENT
//config: bool "nbd-client (4.6 kb)"
//config: default y
//config: help
//config: Network block device client
+//applet:IF_NBDCLIENT(APPLET_NOEXEC(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient))
+
+//kbuild:lib-$(CONFIG_NBDCLIENT) += nbd-client.o
+
+#include "libbb.h"
+#include <netinet/tcp.h>
+#include <linux/fs.h>
+
#define NBD_SET_SOCK _IO(0xab, 0)
#define NBD_SET_BLKSIZE _IO(0xab, 1)
#define NBD_SET_SIZE _IO(0xab, 2)
* This version is an adaptation of ping.c from busybox.
* The code was modified by Bart Visscher <magick@linux-fan.com>
*/
-
-#include <net/if.h>
-#include <netinet/ip_icmp.h>
-#include "libbb.h"
-#include "common_bufsiz.h"
-
-#ifdef __BIONIC__
-/* should be in netinet/ip_icmp.h */
-# define ICMP_DEST_UNREACH 3 /* Destination Unreachable */
-# define ICMP_SOURCE_QUENCH 4 /* Source Quench */
-# define ICMP_REDIRECT 5 /* Redirect (change route) */
-# define ICMP_ECHO 8 /* Echo Request */
-# define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */
-# define ICMP_PARAMETERPROB 12 /* Parameter Problem */
-# define ICMP_TIMESTAMP 13 /* Timestamp Request */
-# define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */
-# define ICMP_INFO_REQUEST 15 /* Information Request */
-# define ICMP_INFO_REPLY 16 /* Information Reply */
-# define ICMP_ADDRESS 17 /* Address Mask Request */
-# define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */
-#endif
-
//config:config PING
//config: bool "ping (9.5 kb)"
//config: default y
//usage: "1 packets transmitted, 1 packets received, 0% packet loss\n"
//usage: "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
+#include <net/if.h>
+#include <netinet/ip_icmp.h>
+#include "libbb.h"
+#include "common_bufsiz.h"
+
+#ifdef __BIONIC__
+/* should be in netinet/ip_icmp.h */
+# define ICMP_DEST_UNREACH 3 /* Destination Unreachable */
+# define ICMP_SOURCE_QUENCH 4 /* Source Quench */
+# define ICMP_REDIRECT 5 /* Redirect (change route) */
+# define ICMP_ECHO 8 /* Echo Request */
+# define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */
+# define ICMP_PARAMETERPROB 12 /* Parameter Problem */
+# define ICMP_TIMESTAMP 13 /* Timestamp Request */
+# define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */
+# define ICMP_INFO_REQUEST 15 /* Information Request */
+# define ICMP_INFO_REPLY 16 /* Information Reply */
+# define ICMP_ADDRESS 17 /* Address Mask Request */
+# define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */
+#endif
+
#if ENABLE_PING6
# include <netinet/icmp6.h>
/* I see RENUMBERED constants in bits/in.h - !!?
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config UDHCPC6
//config: bool "udhcpc6"
//config: default n # not yet ready
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
-/* BB_AUDIT SUSv3 N/A */
-
//config:config VCONFIG
//config: bool "vconfig (2.5 kb)"
//config: default y
#include "libbb.h"
#include <net/if.h>
+/* BB_AUDIT SUSv3 N/A */
+
/* Stuff from linux/if_vlan.h, kernel version 2.4.23 */
enum vlan_ioctl_cmds {
ADD_VLAN_CMD,
* Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org>
* Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2.
*/
-
//config:config WGET
//config: bool "wget (35 kb)"
//config: default y
* Add ipv6 support
* Add proxy support
*/
-
//config:config WHOIS
//config: bool "whois (6.6 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config IOSTAT
//config: bool "iostat (7.4 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config LSOF
//config: bool "lsof (3.6 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
-//applet:IF_MPSTAT(APPLET(mpstat, BB_DIR_BIN, BB_SUID_DROP))
-/* shouldn't be noexec: "mpstat INTERVAL" runs indefinitely */
-
-//kbuild:lib-$(CONFIG_MPSTAT) += mpstat.o
-
//config:config MPSTAT
//config: bool "mpstat (10 kb)"
//config: default y
//config: help
//config: Per-processor statistics
+//applet:IF_MPSTAT(APPLET(mpstat, BB_DIR_BIN, BB_SUID_DROP))
+/* shouldn't be noexec: "mpstat INTERVAL" runs indefinitely */
+
+//kbuild:lib-$(CONFIG_MPSTAT) += mpstat.o
+
#include "libbb.h"
#include <sys/utsname.h> /* struct utsname */
*
* Contact me: vda.linux@googlemail.com
*/
-
//config:config NMETER
//config: bool "nmeter (10 kb)"
//config: default y
* Licensed under GPLv2 or later, see the LICENSE file in this source tree
* for details.
*/
-
//config:config PMAP
//config: bool "pmap (6 kb)"
//config: default y
//config: Display processes' memory mappings.
//applet:IF_PMAP(APPLET(pmap, BB_DIR_USR_BIN, BB_SUID_DROP))
+
//kbuild:lib-$(CONFIG_PMAP) += pmap.o
//usage:#define pmap_trivial_usage
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config PWDX
//config: bool "pwdx (3.5 kb)"
//config: default y
the GNU General Public License version 2 or later, incorporated
herein by reference.
*/
-
-//applet:IF_SMEMCAP(APPLET(smemcap, BB_DIR_USR_BIN, BB_SUID_DROP))
-
-//kbuild:lib-$(CONFIG_SMEMCAP) += smemcap.o
-
//config:config SMEMCAP
//config: bool "smemcap (2.5 kb)"
//config: default y
//config: smemcap is a tool for capturing process data for smem,
//config: a memory usage statistic tool.
+//applet:IF_SMEMCAP(APPLET(smemcap, BB_DIR_USR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_SMEMCAP) += smemcap.o
+
#include "libbb.h"
#include "bb_archive.h"
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
-/* BB_AUDIT SUSv3 N/A */
-/* BB_AUDIT GNU defects -- only option -n is supported. */
-
//config:config WATCH
//config: bool "watch (4.1 kb)"
//config: default y
//usage: "Mon Dec 17 10:31:42 GMT 2000\n"
//usage: "Mon Dec 17 10:31:44 GMT 2000"
+/* BB_AUDIT SUSv3 N/A */
+/* BB_AUDIT GNU defects -- only option -n is supported. */
+
#include "libbb.h"
#define ESC "\033"
-*: *: pid *
*/
-
//config:config SVLOGD
//config: bool "svlogd (15 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-#include "libbb.h"
-
-//applet:IF_CTTYHACK(APPLET_NOEXEC(cttyhack, cttyhack, BB_DIR_BIN, BB_SUID_DROP, cttyhack))
-
-//kbuild:lib-$(CONFIG_CTTYHACK) += cttyhack.o
-
//config:config CTTYHACK
//config: bool "cttyhack (2.5 kb)"
//config: default y
//config:
//config: # getty 115200 $(cttyhack)
+//applet:IF_CTTYHACK(APPLET_NOEXEC(cttyhack, cttyhack, BB_DIR_BIN, BB_SUID_DROP, cttyhack))
+
+//kbuild:lib-$(CONFIG_CTTYHACK) += cttyhack.o
+
//usage:#define cttyhack_trivial_usage
//usage: "[PROG ARGS]"
//usage:#define cttyhack_full_usage "\n\n"
//usage: "\nStarting interactive shell from boot shell script:"
//usage: "\n setsid cttyhack sh"
+#include "libbb.h"
+
#if !defined(__linux__) && !defined(TIOCGSERIAL) && !ENABLE_WERROR
# warning cttyhack will not be able to detect a controlling tty on this system
#endif
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config FALLOCATE
//config: bool "fallocate (5 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config FSFREEZE
//config: bool "fsfreeze (3.6 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config FSTRIM
//config: bool "fstrim (5.5 kb)"
//config: default y
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config MDEV
//config: bool "mdev (16 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config MESG
//config: bool "mesg (1.2 kb)"
//config: default y
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config NSENTER
//config: bool "nsenter (8.6 kb)"
//config: default y
* Grant Erickson <gerickson@nuovations.com>
*
* Licensed under GPLv2, see file LICENSE in this source tree.
- *
*/
//config:config RDEV
//config: bool "rdev (1.4 kb)"
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config TASKSET
//config: bool "taskset (4.1 kb)"
//config: default y
//config: in this case. Otherwise, it is limited to sizeof(long).
//applet:IF_TASKSET(APPLET_NOEXEC(taskset, taskset, BB_DIR_USR_BIN, BB_SUID_DROP, taskset))
+
//kbuild:lib-$(CONFIG_TASKSET) += taskset.o
//usage:#define taskset_trivial_usage
* Based on code fragments from bcache-tools by Kent Overstreet:
* http://evilpiepirate.org/git/bcache-tools.git
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BCACHE) += bcache.o
-
//config:config FEATURE_VOLUMEID_BCACHE
//config: bool "bcache filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BCACHE) += bcache.o
+
#include "volume_id_internal.h"
#define SB_LABEL_SIZE 32
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BTRFS) += btrfs.o
-
//config:config FEATURE_VOLUMEID_BTRFS
//config: bool "btrfs filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BTRFS) += btrfs.o
+
#include "volume_id_internal.h"
#define BTRFS_UUID_SIZE 16
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_CRAMFS) += cramfs.o
-
//config:config FEATURE_VOLUMEID_CRAMFS
//config: bool "cramfs filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_CRAMFS) += cramfs.o
+
#include "volume_id_internal.h"
struct cramfs_super {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXFAT) += exfat.o
-
//config:config FEATURE_VOLUMEID_EXFAT
//config: bool "exFAT filesystem"
//config: default y
//config: for flash drives. It has many features from NTFS, but with less
//config: overhead. exFAT is used on most SDXC cards for consumer electronics.
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXFAT) += exfat.o
+
#include "volume_id_internal.h"
#define EXFAT_SB_OFFSET 0
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXT) += ext.o
-
//config:config FEATURE_VOLUMEID_EXT
//config: bool "Ext filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXT) += ext.o
+
#include "volume_id_internal.h"
#include "bb_e2fs_defs.h"
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_F2FS) += f2fs.o
-
//config:config FEATURE_VOLUMEID_F2FS
//config: bool "f2fs filesystem"
//config: default y
//config: known issues of the older log structured file systems, such as high
//config: cleaning overhead.
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_F2FS) += f2fs.o
+
#include "volume_id_internal.h"
#define F2FS_MAGIC 0xF2F52010 // F2FS Magic Number
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_FAT) += fat.o
-
//config:config FEATURE_VOLUMEID_FAT
//config: bool "fat filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_FAT) += fat.o
+
#include "volume_id_internal.h"
/* linux/msdos_fs.h says: */
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_HFS) += hfs.o
-
//config:config FEATURE_VOLUMEID_HFS
//config: bool "hfs filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_HFS) += hfs.o
+
#include "volume_id_internal.h"
struct hfs_finder_info{
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ISO9660) += iso9660.o
-
//config:config FEATURE_VOLUMEID_ISO9660
//config: bool "iso9660 filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ISO9660) += iso9660.o
+
#include "volume_id_internal.h"
#define ISO_SUPERBLOCK_OFFSET 0x8000
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_JFS) += jfs.o
-
//config:config FEATURE_VOLUMEID_JFS
//config: bool "jfs filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_JFS) += jfs.o
+
#include "volume_id_internal.h"
struct jfs_super_block {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXRAID) += linux_raid.o
-
//config:config FEATURE_VOLUMEID_LINUXRAID
//config: bool "linuxraid"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXRAID) += linux_raid.o
+
#include "volume_id_internal.h"
struct mdp_super_block {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXSWAP) += linux_swap.o
-
//config:config FEATURE_VOLUMEID_LINUXSWAP
//config: bool "linux swap filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXSWAP) += linux_swap.o
+
#include "volume_id_internal.h"
struct swap_header_v1_2 {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LUKS) += luks.o
-
//config:config FEATURE_VOLUMEID_LUKS
//config: bool "luks filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LUKS) += luks.o
+
#include "volume_id_internal.h"
#define LUKS_MAGIC_L 6
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NILFS) += nilfs.o
-
//config:config FEATURE_VOLUMEID_NILFS
//config: bool "nilfs filesystem"
//config: default y
//config: filesystem for Linux desktop environment, or as a basis of advanced
//config: storage appliances.
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NILFS) += nilfs.o
+
#include "volume_id_internal.h"
#define NILFS_UUID_SIZE 16
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NTFS) += ntfs.o
-
//config:config FEATURE_VOLUMEID_NTFS
//config: bool "ntfs filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NTFS) += ntfs.o
+
#include "volume_id_internal.h"
struct ntfs_super_block {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_OCFS2) += ocfs2.o
-
//config:config FEATURE_VOLUMEID_OCFS2
//config: bool "ocfs2 filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_OCFS2) += ocfs2.o
+
#include "volume_id_internal.h"
/* All these values are taken from ocfs2-tools's ocfs2_fs.h */
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_REISERFS) += reiserfs.o
-
//config:config FEATURE_VOLUMEID_REISERFS
//config: bool "Reiser filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_REISERFS) += reiserfs.o
+
#include "volume_id_internal.h"
struct reiserfs_super_block {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ROMFS) += romfs.o
-
//config:config FEATURE_VOLUMEID_ROMFS
//config: bool "romfs filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ROMFS) += romfs.o
+
#include "volume_id_internal.h"
struct romfs_super {
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SQUASHFS) += squashfs.o
-
//config:config FEATURE_VOLUMEID_SQUASHFS
//config: bool "SquashFS filesystem"
//config: default y
//config: device/memory systems (e.g. embedded systems) where low overhead is
//config: needed.
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SQUASHFS) += squashfs.o
+
#include "volume_id_internal.h"
struct squashfs_superblock {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SYSV) += sysv.o
-
//config:config FEATURE_VOLUMEID_SYSV
//config: bool "sysv filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SYSV) += sysv.o
+
#include "volume_id_internal.h"
#define SYSV_NICINOD 100
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UBIFS) += ubifs.o
-
//config:config FEATURE_VOLUMEID_UBIFS
//config: bool "UBIFS filesystem"
//config: default y
//config: UBIFS (Unsorted Block Image File System) is a file
//config: system for use with raw flash memory media.
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UBIFS) += ubifs.o
+
#include "volume_id_internal.h"
#define UBIFS_NODE_MAGIC 0x06101831
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UDF) += udf.o
-
//config:config FEATURE_VOLUMEID_UDF
//config: bool "udf filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UDF) += udf.o
+
#include "volume_id_internal.h"
struct volume_descriptor {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HIGHPOINTRAID) += highpoint.o
-
//config:### config FEATURE_VOLUMEID_HIGHPOINTRAID
//config:### bool "highpoint raid"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HIGHPOINTRAID) += highpoint.o
+
#include "volume_id_internal.h"
struct hpt37x_meta {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HPFS) += hpfs.o
-
//config:### config FEATURE_VOLUMEID_HPFS
//config:### bool "hpfs filesystem"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HPFS) += hpfs.o
+
#include "volume_id_internal.h"
struct hpfs_super {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_ISWRAID) += isw_raid.o
-
//config:### config FEATURE_VOLUMEID_ISWRAID
//config:### bool "intel raid"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_ISWRAID) += isw_raid.o
+
#include "volume_id_internal.h"
struct isw_meta {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LSIRAID) += lsi_raid.o
-
//config:### config FEATURE_VOLUMEID_LSIRAID
//config:### bool "lsi raid"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LSIRAID) += lsi_raid.o
+
#include "volume_id_internal.h"
struct lsi_meta {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LVM) += lvm.o
-
//config:### config FEATURE_VOLUMEID_LVM
//config:### bool "lvm"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LVM) += lvm.o
+
#include "volume_id_internal.h"
struct lvm1_super_block {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MAC) += mac.o
-
//config:### config FEATURE_VOLUMEID_MAC
//config:### bool "mac filesystem"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MAC) += mac.o
+
#include "volume_id_internal.h"
struct mac_driver_desc {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MSDOS) += msdos.o
-
//config:### config FEATURE_VOLUMEID_MSDOS
//config:### bool "msdos filesystem"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MSDOS) += msdos.o
+
#include "volume_id_internal.h"
struct msdos_partition_entry {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_NVIDIARAID) += nvidia_raid.o
-
//config:### config FEATURE_VOLUMEID_NVIDIARAID
//config:### bool "nvidia raid"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_NVIDIARAID) += nvidia_raid.o
+
#include "volume_id_internal.h"
struct nvidia_meta {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_PROMISERAID) += promise_raid.o
-
//config:### config FEATURE_VOLUMEID_PROMISERAID
//config:### bool "promise raid"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_PROMISERAID) += promise_raid.o
+
#include "volume_id_internal.h"
struct promise_meta {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_SILICONRAID) += silicon_raid.o
-
//config:### config FEATURE_VOLUMEID_SILICONRAID
//config:### bool "silicon raid"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_SILICONRAID) += silicon_raid.o
+
#include "volume_id_internal.h"
struct silicon_meta {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_UFS) += ufs.o
-
//config:### config FEATURE_VOLUMEID_UFS
//config:### bool "ufs filesystem"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_UFS) += ufs.o
+
#include "volume_id_internal.h"
struct ufs_super_block {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_VIARAID) += via_raid.o
-
//config:### config FEATURE_VOLUMEID_VIARAID
//config:### bool "via raid"
//config:### default y
//config:### depends on VOLUMEID
+//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_VIARAID) += via_raid.o
+
#include "volume_id_internal.h"
struct via_meta {
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_XFS) += xfs.o
-
//config:config FEATURE_VOLUMEID_XFS
//config: bool "xfs filesystem"
//config: default y
//config: depends on VOLUMEID
+//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_XFS) += xfs.o
+
#include "volume_id_internal.h"
struct xfs_super_block {
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config WALL
//config: bool "wall (2.5 kb)"
//config: default y