Lines Matching refs:str
75 char *str; in clnt_sperror() local
82 str = _buf(); /* side effect: sets CLNT_PERROR_BUFLEN */ in clnt_sperror()
83 if (str == NULL) in clnt_sperror()
86 strstart = str; in clnt_sperror()
89 if ((i = snprintf(str, len, "%s: ", s)) > 0) { in clnt_sperror()
90 str += i; in clnt_sperror()
94 (void)strncpy(str, clnt_sperrno(e.re_status), len - 1); in clnt_sperror()
95 i = strlen(str); in clnt_sperror()
96 str += i; in clnt_sperror()
117 i = snprintf(str, len, "; errno = %s", strerror(e.re_errno)); in clnt_sperror()
119 str += i; in clnt_sperror()
125 i = snprintf(str, len, "; low version = %u, high version = %u", in clnt_sperror()
128 str += i; in clnt_sperror()
135 i = snprintf(str, len, "; why = "); in clnt_sperror()
137 str += i; in clnt_sperror()
141 i = snprintf(str, len, "%s",err); in clnt_sperror()
143 i = snprintf(str, len, in clnt_sperror()
148 str += i; in clnt_sperror()
154 i = snprintf(str, len, "; low version = %u, high version = %u", in clnt_sperror()
157 str += i; in clnt_sperror()
163 i = snprintf(str, len, "; s1 = %u, s2 = %u", in clnt_sperror()
166 str += i; in clnt_sperror()
232 char *str; in clnt_spcreateerror() local
237 str = _buf(); /* side effect: sets CLNT_PERROR_BUFLEN */ in clnt_spcreateerror()
238 if (str == NULL) in clnt_spcreateerror()
241 i = snprintf(str, len, "%s: ", s); in clnt_spcreateerror()
244 (void)strncat(str, clnt_sperrno(rpc_createerr.cf_stat), len - 1); in clnt_spcreateerror()
247 (void) strncat(str, " - ", len - 1); in clnt_spcreateerror()
248 (void) strncat(str, in clnt_spcreateerror()
253 (void)strncat(str, " - ", len - 1); in clnt_spcreateerror()
254 (void)strncat(str, strerror(rpc_createerr.cf_error.re_errno), in clnt_spcreateerror()
277 str[CLNT_PERROR_BUFLEN-1] = '\0'; in clnt_spcreateerror()
278 return (str); in clnt_spcreateerror()