Lines Matching refs:args

622   char *args[ARRAY_SIZE (legacy_commands[0].argt)];
760 grub_memset (args, 0, sizeof (args));
804 args[i++] = grub_strndup(curarg, bootfs_with_slash - curarg);
805 args[i] = grub_strndup(bootfs_with_slash, curarglen -
810 /* We emit 3 args -- the first is either the empty string if
817 args[i] = 0;
818 args[i + 1] = 0;
819 args[i + 2] = 0;
834 args[i + 1] = grub_strndup(curarg + 1, sigend - (curarg + 1));
843 args[i + 1] = grub_strdup(curarg);
845 if (args[i + 1])
851 args[i + 2] = ((grub_strlen(args[i + 1]) > 5) &&
852 grub_strncmp(args[i + 1], "pool_", 5) == 0) ?
854 if (args[i + 2][0] == 0) /* not zfs */
855 args[i] = grub_strdup("");
857 args[i] = grub_strdup("/@");
870 args[i] = adjust_file (curarg, curarglen, transform_vars);
895 outptr0 = args[i] = grub_malloc (overhead + (ptr - curarg));
957 args[i] = grub_legacy_escape (curarg, curarglen);
966 args[i] = grub_strndup (curarg, curarglen);
969 args[i] = grub_strdup ("");
997 args[i] = grub_strdup ("0");
999 args[i] = grub_strndup (curarg, brk - curarg);
1016 args[i] = grub_strdup ("auto");
1022 args[i] = grub_strdup ("auto");
1025 args[i] = grub_xasprintf ("%ux%ux%u",
1032 args[i] = grub_strdup ("1");
1034 args[i] = grub_strdup ("0");
1041 && args[legacy_commands[cmdnum].argc - 1] == NULL
1043 && args[legacy_commands[cmdnum + 1].argc] == NULL)
1064 args[i] = grub_strdup ("");
1068 args[i] = grub_strdup ("0");
1071 args[i] = grub_strdup ("auto");
1077 char *corig = args[legacy_commands[cmdnum].argc - 1];
1086 args[0]);
1093 invert[len - (slash - args[0]) - 1] = '/';
1096 args[legacy_commands[cmdnum].argc] = invert;
1102 args[legacy_commands[cmdnum].suffixarg]);
1108 char *ret = grub_xasprintf (legacy_commands[cmdnum].map, args[0], args[1],
1109 args[2], args[3]);
1110 grub_free (args[0]);
1111 grub_free (args[1]);
1112 grub_free (args[2]);
1113 grub_free (args[3]);