Lines Matching defs:tstr
101 str2type(const char *tstr)
105 if (tstr == NULL)
108 if (strcmp(tstr, "int32") == 0)
110 else if (strcmp(tstr, "uint32") == 0)
112 else if (strcmp(tstr, "int64") == 0)
114 else if (strcmp(tstr, "uint64") == 0)
116 else if (strcmp(tstr, "string") == 0)
118 else if (strcmp(tstr, "fmri") == 0)
243 char *tstr, *propn, buf[48], *factype;
274 case TOPO_TYPE_BOOLEAN: tstr = "boolean"; break;
275 case TOPO_TYPE_INT32: tstr = "int32"; break;
276 case TOPO_TYPE_UINT32: tstr = "uint32"; break;
277 case TOPO_TYPE_INT64: tstr = "int64"; break;
278 case TOPO_TYPE_UINT64: tstr = "uint64"; break;
279 case TOPO_TYPE_DOUBLE: tstr = "double"; break;
280 case TOPO_TYPE_STRING: tstr = "string"; break;
281 case TOPO_TYPE_FMRI: tstr = "fmri"; break;
282 case TOPO_TYPE_INT32_ARRAY: tstr = "int32[]"; break;
283 case TOPO_TYPE_UINT32_ARRAY: tstr = "uint32[]"; break;
284 case TOPO_TYPE_INT64_ARRAY: tstr = "int64[]"; break;
285 case TOPO_TYPE_UINT64_ARRAY: tstr = "uint64[]"; break;
286 case TOPO_TYPE_STRING_ARRAY: tstr = "string[]"; break;
287 case TOPO_TYPE_FMRI_ARRAY: tstr = "fmri[]"; break;
288 default: tstr = "unknown type";
291 (void) printf(" %-17s %-8s ", propn, tstr);