Home | History | Annotate | Download | only in pending

Lines Matching defs:args

191   char **args;
202 args = xzalloc((toys.optc + 2 + 1 + 1) * sizeof(char*)); //+1, for NULL, +1 if -C
203 args[0] = xmprintf("fsck.%s", type);
205 if(toys.optflags & FLAG_C) args[i++] = xmprintf("%s %d","-C", TT.fd_num);
207 if(*toys.optargs[j]) args[i++] = xstrdup(toys.optargs[j]);
210 args[i] = finfo->device;
214 printf("[%s (%d) -- %s]", args[0], TT.nr_run,
216 for (i = 0; args[i]; i++) xprintf(" %s", args[i]);
221 for (j=0;j<i;j++) free(args[i]);
222 free(args);
226 perror_msg(args[0]);
227 for (j=0;j<i;j++) free(args[i]);
228 free(args);
231 if (!pid) xexec(args); //child, executes fsck.type
236 child->prog_name = args[0];