Lines Matching defs:index
114 int index;
269 range_check_validator(int index, char *value)
277 if (val < autofs_proto_options[index].minval ||
278 val > autofs_proto_options[index].maxval)
286 true_false_validator(int index, char *value)
298 strlen_validator(int index, char *value)
301 if (autofs_proto_options[index].minval == 0)
307 if (strlen(value) > autofs_proto_options[index].maxval ||
308 strlen(value) < autofs_proto_options[index].minval)
315 * autofs_validate_proto_prop(index, name, value)
322 autofs_validate_proto_prop(int index, const char *value)
324 if (index < 0 || index > AUTOFS_OPT_MAX)
327 if (autofs_proto_options[index].validator == NULL)
330 return (autofs_proto_options[index].validator(index, (char *)value));
343 autofs_add_default_value(int index)
348 if (index < 0 || index > AUTOFS_OPT_MAX)
351 switch (autofs_proto_options[index].type) {
354 autofs_proto_options[index].defvalue.intval);
358 if (autofs_proto_options[index].defvalue.intval == 0)
366 autofs_proto_options[index].defvalue.string != NULL ?
367 autofs_proto_options[index].defvalue.string : "");
375 autofs_proto_options[index].name, value);
504 int index;
515 if ((index = findprotoopt(propname)) < 0)
519 ret = autofs_validate_proto_prop(index, propval);
521 sctype = autofs_proto_options[index].type;