Lines Matching defs:proto_options
121 } proto_options[] = {
153 #define AUTOFS_PROP_MAX (sizeof (proto_options) / sizeof (proto_options[0]))
161 for (i = 0; proto_options[i].tag != NULL; i++) {
164 proto_options[i].name);
167 switch (proto_options[i].type) {
170 proto_options[i].defvalue.intval);
171 prop = sa_create_property(proto_options[i].name,
176 prop = sa_create_property(proto_options[i].name,
177 proto_options[i].defvalue.intval ?
183 prop = sa_create_property(proto_options[i].name,
235 for (i = 0; proto_options[i].tag != NULL; i++)
236 if (strcmp(proto_options[i].name, propname) == 0)
275 switch (proto_options[optionindex].type) {
279 ret = proto_options[optionindex].check(optionindex,
431 prop = sa_create_property(proto_options[index].name, value);
451 for (i = 0; proto_options[i].tag != NULL; i++) {
453 (void) strncpy(name, proto_options[i].name, PATH_MAX);
454 sctype = proto_options[i].type;
481 if (val < proto_options[index].minval ||
482 val > proto_options[index].maxval)
513 if (proto_options[index].minval == 0) {
519 if (strlen(value) > proto_options[index].maxval ||
520 strlen(value) < proto_options[index].minval)
531 return (proto_options[index].check(index, value));
549 sctype = proto_options[index].type;