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

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/miscutils/makedevs.c

    r2725 r3232  
    77 * known bugs: can't deal with alpha ranges
    88 */
     9
     10//usage:#if ENABLE_FEATURE_MAKEDEVS_LEAF
     11//usage:#define makedevs_trivial_usage
     12//usage:       "NAME TYPE MAJOR MINOR FIRST LAST [s]"
     13//usage:#define makedevs_full_usage "\n\n"
     14//usage:       "Create a range of block or character special files"
     15//usage:     "\n"
     16//usage:     "\nTYPE is:"
     17//usage:     "\n    b   Block device"
     18//usage:     "\n    c   Character device"
     19//usage:     "\n    f   FIFO, MAJOR and MINOR are ignored"
     20//usage:     "\n"
     21//usage:     "\nFIRST..LAST specify numbers appended to NAME."
     22//usage:     "\nIf 's' is the last argument, the base device is created as well."
     23//usage:     "\n"
     24//usage:     "\nExamples:"
     25//usage:     "\n    makedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63"
     26//usage:     "\n    makedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8"
     27//usage:
     28//usage:#define makedevs_example_usage
     29//usage:       "# makedevs /dev/ttyS c 4 66 2 63\n"
     30//usage:       "[creates ttyS2-ttyS63]\n"
     31//usage:       "# makedevs /dev/hda b 3 0 0 8 s\n"
     32//usage:       "[creates hda,hda1-hda8]\n"
     33//usage:#endif
     34//usage:
     35//usage:#if ENABLE_FEATURE_MAKEDEVS_TABLE
     36//usage:#define makedevs_trivial_usage
     37//usage:       "[-d device_table] rootdir"
     38//usage:#define makedevs_full_usage "\n\n"
     39//usage:       "Create a range of special files as specified in a device table.\n"
     40//usage:       "Device table entries take the form of:\n"
     41//usage:       "<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n"
     42//usage:       "Where name is the file name, type can be one of:\n"
     43//usage:       "    f   Regular file\n"
     44//usage:       "    d   Directory\n"
     45//usage:       "    c   Character device\n"
     46//usage:       "    b   Block device\n"
     47//usage:       "    p   Fifo (named pipe)\n"
     48//usage:       "uid is the user id for the target file, gid is the group id for the\n"
     49//usage:       "target file. The rest of the entries (major, minor, etc) apply to\n"
     50//usage:       "to device special files. A '-' may be used for blank entries."
     51//usage:
     52//usage:#define makedevs_example_usage
     53//usage:       "For example:\n"
     54//usage:       "<name>    <type> <mode><uid><gid><major><minor><start><inc><count>\n"
     55//usage:       "/dev         d   755    0    0    -      -      -      -    -\n"
     56//usage:       "/dev/console c   666    0    0    5      1      -      -    -\n"
     57//usage:       "/dev/null    c   666    0    0    1      3      0      0    -\n"
     58//usage:       "/dev/zero    c   666    0    0    1      5      0      0    -\n"
     59//usage:       "/dev/hda     b   640    0    0    3      0      0      0    -\n"
     60//usage:       "/dev/hda     b   640    0    0    3      1      1      1    15\n\n"
     61//usage:       "Will Produce:\n"
     62//usage:       "/dev\n"
     63//usage:       "/dev/console\n"
     64//usage:       "/dev/null\n"
     65//usage:       "/dev/zero\n"
     66//usage:       "/dev/hda\n"
     67//usage:       "/dev/hda[0-15]\n"
     68//usage:#endif
    969
    1070#include "libbb.h"
Note: See TracChangeset for help on using the changeset viewer.