Lines Matching defs:keys
81 static ua_key_t keys[] = {
98 #define NKEYS (sizeof (keys)/sizeof (ua_key_t))
125 if (strcmp(key, keys[i].key) == 0) {
126 if (keys[i].newvalue != NULL) {
132 if (keys[i].check != NULL &&
133 (res = keys[i].check(value)) != NULL) {
134 errmsg(M_INVALID, res, keys[i].errstr);
137 keys[i].newvalue = value;
147 * Add the keys to the argument vector.
155 const char *key = keys[i].key;
156 char *val = keys[i].newvalue;
183 if (strcmp(keys[i].key, key) == 0)
184 if (keys[i].newvalue != NULL)
185 return (keys[i].newvalue);
187 return (keys[i].newvalue = dflt);