Lines Matching refs:optp
336 shellparam.optp = NULL;
356 if (param->optp) {
357 for (ap = param->optp ; *ap ; ap++)
359 ckfree(param->optp);
440 if (shellparam.optp) {
441 for (ap = shellparam.optp ; *ap ; ap++)
443 ckfree(shellparam.optp);
444 shellparam.optp = NULL;
447 shellparam.optp = ckmalloc((argc - 2) * sizeof *ap);
448 memset(shellparam.optp, '\0', (argc - 2) * sizeof *ap);
450 shellparam.optp[i] = savestr(argv[i + 3]);
453 optbase = argc == 3 ? shellparam.p : shellparam.optp;
458 optbase = shellparam.optp ? shellparam.optp : shellparam.p;