Lines Matching refs:fields

16  * fields enclosed by brackets "[]" replaced with your own identifying
69 * the number of fields in the inittab and names for the fields. note that
171 char *fields[ITAB_FIELDS];
220 * parse the entry out into fields.
222 if (parse_entry(buffer, fields) == B_FALSE) {
231 if (atoi(fields[ITAB_GRAN]) > ITAB_GRAN_MAX) {
233 " out of range, skipping", line, fields[ITAB_GRAN]);
237 if (atoi(fields[ITAB_MAX]) > ITAB_MAX_MAX) {
239 "out of range, skipping", line, fields[ITAB_MAX]);
243 if (dsym_get_type_id(fields[ITAB_TYPE], &type, B_FALSE) !=
246 "is invalid, skipping", line, fields[ITAB_TYPE]);
255 if (strchr(fields[ITAB_CONS], consumer) == NULL)
258 if (code != -1 && atoi(fields[ITAB_CODE]) != code)
261 if (name != NULL && strcasecmp(fields[ITAB_NAME], name) != 0)
264 category_code = category_to_code(fields[ITAB_CAT]);
283 entry.ds_max = atoi(fields[ITAB_MAX]);
284 entry.ds_code = atoi(fields[ITAB_CODE]);
286 entry.ds_gran = atoi(fields[ITAB_GRAN]);
290 (void) strlcpy(entry.ds_name, fields[ITAB_NAME],
312 * parse_entry(): parses an entry out into its constituent fields
321 parse_entry(char *entry, char **fields)
327 * due to a mistake made long ago, the first and second fields of
329 * whitespace -- have bufsplit() treat the two fields as one, then
332 n_fields = bufsplit(entry, ITAB_FIELDS - 1, fields);
337 * pull the first and second fields apart. this is complicated
339 * must separate the two fields by the last span of whitespace).
344 category = strpbrk(fields[ITAB_NAME], " \t");
369 if (spacep <= fields[0])
375 * remove any whitespace from the fields.
378 while (isspace(*fields[i]))
379 fields[i]++;
381 fields[ITAB_CAT] = category;
977 * code and length fields in.