Lines Matching refs:uep
1657 struct userenv *uep, **insp; local
1667 for (uep = userenv_list; uep != NULL; uep = uep->ue_next) {
1668 int nlen = strlen(uep->ue_name);
1670 strncmp(arg, uep->ue_name, nlen) == 0)
1674 if (uep != NULL && !privileged_option && uep->ue_priv)
1677 if (uep == NULL) {
1678 uep = malloc(sizeof (*uep) + (eqp-arg));
1679 strncpy(uep->ue_name, arg, eqp-arg);
1680 uep->ue_name[eqp-arg] = '\0';
1681 uep->ue_next = NULL;
1685 *insp = uep;
1689 if (uep2 != uep && !uep2->ue_isset)
1692 if (uep2 == NULL && !uep->ue_isset)
1694 free(uep->ue_value);
1696 uep->ue_isset = 1;
1697 uep->ue_priv = privileged_option;
1698 uep->ue_source = option_source;
1699 uep->ue_value = strdup(eqp + 1);
1710 struct userenv *uep, *uepnext; local
1715 while ((uep = uepnext) != NULL) {
1716 uepnext = uep->ue_next;
1719 (*printer)(arg, "%s=%s", uep->ue_name, uep->ue_value);
1721 (*printer)(arg, "\t\t# (from %s)\n%s ", uep->ue_source, opt->name);
1723 opt->source = uep->ue_source;
1731 struct userenv *uep, **insp; local
1742 for (uep = userenv_list; uep != NULL; uep = uep->ue_next) {
1743 if (strcmp(arg, uep->ue_name) == 0)
1747 if (uep != NULL && !privileged_option && uep->ue_priv)
1750 if (uep == NULL) {
1751 uep = malloc(sizeof (*uep) + strlen(arg));
1752 strcpy(uep->ue_name, arg);
1753 uep->ue_next = NULL;
1757 *insp = uep;
1761 if (uep2 != uep && uep2->ue_isset)
1764 if (uep2 == NULL && uep->ue_isset)
1766 free(uep->ue_value);
1768 uep->ue_isset = 0;
1769 uep->ue_priv = privileged_option;
1770 uep->ue_source = option_source;
1771 uep->ue_value = NULL;
1782 struct userenv *uep, *uepnext; local
1787 while ((uep = uepnext) != NULL) {
1788 uepnext = uep->ue_next;
1791 (*printer)(arg, "%s", uep->ue_name);
1793 (*printer)(arg, "\t\t# (from %s)\n%s ", uep->ue_source, opt->name);
1795 opt->source = uep->ue_source;