Home | History | Annotate | Download | only in sunlabel

Lines Matching defs:fields

109 	/* BEGIN fields taken directly from struct dk_label */
123 /* END fields taken directly from struct dk_label */
145 * Note that while the fields in the label vary in size (8, 16, or 32
179 * _ascii functions are for 128-byte string fields (the ASCII label);
180 * the _int functions are for int-valued fields (everything else).
190 /* The fields themselves. */
191 static struct field fields[] =
884 if (fields[0].taglen < 1) {
885 for (i = 0; fields[i].tag; i++)
886 fields[i].taglen = strlen(fields[i].tag);
893 for (i = 0; fields[i].tag; i++) {
894 if (((int)n == fields[i].taglen) && !memcmp(str, fields[i].tag, n)) {
895 (*fields[i].chval) (cp, &fields[i]);
896 if (fields[i].changed)
897 (*fields[i].changed)();
901 if (!fields[i].tag)
906 * `changed' function for the ntrack and nsect fields; update label.spc
920 * Print function for 128-byte-string fields. Currently only the ASCII
957 for (i = 0; fields[i].tag; i++)
958 c = (*fields[i].print) (&fields[i], c);