Lines Matching refs:vl
462 struct varlist *vl;
464 for (vl = list; vl < list + MAXLIST && vl->name != NULL; vl++)
465 if (!strcmp(name, vl->name))
466 return vl;
467 if (vl < list + MAXLIST)
468 return vl;
483 struct varlist *vl;
491 vl = findlistvar(vlist, name);
492 if (NULL == vl) {
497 if (NULL == vl->name) {
498 vl->name = estrdup(name);
499 } else if (vl->value != NULL) {
500 free(vl->value);
501 vl->value = NULL;
505 vl->value = estrdup(value);
519 struct varlist *vl;
527 vl = findlistvar(vlist, name);
528 if (vl == 0 || vl->name == 0) {
532 free((void *)(intptr_t)vl->name);
533 if (vl->value != 0)
534 free(vl->value);
535 for ( ; (vl+1) < (g_varlist + MAXLIST)
536 && (vl+1)->name != 0; vl++) {
537 vl->name = (vl+1)->name;
538 vl->value = (vl+1)->value;
540 vl->name = vl->value = 0;
554 register struct varlist *vl;
556 for (vl = vlist; vl < vlist + MAXLIST && vl->name != 0; vl++) {
557 free((void *)(intptr_t)vl->name);
558 vl->name = 0;
559 if (vl->value != 0) {
560 free(vl->value);
561 vl->value = 0;
577 register struct varlist *vl;
585 for (vl = vlist; vl < vlist + MAXLIST && vl->name != 0; vl++) {
586 namelen = strlen(vl->name);
587 if (vl->value == 0)
590 valuelen = strlen(vl->value);
595 vl->name);
601 memcpy(cp, vl->name, (size_t)namelen);
605 memcpy(cp, vl->value, (size_t)valuelen);
3765 struct varlist vl[MAXLIST];
3781 ZERO(vl);
3785 doaddvlist(vl, pvdc->tag);
3790 doaddvlist(vl, tagbuf);
3794 qres = doquerylist(vl, CTL_OP_READVAR, as, 0, &rstatus, &rsize,
3796 doclearvlist(vl);