Lines Matching refs:optp
337 shellparam.optp = NULL;
357 if (param->optp) {
358 for (ap = param->optp ; *ap ; ap++)
360 ckfree(param->optp);
441 if (shellparam.optp) {
442 for (ap = shellparam.optp ; *ap ; ap++)
444 ckfree(shellparam.optp);
445 shellparam.optp = NULL;
448 shellparam.optp = ckmalloc((argc - 2) * sizeof *ap);
449 memset(shellparam.optp, '\0', (argc - 2) * sizeof *ap);
451 shellparam.optp[i] = savestr(argv[i + 3]);
454 optbase = argc == 3 ? shellparam.p : shellparam.optp;
459 optbase = shellparam.optp ? shellparam.optp : shellparam.p;