#define BB_MKNOD
#define BB_MKSWAP
//#define BB_MKTEMP
-//#define BB_NC
+#define BB_MODPROBE
#define BB_MORE
#define BB_MOUNT
//#define BB_MT
#define BB_MV
+//#define BB_NC
//#define BB_NSLOOKUP
//#define BB_PING
//#define BB_PIVOT_ROOT
nfsmount.o cmdedit.o: %.o: %.h
sh.o: cmdedit.h
$(OBJECTS): %.o: %.c Config.h busybox.h applets.h Makefile
- $(CC) -I- $(CFLAGS) -I. $(patsubst %,-I%,$(subst :, ,$(BB_SRC_DIR))) -c $< -o $*.o
+ $(CC) $(CFLAGS) -I. $(patsubst %,-I%,$(subst :, ,$(BB_SRC_DIR))) -c $< -o $*.o
$(PWD_OBJS): %.o: %.c Config.h busybox.h applets.h Makefile
- mkdir -p $(PWD_GRP)
#ifdef BB_MKTEMP
APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
#endif
+#ifdef BB_MODPROBE
+ APPLET(modprobe, modprobe_main, _BB_DIR_SBIN)
+#endif
#ifdef BB_MORE
APPLET(more, more_main, _BB_DIR_BIN)
#endif
"$ ls -la /tmp/temp.mWiLjM\n" \
"-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
+#define modprobe_trivial_usage \
+ "[FILE ...]"
+#define modprobe_full_usage \
+ "Used for hight level module loading and unloading."
+#define modprobe_example_usage \
+ "$ modprobe cdrom\n"
+
#define more_trivial_usage \
"[FILE ...]"
#define more_full_usage \
static void win_changed(int nsig)
{
struct winsize win = { 0, 0, 0, 0 };
- static __sighandler_t previous_SIGWINCH_handler; /* for reset */
+ static sighandler_t previous_SIGWINCH_handler; /* for reset */
/* emulate || signal call */
if (nsig == -SIGWINCH || nsig == SIGWINCH) {
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h>
+#include <termios.h>
#include <sys/ioctl.h>
#include "busybox.h"
#ifdef BB_MKTEMP
APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
#endif
+#ifdef BB_MODPROBE
+ APPLET(modprobe, modprobe_main, _BB_DIR_SBIN)
+#endif
#ifdef BB_MORE
APPLET(more, more_main, _BB_DIR_BIN)
#endif
#include "../busybox.h"
#endif
-#if __GNU_LIBRARY__ < 5
+#if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__)
/* libc5 doesn't define socklen_t */
typedef unsigned int socklen_t;
/* libc5 doesn't implement BSD 4.4 daemon() */
"$ ls -la /tmp/temp.mWiLjM\n" \
"-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
+#define modprobe_trivial_usage \
+ "[FILE ...]"
+#define modprobe_full_usage \
+ "Used for hight level module loading and unloading."
+#define modprobe_example_usage \
+ "$ modprobe cdrom\n"
+
#define more_trivial_usage \
"[FILE ...]"
#define more_full_usage \
static const int RB_AUTOBOOT = 0x01234567;
#endif
-#if __GNU_LIBRARY__ > 5
+#if (__GNU_LIBRARY__ > 5) || defined(__dietlibc__)
#include <sys/reboot.h>
#define init_reboot(magic) reboot(magic)
#else
static const int RB_AUTOBOOT = 0x01234567;
#endif
-#if __GNU_LIBRARY__ > 5
+#if (__GNU_LIBRARY__ > 5) || defined(__dietlibc__)
#include <sys/reboot.h>
#define init_reboot(magic) reboot(magic)
#else
#include "../busybox.h"
#endif
-#if __GNU_LIBRARY__ < 5
+#if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__)
/* libc5 doesn't define socklen_t */
typedef unsigned int socklen_t;
/* libc5 doesn't implement BSD 4.4 daemon() */
#include <sys/syslog.h>
#else
-/* We have to do this since the header file defines static
- * structures. Argh.... bad libc, bad, bad...
- */
#include <sys/syslog.h>
-
-typedef struct _code {
- char *c_name;
- int c_val;
-} CODE;
-extern CODE prioritynames[];
-extern CODE facilitynames[];
+# ifndef __dietlibc__
+ /* We have to do this since the header file defines static
+ * structures. Argh.... bad libc, bad, bad...
+ */
+ typedef struct _code {
+ char *c_name;
+ int c_val;
+ } CODE;
+ extern CODE prioritynames[];
+ extern CODE facilitynames[];
+# endif
#endif
/* Decode a symbolic name to a numeric value
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h>
+#include <termios.h>
#include <sys/ioctl.h>
#include "busybox.h"
#include <fcntl.h>
#include <ctype.h>
#include <string.h>
+#include <termios.h>
#include <sys/ioctl.h>
#include "busybox.h"
#include <fcntl.h>
#include <ctype.h>
#include <string.h>
+#include <termios.h>
#include <sys/ioctl.h>
#include "busybox.h"
static void win_changed(int nsig)
{
struct winsize win = { 0, 0, 0, 0 };
- static __sighandler_t previous_SIGWINCH_handler; /* for reset */
+ static sighandler_t previous_SIGWINCH_handler; /* for reset */
/* emulate || signal call */
if (nsig == -SIGWINCH || nsig == SIGWINCH) {
#include <sys/syslog.h>
#else
-/* We have to do this since the header file defines static
- * structures. Argh.... bad libc, bad, bad...
- */
#include <sys/syslog.h>
-
-typedef struct _code {
- char *c_name;
- int c_val;
-} CODE;
-extern CODE prioritynames[];
-extern CODE facilitynames[];
+# ifndef __dietlibc__
+ /* We have to do this since the header file defines static
+ * structures. Argh.... bad libc, bad, bad...
+ */
+ typedef struct _code {
+ char *c_name;
+ int c_val;
+ } CODE;
+ extern CODE prioritynames[];
+ extern CODE facilitynames[];
+# endif
#endif
/* Decode a symbolic name to a numeric value
"$ ls -la /tmp/temp.mWiLjM\n" \
"-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
+#define modprobe_trivial_usage \
+ "[FILE ...]"
+#define modprobe_full_usage \
+ "Used for hight level module loading and unloading."
+#define modprobe_example_usage \
+ "$ modprobe cdrom\n"
+
#define more_trivial_usage \
"[FILE ...]"
#define more_full_usage \