Lines Matching refs:str

116 #define	REMAINDER	(ERRBUFSZ - (str - strstart))
123 char *str = __buf(); in clnt_sperror() local
124 char *strstart = str; in clnt_sperror()
126 if (str == NULL) in clnt_sperror()
130 (void) snprintf(str, ERRBUFSZ, "%s: ", s); in clnt_sperror()
131 str += strlcat(str, clnt_sperrno(e.re_status), ERRBUFSZ); in clnt_sperror()
152 (void) snprintf(str, REMAINDER, "; %s", netdir_sperror()); in clnt_sperror()
153 str += strlen(str); in clnt_sperror()
157 (void) snprintf(str, REMAINDER, "; %s", t_errlist[e.re_terrno]); in clnt_sperror()
158 str += strlen(str); in clnt_sperror()
160 (void) snprintf(str, REMAINDER, in clnt_sperror()
162 str += strlen(str); in clnt_sperror()
170 (void) snprintf(str, REMAINDER, "; errno = %s", in clnt_sperror()
172 str += strlen(str); in clnt_sperror()
175 (void) snprintf(str, REMAINDER, in clnt_sperror()
177 str += strlen(str); in clnt_sperror()
182 (void) snprintf(str, REMAINDER, in clnt_sperror()
185 str += strlen(str); in clnt_sperror()
190 (void) snprintf(str, REMAINDER, "; why = "); in clnt_sperror()
191 str += strlen(str); in clnt_sperror()
193 (void) snprintf(str, REMAINDER, "%s", err); in clnt_sperror()
195 (void) snprintf(str, REMAINDER, in clnt_sperror()
199 str += strlen(str); in clnt_sperror()
203 (void) snprintf(str, REMAINDER, in clnt_sperror()
206 str += strlen(str); in clnt_sperror()
210 (void) snprintf(str, REMAINDER, "; s1 = %lu, s2 = %lu", in clnt_sperror()
212 str += strlen(str); in clnt_sperror()
238 char *str = __buf(); in clnt_spcreateerror() local
240 if (str == NULL) in clnt_spcreateerror()
242 (void) snprintf(str, ERRBUFSZ, "%s: ", s); in clnt_spcreateerror()
243 (void) strlcat(str, clnt_sperrno(rpc_createerr.cf_stat), ERRBUFSZ); in clnt_spcreateerror()
247 (void) strlcat(str, " - ", ERRBUFSZ); in clnt_spcreateerror()
248 (void) strlcat(str, netdir_sperror(), ERRBUFSZ); in clnt_spcreateerror()
252 (void) strlcat(str, " - ", ERRBUFSZ); in clnt_spcreateerror()
253 (void) strlcat(str, in clnt_spcreateerror()
259 (void) strlcat(str, " - ", ERRBUFSZ); in clnt_spcreateerror()
262 (void) strlcat(str, errstr, ERRBUFSZ); in clnt_spcreateerror()
264 (void) snprintf(&str[strlen(str)], in clnt_spcreateerror()
265 ERRBUFSZ - strlen(str), "Error %d", in clnt_spcreateerror()
270 (void) strlcat(str, " - ", ERRBUFSZ); in clnt_spcreateerror()
273 (void) strlcat(str, in clnt_spcreateerror()
280 (void) strlcat(str, " (", ERRBUFSZ); in clnt_spcreateerror()
281 (void) strlcat(str, err, ERRBUFSZ); in clnt_spcreateerror()
282 (void) strlcat(str, ")", ERRBUFSZ); in clnt_spcreateerror()
286 (void) snprintf(&str[strlen(str)], in clnt_spcreateerror()
287 ERRBUFSZ - strlen(str), in clnt_spcreateerror()
293 (void) strlcat(str, errstr, ERRBUFSZ); in clnt_spcreateerror()
295 (void) snprintf(&str[strlen(str)], in clnt_spcreateerror()
296 ERRBUFSZ - strlen(str), "Error %d", in clnt_spcreateerror()
301 (void) strlcat(str, " - ", ERRBUFSZ); in clnt_spcreateerror()
302 (void) strlcat(str, in clnt_spcreateerror()
306 return (str); in clnt_spcreateerror()