Home
last modified time | relevance | path

Searched refs:bytesneeded (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_script.c2533 int offset, bytesneeded, bytesleft, error_num; in rcmscript_snprintf() local
2541 bytesneeded = SPRINTF_MIN_CHUNK_LEN; in rcmscript_snprintf()
2546 if (bytesneeded > bytesleft) { in rcmscript_snprintf()
2547 *buflen += RSCR_ROUNDUP(bytesneeded - bytesleft, in rcmscript_snprintf()
2562 bytesneeded = vsnprintf(*curptr, bytesleft, format, ap); in rcmscript_snprintf()
2565 if (bytesneeded < 0) { in rcmscript_snprintf()
2573 } else if (bytesneeded < bytesleft) { in rcmscript_snprintf()
2575 *curptr += bytesneeded; in rcmscript_snprintf()
2579 bytesneeded++; /* to account for storage for '\0' */ in rcmscript_snprintf()