Lines Matching defs:arguments

891 struct arguments
924 know is a pointer to our arguments structure. */
925 struct arguments *arguments = state->input;
932 arguments->allow_floppy = 1;
936 if (arguments->boot_file)
937 free (arguments->boot_file);
939 arguments->boot_file = xstrdup (arg);
943 if (arguments->core_file)
944 free (arguments->core_file);
946 arguments->core_file = xstrdup (arg);
950 if (arguments->dir)
951 free (arguments->dir);
953 arguments->dir = xstrdup (arg);
957 if (arguments->dev_map)
958 free (arguments->dev_map);
960 arguments->dev_map = xstrdup (arg);
964 arguments->force_mbr = 1;
968 arguments->dry_run = 1;
972 if (arguments->root_dev)
973 free (arguments->root_dev);
975 arguments->root_dev = xstrdup (arg);
979 arguments->force = 1;
983 arguments->fs_probe = 0;
992 if (arguments->version_spec)
993 free (arguments->version_spec);
995 arguments->version_spec = xstrdup (arg);
1001 arguments->device = xstrdup(arg);
1004 /* Too many arguments. */
1051 struct arguments arguments;
1058 memset (&arguments, 0, sizeof (struct arguments));
1059 arguments.fs_probe = 1;
1061 /* Parse our arguments */
1062 if (argp_parse (&argp, argc, argv, 0, 0, &arguments) != 0)
1064 fprintf (stderr, "%s", _("Error in parsing command line arguments\n"));
1069 arguments.force = 1;
1076 grub_util_biosdisk_init (arguments.dev_map ? : DEFAULT_DEVICE_MAP);
1091 dest_dev = get_device_name (arguments.device);
1095 dest_dev = grub_util_get_grub_dev (arguments.device);
1099 fprintf (stderr, _("Invalid device `%s'.\n"), arguments.device);
1105 arguments.device, dest_dev);
1114 if (arguments.root_dev)
1116 root_dev = get_device_name (arguments.root_dev);
1119 grub_util_error (_("invalid root device `%s'"), arguments.root_dev);
1126 grub_guess_root_device (arguments.dir ? : DEFAULT_DIRECTORY);
1138 arguments.dir ? : DEFAULT_DIRECTORY);
1160 if (arguments.device[0] == '/')
1161 devicelist = grub_util_raid_getmembers (arguments.device, 1);
1173 setup (arguments.dir ? : DEFAULT_DIRECTORY,
1174 arguments.boot_file ? : DEFAULT_BOOT_FILE,
1175 arguments.core_file ? : DEFAULT_CORE_FILE,
1177 arguments.force, arguments.fs_probe,
1178 arguments.allow_floppy, arguments.force_mbr,
1179 arguments.dry_run);
1185 current_device = arguments.device;
1186 setup (arguments.dir ? : DEFAULT_DIRECTORY,
1187 arguments.boot_file ? : DEFAULT_BOOT_FILE,
1188 arguments.core_file ? : DEFAULT_CORE_FILE,
1189 root_dev, dest_dev, must_embed, arguments.force,
1190 arguments.fs_probe, arguments.allow_floppy,
1191 arguments.force_mbr, arguments.dry_run
1193 , arguments.version_spec
1201 free (arguments.boot_file);
1202 free (arguments.core_file);
1203 free (arguments.dir);
1204 free (arguments.root_dev);
1205 free (arguments.dev_map);
1206 free (arguments.device);