Lines Matching refs:buf

111 	char buf[MAXNAMELEN];
127 if (count > sizeof (buf))
130 (void) snprintf(buf, count, "%s", begin);
134 if (strcmp(buf, dbp->tdm_name) == 0)
232 * buf_append -- Append str to buf (if it's non-NULL). Place prepend
233 * in buf in front of str and append behind it (if they're non-NULL).
238 topo_fmristr_build(ssize_t *sz, char *buf, size_t buflen, char *str,
249 if (buf != NULL && left != 0)
250 buf += *sz;
253 *sz += snprintf(buf, left, "%s", str);
255 *sz += snprintf(buf, left, "%s%s", prepend, str);
257 *sz += snprintf(buf, left, "%s%s", str, append);
259 *sz += snprintf(buf, left, "%s%s%s", prepend, str, append);
308 char buf[MAXNAMELEN];
331 buf[i] = '-';
333 buf[i] = c;
336 buf[i] = 0;
338 pp = topo_hdl_strdup(thp, buf);
343 topo_sensor_type_name(uint32_t type, char *buf, size_t len)
349 (void) strlcpy(buf, ntp->int_name, len);
354 (void) snprintf(buf, len, "0x%02x", type);
358 topo_sensor_units_name(uint8_t type, char *buf, size_t len)
364 (void) strlcpy(buf, ntp->int_name, len);
369 (void) snprintf(buf, len, "0x%02x", type);
373 topo_led_type_name(uint8_t type, char *buf, size_t len)
379 (void) strlcpy(buf, ntp->int_name, len);
384 (void) snprintf(buf, len, "0x%02x", type);
388 topo_led_state_name(uint8_t type, char *buf, size_t len)
394 (void) strlcpy(buf, ntp->int_name, len);
399 (void) snprintf(buf, len, "0x%02x", type);
403 topo_sensor_state_name(uint32_t sensor_type, uint8_t state, char *buf,
536 (void) snprintf(buf, len, "0x%02x", state);
541 (void) strlcpy(buf, ntp->int_name, len);
546 (void) snprintf(buf, len, "0x%02x", state);