Lines Matching refs:len
58 size_t off, len, vlen, wlen;
70 for (len = 0; p >= s && *p != ':'; len++)
78 if ((v = strchr(q, '$')) != NULL && v < q + len) {
81 * reset len to the length of the text prior to '$'. If
87 vlen = (size_t)(q + len - v);
88 len = (size_t)(v - q);
138 if (len + vlen >= dtrace_probespecs[spec].dtps_len)
142 bcopy(q, (char *)pdp + off, len);
143 bcopy(v, (char *)pdp + off + len, vlen);
144 bcopy(w, (char *)pdp + off + len + vlen, wlen);
172 dtrace_desc2str(const dtrace_probedesc_t *pdp, char *buf, size_t len)
175 (void) snprintf(buf, len, "%s:%s:%s:%s", pdp->dtpd_provider,
178 (void) snprintf(buf, len, "%u", pdp->dtpd_id);
184 dtrace_attr2str(dtrace_attribute_t attr, char *buf, size_t len)
193 (void) snprintf(buf, len, "%s/%s/%s", name, data, class);
345 dt_attr_str(dtrace_attribute_t a, char *buf, size_t len)
352 (void) snprintf(buf, len, "[%c/%c/%c]", stability[a.dtat_name],
355 (void) snprintf(buf, len, "[%u/%u/%u]",
363 dt_version_num2str(dt_version_t v, char *buf, size_t len)
370 (void) snprintf(buf, len, "%u.%u", M, m);
372 (void) snprintf(buf, len, "%u.%u.%u", M, m, u);
515 ssize_t len;
518 if ((len = write(fd, buf, resid)) <= 0)
521 resid -= len;
522 buf = (char *)buf + len;
559 int len;
564 buf = &dtp->dt_sprintf_buf[len = strlen(dtp->dt_sprintf_buf)];
565 len = dtp->dt_sprintf_buflen - len;
566 assert(len >= 0);
568 if ((n = vsnprintf(buf, len, format, ap)) < 0)
808 int len = strlen(s);
815 return (len);
818 if (nbytes <= len) {
829 return (len);