Lines Matching defs:of
4 * The contents of this file are subject to the terms of the
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
17 * information: Portions Copyright [yyyy] [name of copyright owner]
40 * of fields selected for output.
44 const char **s_fields; /* array of pointers to the fields in s_buf */
45 uint_t s_nfields; /* the number of fields in s_buf */
53 * The state of the output is tracked in a ofmt_state_t structure.
56 * os_nfields set to the number of requested fields.
72 * of the output buffer, except when the buffer is returned with the empty
81 * The maximum number of rows supported by the OFMT_WRAP option.
148 * in a fields_str, build a list of field names, stopping
149 * when we run out of columns.
184 ofmt_field_t *of;
199 * since the set of fields may change over time.
214 * full set of columns (equivalent to -o all).
234 of = os->os_fields;
237 * sp->s_nfields is the number of fields requested in fields_str.
238 * nfields is the number of fields in template.
262 of[of_index].of_name = strdup(template[j].of_name);
263 if (of[of_index].of_name == NULL)
266 int n = strlen(of[of_index].of_name);
270 of[of_index].of_width = template[j].of_width;
271 of[of_index].of_id = template[j].of_id;
272 of[of_index].of_cb = template[j].of_cb;
278 os->os_nfields = of_index; /* actual number of fields printed */
416 * Print one or more rows of output values for the selected columns.
424 ofmt_field_t *of;
447 of = os->os_fields;
453 ofarg.ofmt_id = of[i].of_id;
456 if ((*of[i].of_cb)(&ofarg, value, sizeof (value))) {
462 ofmt_fit_width(&sp[i], of[i].of_width, value,
469 ofmt_print_field(os, &of[i],
473 ofmt_print_field(os, &of[i], OFMT_VAL_UNKNOWN, escsep);
484 ofmt_fit_width(&sp[i], of[i].of_width,
490 ofmt_print_field(os, &of[i], value, escsep);
510 ofmt_field_t *of = os->os_fields;
515 ofmt_print_field(os, &of[i], of[i].of_name, escsep);
560 * Enumerate the singular/plural version of the warning