Lines Matching refs:val
35 struct ldb_val val;
38 val.data = (uint8_t *)talloc_strdup(mem_ctx, input);
39 if (!val.data) {
46 val.length = strlen(input);
48 *sanitized = ldb_dn_escape_value(mem_ctx, val);
53 talloc_free(val.data);
204 const struct ldb_val *val;
235 val = ldb_dn_get_rdn_val(ldb_dn);
236 if (val == NULL) {
242 *_val = talloc_strndup(mem_ctx, (char *) val->data, val->length);
351 int32_t val;
363 val = strtoint32((const char *) el->values[0].data, &endptr, 10);
367 *value = val;
377 uint32_t val;
389 val = strtouint32((const char *) el->values[0].data, &endptr, 10);
393 *value = val;
403 uint16_t val;
415 val = strtouint16((const char *) el->values[0].data, &endptr, 10);
419 *value = val;
492 const struct ldb_val *val)
506 if (val->length == el->values[c].length
507 && memcmp(val->data, el->values[c].data,
508 val->length) == 0) {
518 vals[el->num_values] = ldb_val_dup(vals, val);
530 const char *name, const struct ldb_val *val)
532 return sysdb_attrs_add_val_int(attrs, name, false, val);
537 const char *name, const struct ldb_val *val)
539 return sysdb_attrs_add_val_int(attrs, name, true, val);
680 unsigned long val = value;
685 str = talloc_asprintf(attrs, "%lu", val);
700 long long val = value;
705 str = talloc_asprintf(attrs, "%lld", val);