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/coreutils/mknod.c

    r2725 r3232  
    99
    1010/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
     11
     12//usage:#define mknod_trivial_usage
     13//usage:       "[-m MODE] " IF_SELINUX("[-Z] ") "NAME TYPE MAJOR MINOR"
     14//usage:#define mknod_full_usage "\n\n"
     15//usage:       "Create a special file (block, character, or pipe)\n"
     16//usage:     "\n    -m MODE Creation mode (default a=rw)"
     17//usage:    IF_SELINUX(
     18//usage:     "\n    -Z  Set security context"
     19//usage:    )
     20//usage:     "\nTYPE:"
     21//usage:     "\n    b   Block device"
     22//usage:     "\n    c or u  Character device"
     23//usage:     "\n    p   Named pipe (MAJOR and MINOR are ignored)"
     24//usage:
     25//usage:#define mknod_example_usage
     26//usage:       "$ mknod /dev/fd0 b 2 0\n"
     27//usage:       "$ mknod -m 644 /tmp/pipe p\n"
    1128
    1229#include <sys/sysmacros.h>  // For makedev
     
    4360                     * optimize out to two constants. */
    4461                    dev = makedev(xatoul_range(argv[2], 0, major(UINT_MAX)),
    45                                   xatoul_range(argv[3], 0, minor(UINT_MAX)));
     62                            xatoul_range(argv[3], 0, minor(UINT_MAX)));
    4663                }
    4764            }
Note: See TracChangeset for help on using the changeset viewer.