Lines Matching refs:used
24 int applet_len, strerr_len, msgeol_len, used; in bb_verror_msg() local
45 used = vsnprintf(stack_msg + applet_len, (int)sizeof(stack_msg) - applet_len, s, p2); in bb_verror_msg()
48 used += applet_len; in bb_verror_msg()
49 if (used < (int)sizeof(stack_msg) - 3 - msgeol_len - strerr_len) in bb_verror_msg()
53 used = vasprintf(&msg, s, p); in bb_verror_msg()
54 if (used < 0) in bb_verror_msg()
65 msg1 = realloc(msg, applet_len + used + strerr_len + msgeol_len + 3); in bb_verror_msg()
67 msg[used++] = '\n'; /* overwrites NUL */ in bb_verror_msg()
72 memmove(msg + applet_len, msg, used); in bb_verror_msg()
73 used += applet_len; in bb_verror_msg()
80 msg[used++] = ':'; in bb_verror_msg()
81 msg[used++] = ' '; in bb_verror_msg()
83 strcpy(&msg[used], strerr); in bb_verror_msg()
84 used += strerr_len; in bb_verror_msg()
86 strcpy(&msg[used], msg_eol); in bb_verror_msg()
87 used += msgeol_len; in bb_verror_msg()
92 full_write(STDERR_FILENO, msg, used); in bb_verror_msg()
111 #define used (iov[2].iov_len) in bb_verror_msg() macro
123 used = vasprintf((char**)(void*)msgptr, s, p); in bb_verror_msg()
124 if (used < 0) in bb_verror_msg()
135 msgv = xrealloc(msgv, used + strerr_len + msgeol_len + 3); in bb_verror_msg()
137 msgc[used++] = ':'; in bb_verror_msg()
138 msgc[used++] = ' '; in bb_verror_msg()
139 strcpy(msgc + used, strerr); in bb_verror_msg()
140 used += strerr_len; in bb_verror_msg()
142 strcpy(msgc + used, msg_eol); in bb_verror_msg()
143 used += msgeol_len; in bb_verror_msg()