Lines Matching defs:fields

16  * fields enclosed by brackets "[]" replaced with your own identifying
70 * the number of fields in the inittab and names for the fields. note that
169 char *fields[ITAB_FIELDS];
218 * parse the entry out into fields.
220 if (parse_entry(buffer, fields) == B_FALSE) {
229 if (atoi(fields[ITAB_GRAN]) > ITAB_GRAN_MAX) {
231 " out of range, skipping", line, fields[ITAB_GRAN]);
235 if (atoi(fields[ITAB_MAX]) > ITAB_MAX_MAX) {
237 "out of range, skipping", line, fields[ITAB_MAX]);
241 if (dsym_get_type_id(fields[ITAB_TYPE], &type, B_FALSE) !=
244 "is invalid, skipping", line, fields[ITAB_TYPE]);
253 if (strchr(fields[ITAB_CONS], consumer) == NULL)
256 if (code != -1 && atoi(fields[ITAB_CODE]) != code)
259 if (name != NULL && strcasecmp(fields[ITAB_NAME], name) != 0)
262 category_code = category_to_code(fields[ITAB_CAT]);
281 entry.ds_max = atoi(fields[ITAB_MAX]);
282 entry.ds_code = atoi(fields[ITAB_CODE]);
284 entry.ds_gran = atoi(fields[ITAB_GRAN]);
288 (void) strlcpy(entry.ds_name, fields[ITAB_NAME],
310 * parse_entry(): parses an entry out into its constituent fields
319 parse_entry(char *entry, char **fields)
325 * due to a mistake made long ago, the first and second fields of
327 * whitespace -- have bufsplit() treat the two fields as one, then
330 n_fields = bufsplit(entry, ITAB_FIELDS - 1, fields);
335 * pull the first and second fields apart. this is complicated
337 * must separate the two fields by the last span of whitespace).
342 category = strpbrk(fields[ITAB_NAME], " \t");
367 if (spacep <= fields[0])
373 * remove any whitespace from the fields.
376 while (isspace(*fields[i]))
377 fields[i]++;
379 fields[ITAB_CAT] = category;
976 * code and length fields in.