Lines Matching refs:val
443 __nis_value_t *val;
451 if ((val = findColValue("zo_owner", rv)) != 0 &&
452 val->type == vt_string && val->numVals == 1 &&
453 val->val[0].value != 0) {
454 attr->zo_owner = sdup(myself, T, val->val[0].value);
461 if ((val = findColValue("zo_group", rv)) != 0 &&
462 val->type == vt_string && val->numVals == 1 &&
463 val->val[0].value != 0) {
464 attr->zo_group = sdup(myself, T, val->val[0].value);
471 if ((val = findColValue("zo_domain", rv)) != 0 &&
472 val->type == vt_string && val->numVals == 1 &&
473 val->val[0].value != 0) {
474 attr->zo_domain = sdup(myself, T, val->val[0].value);
481 if ((val = findColValue("zo_access", rv)) != 0 &&
482 val->type == vt_string && val->numVals == 1 &&
483 val->val[0].value != 0) {
484 if (sscanf(val->val[0].value, "%x", &attr->zo_access) != 1) {
490 if ((val = findColValue("zo_ttl", rv)) != 0 &&
491 val->type == vt_string && val->numVals == 1 &&
492 val->val[0].value != 0) {
493 if (sscanf(val->val[0].value, "%x", &attr->zo_ttl) != 1) {
527 isObjAttr(__nis_single_value_t *val) {
528 if (val == 0 || val->length <= 0 || val->value == 0)
531 if (isObjAttrString(val->value))
532 return (val->value);
538 setObjAttrField(char *attrName, __nis_single_value_t *val,
543 if (attrName == 0 || val == 0 || objAttr == 0 ||
544 val->value == 0 || val->length <= 0)
558 attr->zo_owner = sdup(myself, T, val->value);
564 attr->zo_group = sdup(myself, T, val->value);
570 attr->zo_domain = sdup(myself, T, val->value);
576 if (sscanf(val->value, "%x", &attr->zo_access) != 1)
581 if (sscanf(val->value, "%x", &attr->zo_ttl) != 1)
1079 * In nis2ldap, if 'name' is provided then check if its value in 'val'
1098 __nis_rule_value_t *rv, char *name, char *val) {
1141 value = val;
1366 char *val, *filter, **fc = 0;
1376 val = def;
1393 val = value;
1399 if (val != 0)
1400 val = sdup(msg, T, val);
1405 return (val);
1423 __nis_value_t *val;
1473 val = am(myself, sizeof (*val));
1479 if (rv == 0 || sv == 0 || val == 0 || attrName == 0 ||
1485 sfree(val);
1494 val->type = vt_ber;
1495 val->repeat = 0;
1496 val->numVals = 1;
1497 val->val = sv;
1501 rv->attrVal = val;
1676 buf = rv[i].attrVal[j].val[0].value;
1677 blen = rv[i].attrVal[j].val[0].length;
1767 __nis_value_t val;
1778 val.type = vt_ber;
1779 val.numVals = -1;
1780 val.val = 0;
1789 rv.attrVal = &val;