Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/coreutils/rmdir.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 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/rmdir.c

    r2725 r3232  
    1111/* http://www.opengroup.org/onlinepubs/007904975/utilities/rmdir.html */
    1212
     13//usage:#define rmdir_trivial_usage
     14//usage:       "[OPTIONS] DIRECTORY..."
     15//usage:#define rmdir_full_usage "\n\n"
     16//usage:       "Remove DIRECTORY if it is empty\n"
     17//usage:    IF_FEATURE_RMDIR_LONG_OPTIONS(
     18//usage:     "\n    -p|--parents    Include parents"
     19//usage:     "\n    --ignore-fail-on-non-empty"
     20//usage:    )
     21//usage:    IF_NOT_FEATURE_RMDIR_LONG_OPTIONS(
     22//usage:     "\n    -p  Include parents"
     23//usage:    )
     24//usage:
     25//usage:#define rmdir_example_usage
     26//usage:       "# rmdir /tmp/foo\n"
     27
    1328#include "libbb.h"
    1429
     
    1631
    1732
    18 #define PARENTS 0x01
    19 #define IGNORE_NON_EMPTY 0x02
     33#define PARENTS          (1 << 0)
     34//efine VERBOSE          (1 << 1) //accepted but ignored
     35#define IGNORE_NON_EMPTY (1 << 2)
    2036
    2137int rmdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     
    2945    static const char rmdir_longopts[] ALIGN1 =
    3046        "parents\0"                  No_argument "p"
     47        "verbose\0"                  No_argument "v"
    3148        /* Debian etch: many packages fail to be purged or installed
    3249         * because they desperately want this option: */
     
    3552    applet_long_options = rmdir_longopts;
    3653#endif
    37     flags = getopt32(argv, "p");
     54    flags = getopt32(argv, "pv");
    3855    argv += optind;
    3956
Note: See TracChangeset for help on using the changeset viewer.