Fix non-Linux builds
Various tools are Linuxish and should thus only attempted to build on Linux only. Some features are also Linux-only. Also, libresolv is used on all GNU platforms, notably GNU/Hurd and GNU/kfreeBSD. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
75fbff1326
commit
77216c368f
@ -184,7 +184,7 @@ LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
|
ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
|
||||||
ifneq (,$(findstring linux,$(shell $(CC) $(CFLAGS) -dumpmachine)))
|
ifneq (,$(findstring gnu,$(shell $(CC) $(CFLAGS) -dumpmachine)))
|
||||||
LDLIBS += resolv
|
LDLIBS += resolv
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
//config:config LOADFONT
|
//config:config LOADFONT
|
||||||
//config: bool "loadfont (5.2 kb)"
|
//config: bool "loadfont (5.2 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: This program loads a console font from standard input.
|
//config: This program loads a console font from standard input.
|
||||||
//config:
|
//config:
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config OPENVT
|
//config:config OPENVT
|
||||||
//config: bool "openvt (7.2 kb)"
|
//config: bool "openvt (7.2 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: This program is used to start a command on an unused
|
//config: This program is used to start a command on an unused
|
||||||
//config: virtual terminal.
|
//config: virtual terminal.
|
||||||
|
@ -200,6 +200,7 @@ static void dd_output_status(int UNUSED_PARAM cur_signal)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLE_FEATURE_DD_IBS_OBS
|
#if ENABLE_FEATURE_DD_IBS_OBS
|
||||||
|
# ifdef O_DIRECT
|
||||||
static int clear_O_DIRECT(int fd)
|
static int clear_O_DIRECT(int fd)
|
||||||
{
|
{
|
||||||
if (errno == EINVAL) {
|
if (errno == EINVAL) {
|
||||||
@ -211,6 +212,7 @@ static int clear_O_DIRECT(int fd)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static ssize_t dd_read(void *ibuf, size_t ibs)
|
static ssize_t dd_read(void *ibuf, size_t ibs)
|
||||||
@ -225,8 +227,10 @@ static ssize_t dd_read(void *ibuf, size_t ibs)
|
|||||||
#endif
|
#endif
|
||||||
n = safe_read(ifd, ibuf, ibs);
|
n = safe_read(ifd, ibuf, ibs);
|
||||||
#if ENABLE_FEATURE_DD_IBS_OBS
|
#if ENABLE_FEATURE_DD_IBS_OBS
|
||||||
|
# ifdef O_DIRECT
|
||||||
if (n < 0 && (G.flags & FLAG_IDIRECT) && clear_O_DIRECT(ifd))
|
if (n < 0 && (G.flags & FLAG_IDIRECT) && clear_O_DIRECT(ifd))
|
||||||
goto read_again;
|
goto read_again;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
@ -239,8 +243,10 @@ static bool write_and_stats(const void *buf, size_t len, size_t obs,
|
|||||||
IF_FEATURE_DD_IBS_OBS(write_again:)
|
IF_FEATURE_DD_IBS_OBS(write_again:)
|
||||||
n = full_write(ofd, buf, len);
|
n = full_write(ofd, buf, len);
|
||||||
#if ENABLE_FEATURE_DD_IBS_OBS
|
#if ENABLE_FEATURE_DD_IBS_OBS
|
||||||
|
# ifdef O_DIRECT
|
||||||
if (n < 0 && (G.flags & FLAG_ODIRECT) && clear_O_DIRECT(ofd))
|
if (n < 0 && (G.flags & FLAG_ODIRECT) && clear_O_DIRECT(ofd))
|
||||||
goto write_again;
|
goto write_again;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLE_FEATURE_DD_THIRD_STATUS_LINE
|
#if ENABLE_FEATURE_DD_THIRD_STATUS_LINE
|
||||||
@ -501,8 +507,13 @@ int dd_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
if (infile) {
|
if (infile) {
|
||||||
int iflag = O_RDONLY;
|
int iflag = O_RDONLY;
|
||||||
#if ENABLE_FEATURE_DD_IBS_OBS
|
#if ENABLE_FEATURE_DD_IBS_OBS
|
||||||
if (G.flags & FLAG_IDIRECT)
|
if (G.flags & FLAG_IDIRECT) {
|
||||||
|
# ifdef O_DIRECT
|
||||||
iflag |= O_DIRECT;
|
iflag |= O_DIRECT;
|
||||||
|
# else
|
||||||
|
bb_error_msg_and_die("O_DIRECT not supported on this platform");
|
||||||
|
# endif
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
xmove_fd(xopen(infile, iflag), ifd);
|
xmove_fd(xopen(infile, iflag), ifd);
|
||||||
} else {
|
} else {
|
||||||
@ -516,8 +527,13 @@ int dd_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
if (G.flags & FLAG_APPEND)
|
if (G.flags & FLAG_APPEND)
|
||||||
oflag |= O_APPEND;
|
oflag |= O_APPEND;
|
||||||
#if ENABLE_FEATURE_DD_IBS_OBS
|
#if ENABLE_FEATURE_DD_IBS_OBS
|
||||||
if (G.flags & FLAG_ODIRECT)
|
if (G.flags & FLAG_ODIRECT) {
|
||||||
|
# ifdef O_DIRECT
|
||||||
oflag |= O_DIRECT;
|
oflag |= O_DIRECT;
|
||||||
|
# else
|
||||||
|
bb_error_msg_and_die("O_DIRECT not supported on this platform");
|
||||||
|
# endif
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
xmove_fd(xopen(outfile, oflag), ofd);
|
xmove_fd(xopen(outfile, oflag), ofd);
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
//config:config RUN_INIT
|
//config:config RUN_INIT
|
||||||
//config: bool "run-init (7.7 kb)"
|
//config: bool "run-init (7.7 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: The run-init utility is used from initramfs to select a new
|
//config: The run-init utility is used from initramfs to select a new
|
||||||
//config: root device. Under initramfs, you have to use this instead of
|
//config: root device. Under initramfs, you have to use this instead of
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
//config:config ADJTIMEX
|
//config:config ADJTIMEX
|
||||||
//config: bool "adjtimex (4.7 kb)"
|
//config: bool "adjtimex (4.7 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Adjtimex reads and optionally sets adjustment parameters for
|
//config: Adjtimex reads and optionally sets adjustment parameters for
|
||||||
//config: the Linux clock adjustment algorithm.
|
//config: the Linux clock adjustment algorithm.
|
||||||
|
@ -11,30 +11,35 @@
|
|||||||
//config:config I2CGET
|
//config:config I2CGET
|
||||||
//config: bool "i2cget (5.5 kb)"
|
//config: bool "i2cget (5.5 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Read from I2C/SMBus chip registers.
|
//config: Read from I2C/SMBus chip registers.
|
||||||
//config:
|
//config:
|
||||||
//config:config I2CSET
|
//config:config I2CSET
|
||||||
//config: bool "i2cset (6.7 kb)"
|
//config: bool "i2cset (6.7 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Set I2C registers.
|
//config: Set I2C registers.
|
||||||
//config:
|
//config:
|
||||||
//config:config I2CDUMP
|
//config:config I2CDUMP
|
||||||
//config: bool "i2cdump (7.1 kb)"
|
//config: bool "i2cdump (7.1 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Examine I2C registers.
|
//config: Examine I2C registers.
|
||||||
//config:
|
//config:
|
||||||
//config:config I2CDETECT
|
//config:config I2CDETECT
|
||||||
//config: bool "i2cdetect (7.1 kb)"
|
//config: bool "i2cdetect (7.1 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Detect I2C chips.
|
//config: Detect I2C chips.
|
||||||
//config:
|
//config:
|
||||||
//config:config I2CTRANSFER
|
//config:config I2CTRANSFER
|
||||||
//config: bool "i2ctransfer (4.0 kb)"
|
//config: bool "i2ctransfer (4.0 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Send user-defined I2C messages in one transfer.
|
//config: Send user-defined I2C messages in one transfer.
|
||||||
//config:
|
//config:
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
//config:config PARTPROBE
|
//config:config PARTPROBE
|
||||||
//config: bool "partprobe (3.5 kb)"
|
//config: bool "partprobe (3.5 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Ask kernel to rescan partition table.
|
//config: Ask kernel to rescan partition table.
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config UBIRENAME
|
//config:config UBIRENAME
|
||||||
//config: bool "ubirename (2.4 kb)"
|
//config: bool "ubirename (2.4 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Utility to rename UBI volumes
|
//config: Utility to rename UBI volumes
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
//config:config WATCHDOG
|
//config:config WATCHDOG
|
||||||
//config: bool "watchdog (5.3 kb)"
|
//config: bool "watchdog (5.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: The watchdog utility is used with hardware or software watchdog
|
//config: The watchdog utility is used with hardware or software watchdog
|
||||||
//config: device drivers. It opens the specified watchdog device special file
|
//config: device drivers. It opens the specified watchdog device special file
|
||||||
|
@ -8,6 +8,7 @@ menu "Linux Module Utilities"
|
|||||||
config MODPROBE_SMALL
|
config MODPROBE_SMALL
|
||||||
bool "Simplified modutils"
|
bool "Simplified modutils"
|
||||||
default y
|
default y
|
||||||
|
select PLATFORM_LINUX
|
||||||
help
|
help
|
||||||
Build smaller (~1.5 kbytes), simplified module tools.
|
Build smaller (~1.5 kbytes), simplified module tools.
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config DEPMOD
|
//config:config DEPMOD
|
||||||
//config: bool "depmod (27 kb)"
|
//config: bool "depmod (27 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: depmod generates modules.dep (and potentially modules.alias
|
//config: depmod generates modules.dep (and potentially modules.alias
|
||||||
//config: and modules.symbols) that contain dependency information
|
//config: and modules.symbols) that contain dependency information
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config INSMOD
|
//config:config INSMOD
|
||||||
//config: bool "insmod (22 kb)"
|
//config: bool "insmod (22 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: insmod is used to load specified modules in the running kernel.
|
//config: insmod is used to load specified modules in the running kernel.
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config LSMOD
|
//config:config LSMOD
|
||||||
//config: bool "lsmod (1.9 kb)"
|
//config: bool "lsmod (1.9 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: lsmod is used to display a list of loaded modules.
|
//config: lsmod is used to display a list of loaded modules.
|
||||||
//config:
|
//config:
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
//config:config MODINFO
|
//config:config MODINFO
|
||||||
//config: bool "modinfo (24 kb)"
|
//config: bool "modinfo (24 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Show information about a Linux Kernel module
|
//config: Show information about a Linux Kernel module
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config MODPROBE
|
//config:config MODPROBE
|
||||||
//config: bool "modprobe (28 kb)"
|
//config: bool "modprobe (28 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Handle the loading of modules, and their dependencies on a high
|
//config: Handle the loading of modules, and their dependencies on a high
|
||||||
//config: level.
|
//config: level.
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config RMMOD
|
//config:config RMMOD
|
||||||
//config: bool "rmmod (3.3 kb)"
|
//config: bool "rmmod (3.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: rmmod is used to unload specified modules from the kernel.
|
//config: rmmod is used to unload specified modules from the kernel.
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
//config:config ARP
|
//config:config ARP
|
||||||
//config: bool "arp (10 kb)"
|
//config: bool "arp (10 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Manipulate the system ARP cache.
|
//config: Manipulate the system ARP cache.
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
//config:config ARPING
|
//config:config ARPING
|
||||||
//config: bool "arping (9 kb)"
|
//config: bool "arping (9 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Ping hosts by ARP packets.
|
//config: Ping hosts by ARP packets.
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
//config:config BRCTL
|
//config:config BRCTL
|
||||||
//config: bool "brctl (4.7 kb)"
|
//config: bool "brctl (4.7 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Manage ethernet bridges.
|
//config: Manage ethernet bridges.
|
||||||
//config: Supports addbr/delbr and addif/delif.
|
//config: Supports addbr/delbr and addif/delif.
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
//config:config IFCONFIG
|
//config:config IFCONFIG
|
||||||
//config: bool "ifconfig (12 kb)"
|
//config: bool "ifconfig (12 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Ifconfig is used to configure the kernel-resident network interfaces.
|
//config: Ifconfig is used to configure the kernel-resident network interfaces.
|
||||||
//config:
|
//config:
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config IFPLUGD
|
//config:config IFPLUGD
|
||||||
//config: bool "ifplugd (10 kb)"
|
//config: bool "ifplugd (10 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Network interface plug detection daemon.
|
//config: Network interface plug detection daemon.
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
//config:config IP
|
//config:config IP
|
||||||
//config: bool "ip (35 kb)"
|
//config: bool "ip (35 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: The "ip" applet is a TCP/IP interface configuration and routing
|
//config: The "ip" applet is a TCP/IP interface configuration and routing
|
||||||
//config: utility.
|
//config: utility.
|
||||||
@ -21,6 +22,7 @@
|
|||||||
//config:config IPADDR
|
//config:config IPADDR
|
||||||
//config: bool "ipaddr (14 kb)"
|
//config: bool "ipaddr (14 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select FEATURE_IP_ADDRESS
|
//config: select FEATURE_IP_ADDRESS
|
||||||
//config: help
|
//config: help
|
||||||
//config: Short form of "ip addr"
|
//config: Short form of "ip addr"
|
||||||
@ -28,6 +30,7 @@
|
|||||||
//config:config IPLINK
|
//config:config IPLINK
|
||||||
//config: bool "iplink (17 kb)"
|
//config: bool "iplink (17 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select FEATURE_IP_LINK
|
//config: select FEATURE_IP_LINK
|
||||||
//config: help
|
//config: help
|
||||||
//config: Short form of "ip link"
|
//config: Short form of "ip link"
|
||||||
@ -35,6 +38,7 @@
|
|||||||
//config:config IPROUTE
|
//config:config IPROUTE
|
||||||
//config: bool "iproute (15 kb)"
|
//config: bool "iproute (15 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select FEATURE_IP_ROUTE
|
//config: select FEATURE_IP_ROUTE
|
||||||
//config: help
|
//config: help
|
||||||
//config: Short form of "ip route"
|
//config: Short form of "ip route"
|
||||||
@ -49,6 +53,7 @@
|
|||||||
//config:config IPRULE
|
//config:config IPRULE
|
||||||
//config: bool "iprule (10 kb)"
|
//config: bool "iprule (10 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select FEATURE_IP_RULE
|
//config: select FEATURE_IP_RULE
|
||||||
//config: help
|
//config: help
|
||||||
//config: Short form of "ip rule"
|
//config: Short form of "ip rule"
|
||||||
@ -56,6 +61,7 @@
|
|||||||
//config:config IPNEIGH
|
//config:config IPNEIGH
|
||||||
//config: bool "ipneigh (8.3 kb)"
|
//config: bool "ipneigh (8.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select FEATURE_IP_NEIGH
|
//config: select FEATURE_IP_NEIGH
|
||||||
//config: help
|
//config: help
|
||||||
//config: Short form of "ip neigh"
|
//config: Short form of "ip neigh"
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
//config:config NAMEIF
|
//config:config NAMEIF
|
||||||
//config: bool "nameif (6.6 kb)"
|
//config: bool "nameif (6.6 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select FEATURE_SYSLOG
|
//config: select FEATURE_SYSLOG
|
||||||
//config: help
|
//config: help
|
||||||
//config: nameif is used to rename network interface by its MAC address.
|
//config: nameif is used to rename network interface by its MAC address.
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
//config:config ROUTE
|
//config:config ROUTE
|
||||||
//config: bool "route (8.7 kb)"
|
//config: bool "route (8.7 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Route displays or manipulates the kernel's IP routing tables.
|
//config: Route displays or manipulates the kernel's IP routing tables.
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config TC
|
//config:config TC
|
||||||
//config: bool "tc (8.3 kb)"
|
//config: bool "tc (8.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Show / manipulate traffic control settings
|
//config: Show / manipulate traffic control settings
|
||||||
//config:
|
//config:
|
||||||
|
@ -963,8 +963,10 @@ traceroute_init(int op, char **argv)
|
|||||||
if (af == AF_INET) {
|
if (af == AF_INET) {
|
||||||
xmove_fd(xsocket(AF_INET, SOCK_RAW, IPPROTO_ICMP), rcvsock);
|
xmove_fd(xsocket(AF_INET, SOCK_RAW, IPPROTO_ICMP), rcvsock);
|
||||||
#if ENABLE_FEATURE_TRACEROUTE_VERBOSE
|
#if ENABLE_FEATURE_TRACEROUTE_VERBOSE
|
||||||
|
# ifdef IP_PKTINFO
|
||||||
/* want recvmsg to report target local address (for -v) */
|
/* want recvmsg to report target local address (for -v) */
|
||||||
setsockopt_1(rcvsock, IPPROTO_IP, IP_PKTINFO);
|
setsockopt_1(rcvsock, IPPROTO_IP, IP_PKTINFO);
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#if ENABLE_TRACEROUTE6
|
#if ENABLE_TRACEROUTE6
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
//config:config TUNCTL
|
//config:config TUNCTL
|
||||||
//config: bool "tunctl (6.2 kb)"
|
//config: bool "tunctl (6.2 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: tunctl creates or deletes tun devices.
|
//config: tunctl creates or deletes tun devices.
|
||||||
//config:
|
//config:
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
config UDHCPD
|
config UDHCPD
|
||||||
bool "udhcpd (21 kb)"
|
bool "udhcpd (21 kb)"
|
||||||
default y
|
default y
|
||||||
|
select PLATFORM_LINUX
|
||||||
help
|
help
|
||||||
udhcpd is a DHCP server geared primarily toward embedded systems,
|
udhcpd is a DHCP server geared primarily toward embedded systems,
|
||||||
while striving to be fully functional and RFC compliant.
|
while striving to be fully functional and RFC compliant.
|
||||||
@ -53,6 +54,7 @@ config DUMPLEASES
|
|||||||
config DHCPRELAY
|
config DHCPRELAY
|
||||||
bool "dhcprelay (5.2 kb)"
|
bool "dhcprelay (5.2 kb)"
|
||||||
default y
|
default y
|
||||||
|
select PLATFORM_LINUX
|
||||||
help
|
help
|
||||||
dhcprelay listens for DHCP requests on one or more interfaces
|
dhcprelay listens for DHCP requests on one or more interfaces
|
||||||
and forwards these requests to a different interface or DHCP
|
and forwards these requests to a different interface or DHCP
|
||||||
@ -61,6 +63,7 @@ config DHCPRELAY
|
|||||||
config UDHCPC
|
config UDHCPC
|
||||||
bool "udhcpc (24 kb)"
|
bool "udhcpc (24 kb)"
|
||||||
default y
|
default y
|
||||||
|
select PLATFORM_LINUX
|
||||||
help
|
help
|
||||||
udhcpc is a DHCP client geared primarily toward embedded systems,
|
udhcpc is a DHCP client geared primarily toward embedded systems,
|
||||||
while striving to be fully functional and RFC compliant.
|
while striving to be fully functional and RFC compliant.
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config FREE
|
//config:config FREE
|
||||||
//config: bool "free (3.1 kb)"
|
//config: bool "free (3.1 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: free displays the total amount of free and used physical and swap
|
//config: free displays the total amount of free and used physical and swap
|
||||||
//config: memory in the system, as well as the buffers used by the kernel.
|
//config: memory in the system, as well as the buffers used by the kernel.
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
//config:config UPTIME
|
//config:config UPTIME
|
||||||
//config: bool "uptime (3.7 kb)"
|
//config: bool "uptime (3.7 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: uptime gives a one line display of the current time, how long
|
//config: uptime gives a one line display of the current time, how long
|
||||||
//config: the system has been running, how many users are currently logged
|
//config: the system has been running, how many users are currently logged
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
//config:config KLOGD
|
//config:config KLOGD
|
||||||
//config: bool "klogd (5.7 kb)"
|
//config: bool "klogd (5.7 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: klogd is a utility which intercepts and logs all
|
//config: klogd is a utility which intercepts and logs all
|
||||||
//config: messages from the Linux kernel and sends the messages
|
//config: messages from the Linux kernel and sends the messages
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config ACPID
|
//config:config ACPID
|
||||||
//config: bool "acpid (9 kb)"
|
//config: bool "acpid (9 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: acpid listens to ACPI events coming either in textual form from
|
//config: acpid listens to ACPI events coming either in textual form from
|
||||||
//config: /proc/acpi/event (though it is marked deprecated it is still widely
|
//config: /proc/acpi/event (though it is marked deprecated it is still widely
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
//config:config BLKDISCARD
|
//config:config BLKDISCARD
|
||||||
//config: bool "blkdiscard (4.3 kb)"
|
//config: bool "blkdiscard (4.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: blkdiscard discards sectors on a given device.
|
//config: blkdiscard discards sectors on a given device.
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config BLKID
|
//config:config BLKID
|
||||||
//config: bool "blkid (12 kb)"
|
//config: bool "blkid (12 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select VOLUMEID
|
//config: select VOLUMEID
|
||||||
//config: help
|
//config: help
|
||||||
//config: Lists labels and UUIDs of all filesystems.
|
//config: Lists labels and UUIDs of all filesystems.
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
//config:config DMESG
|
//config:config DMESG
|
||||||
//config: bool "dmesg (3.7 kb)"
|
//config: bool "dmesg (3.7 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: dmesg is used to examine or control the kernel ring buffer. When the
|
//config: dmesg is used to examine or control the kernel ring buffer. When the
|
||||||
//config: Linux kernel prints messages to the system log, they are stored in
|
//config: Linux kernel prints messages to the system log, they are stored in
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config FDISK
|
//config:config FDISK
|
||||||
//config: bool "fdisk (37 kb)"
|
//config: bool "fdisk (37 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: The fdisk utility is used to divide hard disks into one or more
|
//config: The fdisk utility is used to divide hard disks into one or more
|
||||||
//config: logical disks, which are generally called partitions. This utility
|
//config: logical disks, which are generally called partitions. This utility
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config FINDFS
|
//config:config FINDFS
|
||||||
//config: bool "findfs (12 kb)"
|
//config: bool "findfs (12 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select VOLUMEID
|
//config: select VOLUMEID
|
||||||
//config: help
|
//config: help
|
||||||
//config: Prints the name of a filesystem with given label or UUID.
|
//config: Prints the name of a filesystem with given label or UUID.
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
//config:config FDFLUSH
|
//config:config FDFLUSH
|
||||||
//config: bool "fdflush (1.3 kb)"
|
//config: bool "fdflush (1.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: fdflush is only needed when changing media on slightly-broken
|
//config: fdflush is only needed when changing media on slightly-broken
|
||||||
//config: removable media drives. It is used to make Linux believe that a
|
//config: removable media drives. It is used to make Linux believe that a
|
||||||
@ -23,6 +24,7 @@
|
|||||||
//config:config FREERAMDISK
|
//config:config FREERAMDISK
|
||||||
//config: bool "freeramdisk (1.3 kb)"
|
//config: bool "freeramdisk (1.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Linux allows you to create ramdisks. This utility allows you to
|
//config: Linux allows you to create ramdisks. This utility allows you to
|
||||||
//config: delete them and completely free all memory that was used for the
|
//config: delete them and completely free all memory that was used for the
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
//config:config FSFREEZE
|
//config:config FSFREEZE
|
||||||
//config: bool "fsfreeze (3.5 kb)"
|
//config: bool "fsfreeze (3.5 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select LONG_OPTS
|
//config: select LONG_OPTS
|
||||||
//config: help
|
//config: help
|
||||||
//config: Halt new accesses and flush writes on a mounted filesystem.
|
//config: Halt new accesses and flush writes on a mounted filesystem.
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config FSTRIM
|
//config:config FSTRIM
|
||||||
//config: bool "fstrim (4.4 kb)"
|
//config: bool "fstrim (4.4 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Discard unused blocks on a mounted filesystem.
|
//config: Discard unused blocks on a mounted filesystem.
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config HWCLOCK
|
//config:config HWCLOCK
|
||||||
//config: bool "hwclock (5.8 kb)"
|
//config: bool "hwclock (5.8 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: The hwclock utility is used to read and set the hardware clock
|
//config: The hwclock utility is used to read and set the hardware clock
|
||||||
//config: on a system. This is primarily used to set the current time on
|
//config: on a system. This is primarily used to set the current time on
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config IONICE
|
//config:config IONICE
|
||||||
//config: bool "ionice (3.8 kb)"
|
//config: bool "ionice (3.8 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Set/set program io scheduling class and priority
|
//config: Set/set program io scheduling class and priority
|
||||||
//config: Requires kernel >= 2.6.13
|
//config: Requires kernel >= 2.6.13
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config LOSETUP
|
//config:config LOSETUP
|
||||||
//config: bool "losetup (5.5 kb)"
|
//config: bool "losetup (5.5 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: losetup is used to associate or detach a loop device with a regular
|
//config: losetup is used to associate or detach a loop device with a regular
|
||||||
//config: file or block device, and to query the status of a loop device. This
|
//config: file or block device, and to query the status of a loop device. This
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config MDEV
|
//config:config MDEV
|
||||||
//config: bool "mdev (17 kb)"
|
//config: bool "mdev (17 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: mdev is a mini-udev implementation for dynamically creating device
|
//config: mdev is a mini-udev implementation for dynamically creating device
|
||||||
//config: nodes in the /dev directory.
|
//config: nodes in the /dev directory.
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config MKE2FS
|
//config:config MKE2FS
|
||||||
//config: bool "mke2fs (10 kb)"
|
//config: bool "mke2fs (10 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Utility to create EXT2 filesystems.
|
//config: Utility to create EXT2 filesystems.
|
||||||
//config:
|
//config:
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
//config:config MKDOSFS
|
//config:config MKDOSFS
|
||||||
//config: bool "mkdosfs (7.2 kb)"
|
//config: bool "mkdosfs (7.2 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Utility to create FAT32 filesystems.
|
//config: Utility to create FAT32 filesystems.
|
||||||
//config:
|
//config:
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
//config:config MOUNT
|
//config:config MOUNT
|
||||||
//config: bool "mount (23 kb)"
|
//config: bool "mount (23 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: All files and filesystems in Unix are arranged into one big directory
|
//config: All files and filesystems in Unix are arranged into one big directory
|
||||||
//config: tree. The 'mount' utility is used to graft a filesystem onto a
|
//config: tree. The 'mount' utility is used to graft a filesystem onto a
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config NSENTER
|
//config:config NSENTER
|
||||||
//config: bool "nsenter (6.5 kb)"
|
//config: bool "nsenter (6.5 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Run program with namespaces of other processes.
|
//config: Run program with namespaces of other processes.
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
//config:config PIVOT_ROOT
|
//config:config PIVOT_ROOT
|
||||||
//config: bool "pivot_root (1.1 kb)"
|
//config: bool "pivot_root (1.1 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: The pivot_root utility swaps the mount points for the root filesystem
|
//config: The pivot_root utility swaps the mount points for the root filesystem
|
||||||
//config: with some other mounted filesystem. This allows you to do all sorts
|
//config: with some other mounted filesystem. This allows you to do all sorts
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config SETARCH
|
//config:config SETARCH
|
||||||
//config: bool "setarch (3.6 kb)"
|
//config: bool "setarch (3.6 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: The linux32 utility is used to create a 32bit environment for the
|
//config: The linux32 utility is used to create a 32bit environment for the
|
||||||
//config: specified program (usually a shell). It only makes sense to have
|
//config: specified program (usually a shell). It only makes sense to have
|
||||||
@ -18,12 +19,14 @@
|
|||||||
//config:config LINUX32
|
//config:config LINUX32
|
||||||
//config: bool "linux32 (3.3 kb)"
|
//config: bool "linux32 (3.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Alias to "setarch linux32".
|
//config: Alias to "setarch linux32".
|
||||||
//config:
|
//config:
|
||||||
//config:config LINUX64
|
//config:config LINUX64
|
||||||
//config: bool "linux64 (3.3 kb)"
|
//config: bool "linux64 (3.3 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Alias to "setarch linux64".
|
//config: Alias to "setarch linux64".
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config SETPRIV
|
//config:config SETPRIV
|
||||||
//config: bool "setpriv (6.6 kb)"
|
//config: bool "setpriv (6.6 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: select LONG_OPTS
|
//config: select LONG_OPTS
|
||||||
//config: help
|
//config: help
|
||||||
//config: Run a program with different Linux privilege settings.
|
//config: Run a program with different Linux privilege settings.
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config SWAPON
|
//config:config SWAPON
|
||||||
//config: bool "swapon (15 kb)"
|
//config: bool "swapon (15 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: Once you have created some swap space using 'mkswap', you also need
|
//config: Once you have created some swap space using 'mkswap', you also need
|
||||||
//config: to enable your swap space with the 'swapon' utility. The 'swapoff'
|
//config: to enable your swap space with the 'swapon' utility. The 'swapoff'
|
||||||
@ -35,6 +36,7 @@
|
|||||||
//config:config SWAPOFF
|
//config:config SWAPOFF
|
||||||
//config: bool "swapoff (14 kb)"
|
//config: bool "swapoff (14 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config:
|
//config:
|
||||||
//config:config FEATURE_SWAPONOFF_LABEL
|
//config:config FEATURE_SWAPONOFF_LABEL
|
||||||
//config: bool "Support specifying devices by label or UUID"
|
//config: bool "Support specifying devices by label or UUID"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config SWITCH_ROOT
|
//config:config SWITCH_ROOT
|
||||||
//config: bool "switch_root (5.5 kb)"
|
//config: bool "switch_root (5.5 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: The switch_root utility is used from initramfs to select a new
|
//config: The switch_root utility is used from initramfs to select a new
|
||||||
//config: root device. Under initramfs, you have to use this instead of
|
//config: root device. Under initramfs, you have to use this instead of
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
//config:config UEVENT
|
//config:config UEVENT
|
||||||
//config: bool "uevent (3.1 kb)"
|
//config: bool "uevent (3.1 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: help
|
//config: help
|
||||||
//config: uevent is a netlink listener for kernel uevent notifications
|
//config: uevent is a netlink listener for kernel uevent notifications
|
||||||
//config: sent via netlink. It is usually used for dynamic device creation.
|
//config: sent via netlink. It is usually used for dynamic device creation.
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
//config:config UNSHARE
|
//config:config UNSHARE
|
||||||
//config: bool "unshare (7.2 kb)"
|
//config: bool "unshare (7.2 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
//config: depends on !NOMMU
|
//config: depends on !NOMMU
|
||||||
//config: select LONG_OPTS
|
//config: select LONG_OPTS
|
||||||
//config: help
|
//config: help
|
||||||
|
Loading…
Reference in New Issue
Block a user