Lines Matching refs:res

66 	int res;
81 res = cache_info->id_func(cache_data->key, &size, ap_new,
84 if (res == NS_RETURN) {
94 } while (res == NS_RETURN);
96 if (res != NS_SUCCESS) {
100 return (res);
111 res = -1;
114 res = __cached_read(connection, cache_info->entry_name,
118 if (res == -2 && buffer_size < NSS_CACHE_BUFFER_SIZE_LIMIT) {
122 } while (res == -2);
124 if (res == 0) {
134 res = cache_info->unmarshal_func(buffer, buffer_size, retval,
138 if (res != NS_SUCCESS) {
143 return (res);
145 res = 0;
148 if (res == 0) {
155 return (res == 0 ? NS_SUCCESS : NS_NOTFOUND);
170 int res;
196 res = cache_info->marshal_func(buffer, &size, retval, ap_new,
200 if (res == NS_RETURN) {
208 } while (res == NS_RETURN);
210 if (res != NS_SUCCESS) {
214 return (res);
217 res = __cached_write(connection, cache_info->entry_name,
224 return (res == 0 ? NS_SUCCESS : NS_UNAVAIL);
232 int res;
252 res = __cached_write(connection, cache_info->entry_name,
257 return (res == 0 ? NS_SUCCESS : NS_UNAVAIL);
272 int res;
298 res = __cached_mp_read(rs, buffer, &buffer_size);
299 if (res == -2 && buffer_size < NSS_CACHE_BUFFER_SIZE_LIMIT) {
303 } while (res == -2);
305 if (res == 0) {
307 res = cache_info->unmarshal_func(buffer, buffer_size, retval,
311 if (res != NS_SUCCESS) {
313 return (res);
315 res = 0;
321 return (res == -1 ? NS_RETURN : NS_UNAVAIL);
325 return (res == 0 ? NS_SUCCESS : NS_NOTFOUND);
340 int res;
367 res = cache_info->marshal_func(buffer, &size, retval, ap_new,
371 if (res == NS_RETURN) {
379 } while (res == NS_RETURN);
381 if (res != NS_SUCCESS) {
383 return (res);
386 res = __cached_mp_write(ws, buffer, buffer_size);
389 return (res == 0 ? NS_SUCCESS : NS_UNAVAIL);