Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/modutils/depmod.c

    r2725 r3232  
    99 */
    1010
    11 //applet:IF_DEPMOD(APPLET(depmod, _BB_DIR_SBIN, _BB_SUID_DROP))
    12 
    13 //usage:#if !ENABLE_MODPROBE_SMALL
    14 //usage:#define depmod_trivial_usage NOUSAGE_STR
    15 //usage:#define depmod_full_usage ""
    16 //usage:#endif
     11//applet:IF_DEPMOD(APPLET(depmod, BB_DIR_SBIN, BB_SUID_DROP))
    1712
    1813#include "libbb.h"
     
    3732
    3833static int FAST_FUNC parse_module(const char *fname, struct stat *sb UNUSED_PARAM,
    39                   void *data, int depth UNUSED_PARAM)
     34                void *data, int depth UNUSED_PARAM)
    4035{
    4136    char modname[MODULE_NAME_LEN];
     
    10196
    10297static void order_dep_list(module_info *modules, module_info *start,
    103                llist_t *add)
     98            llist_t *add)
    10499{
    105100    module_info *m;
     
    132127}
    133128
    134 /* Usage:
     129//usage:#if !ENABLE_MODPROBE_SMALL
     130//usage:#define depmod_trivial_usage "[-n] [-b BASE] [VERSION] [MODFILES]..."
     131//usage:#define depmod_full_usage "\n\n"
     132//usage:       "Generate modules.dep, alias, and symbols files"
     133//usage:     "\n"
     134//usage:     "\n    -b BASE Use BASE/lib/modules/VERSION"
     135//usage:     "\n    -n  Dry run: print files to stdout"
     136//usage:#endif
     137
     138/* Upstream usage:
    135139 * [-aAenv] [-C FILE or DIR] [-b BASE] [-F System.map] [VERSION] [MODFILES]...
    136140 *  -a --all
     
    143147 *      Path to /etc/depmod.conf or /etc/depmod.d/
    144148 *  -e --errsyms
    145  *      When combined with the -F option, this reports any symbols which
     149 *      When combined with the -F option, this reports any symbols
    146150 *      which are not supplied by other modules or kernel.
    147151 *  -F --filesyms System.map
     
    155159 *  -q  No-op
    156160 *
    157  * So far we only support: [-rn] [-b BASE] [VERSION] [MODFILES]...
    158  * -aAeF are accepted but ignored. -vC are not accepted.
     161 * So far we only support: [-n] [-b BASE] [VERSION] [MODFILES]...
     162 * Accepted but ignored:
     163 * -aAe
     164 * -F System.map
     165 * -C FILE/DIR
     166 *
     167 * Not accepted: -v
    159168 */
    160169enum {
     
    208217    } else {
    209218        recursive_action(".", ACTION_RECURSE,
    210                  parse_module, NULL, &modules, 0);
     219                parse_module, NULL, &modules, 0);
    211220    }
    212221
Note: See TracChangeset for help on using the changeset viewer.