]> git.pld-linux.org Git - packages/busybox.git/commitdiff
- made it smaller and more busybox like
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 3 Aug 2003 10:20:39 +0000 (10:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    busybox-insmod_ng.patch -> 1.6

busybox-insmod_ng.patch

index 3b05a4afa401c5676121db1866b15c88d0ec8f4f..018d3cfcd3349131bffd1cf4f6b7307537bc5a2a 100644 (file)
@@ -1,6 +1,6 @@
 diff -urN busybox-1.00-pre2.org/include/applets.h busybox-1.00-pre2/include/applets.h
 --- busybox-1.00-pre2.org/include/applets.h    2003-08-02 23:46:48.000000000 +0200
-+++ busybox-1.00-pre2/include/applets.h        2003-08-03 00:36:17.000000000 +0200
++++ busybox-1.00-pre2/include/applets.h        2003-08-03 12:04:46.000000000 +0200
 @@ -286,6 +286,9 @@
  #ifdef CONFIG_INSMOD
        APPLET(insmod, insmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
@@ -13,7 +13,7 @@ diff -urN busybox-1.00-pre2.org/include/applets.h busybox-1.00-pre2/include/appl
  #endif
 diff -urN busybox-1.00-pre2.org/include/usage.h busybox-1.00-pre2/include/usage.h
 --- busybox-1.00-pre2.org/include/usage.h      2003-08-02 23:46:48.000000000 +0200
-+++ busybox-1.00-pre2/include/usage.h  2003-08-03 00:36:17.000000000 +0200
++++ busybox-1.00-pre2/include/usage.h  2003-08-03 12:04:46.000000000 +0200
 @@ -1312,6 +1312,11 @@
        "          [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \
        "          [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]\n"
@@ -28,7 +28,7 @@ diff -urN busybox-1.00-pre2.org/include/usage.h busybox-1.00-pre2/include/usage.
  #define kill_full_usage \
 diff -urN busybox-1.00-pre2.org/modutils/Config.in busybox-1.00-pre2/modutils/Config.in
 --- busybox-1.00-pre2.org/modutils/Config.in   2003-08-02 23:46:49.000000000 +0200
-+++ busybox-1.00-pre2/modutils/Config.in       2003-08-03 00:36:17.000000000 +0200
++++ busybox-1.00-pre2/modutils/Config.in       2003-08-03 12:04:46.000000000 +0200
 @@ -33,6 +33,15 @@
          Support module loading for newer (post 2.1) Linux kernels.
  endif
@@ -47,7 +47,7 @@ diff -urN busybox-1.00-pre2.org/modutils/Config.in busybox-1.00-pre2/modutils/Co
        default n
 diff -urN busybox-1.00-pre2.org/modutils/insmod.c busybox-1.00-pre2/modutils/insmod.c
 --- busybox-1.00-pre2.org/modutils/insmod.c    2003-08-02 23:46:49.000000000 +0200
-+++ busybox-1.00-pre2/modutils/insmod.c        2003-08-03 00:36:17.000000000 +0200
++++ busybox-1.00-pre2/modutils/insmod.c        2003-08-03 12:04:46.000000000 +0200
 @@ -4049,6 +4049,14 @@
  
        printf("Using %s\n", m_filename);
@@ -65,8 +65,8 @@ diff -urN busybox-1.00-pre2.org/modutils/insmod.c busybox-1.00-pre2/modutils/ins
  
 diff -urN busybox-1.00-pre2.org/modutils/insmod_ng.c busybox-1.00-pre2/modutils/insmod_ng.c
 --- busybox-1.00-pre2.org/modutils/insmod_ng.c 1970-01-01 01:00:00.000000000 +0100
-+++ busybox-1.00-pre2/modutils/insmod_ng.c     2003-08-03 00:37:20.000000000 +0200
-@@ -0,0 +1,112 @@
++++ busybox-1.00-pre2/modutils/insmod_ng.c     2003-08-03 12:11:02.000000000 +0200
+@@ -0,0 +1,109 @@
 +/* vi: set sw=4 ts=4: */
 +/*
 + * insmod for 2.5 kernels implementation for busybox
@@ -104,9 +104,6 @@ diff -urN busybox-1.00-pre2.org/modutils/insmod_ng.c busybox-1.00-pre2/modutils/
 +
 +#include "busybox.h"
 +
-+#define __NR_init_module_25 __NR_init_module
-+static _syscall3(long, init_module_25, void *, map, size_t, len, char *, options)
-+
 +/* We use error numbers in a loose translation... */
 +static const char *moderror(int err)
 +{
@@ -164,7 +161,7 @@ diff -urN busybox-1.00-pre2.org/modutils/insmod_ng.c busybox-1.00-pre2/modutils/
 +      if (map == MAP_FAILED)
 +              bb_perror_msg_and_die("cannot mmap `%s'", filename);
 +
-+      ret = init_module_25(map, len, options);
++      ret = init_module(map, len, options);
 +      if (ret != 0)
 +              bb_perror_msg_and_die("cannot insert `%s': %s (%li)",
 +                                                 filename, moderror(errno), ret);
@@ -181,7 +178,7 @@ diff -urN busybox-1.00-pre2.org/modutils/insmod_ng.c busybox-1.00-pre2/modutils/
 +*/
 diff -urN busybox-1.00-pre2.org/modutils/Makefile.in busybox-1.00-pre2/modutils/Makefile.in
 --- busybox-1.00-pre2.org/modutils/Makefile.in 2003-08-02 23:46:49.000000000 +0200
-+++ busybox-1.00-pre2/modutils/Makefile.in     2003-08-03 00:36:17.000000000 +0200
++++ busybox-1.00-pre2/modutils/Makefile.in     2003-08-03 12:04:46.000000000 +0200
 @@ -24,6 +24,7 @@
  
  MODUTILS-y:=
This page took 0.066684 seconds and 4 git commands to generate.