Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/coreutils/rmdir.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/coreutils/rmdir.c
r2725 r3232 11 11 /* http://www.opengroup.org/onlinepubs/007904975/utilities/rmdir.html */ 12 12 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 13 28 #include "libbb.h" 14 29 … … 16 31 17 32 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) 20 36 21 37 int rmdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; … … 29 45 static const char rmdir_longopts[] ALIGN1 = 30 46 "parents\0" No_argument "p" 47 "verbose\0" No_argument "v" 31 48 /* Debian etch: many packages fail to be purged or installed 32 49 * because they desperately want this option: */ … … 35 52 applet_long_options = rmdir_longopts; 36 53 #endif 37 flags = getopt32(argv, "p ");54 flags = getopt32(argv, "pv"); 38 55 argv += optind; 39 56
Note:
See TracChangeset
for help on using the changeset viewer.