*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
//config:config FSFREEZE
//config: bool "fsfreeze (3.6 kb)"
//config: default y
unsigned opts;
int fd;
- applet_long_options =
- "freeze\0" No_argument "\xff"
- "unfreeze\0" No_argument "\xfe"
- ;
/* exactly one non-option arg: the mountpoint */
/* one of opts is required */
/* opts are mutually exclusive */
- opt_complementary = "=1:""\xff:\xfe:""\xff--\xfe:\xfe--\xff";
- opts = getopt32(argv, "");
+ opts = getopt32long(argv, "^"
+ "" /* no opts */
+ "\0" "=1:""\xff:\xfe:""\xff--\xfe:\xfe--\xff",
+ "freeze\0" No_argument "\xff"
+ "unfreeze\0" No_argument "\xfe"
+ );
fd = xopen(argv[optind], O_RDONLY);
/* Works with NULL arg on linux-4.8.0 */