Lines Matching defs:res
38 int res;
68 res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv);
69 return res;
89 CURLcode res;
96 res = curl_easy_perform(curl);
98 if(res != CURLE_OK) {
99 printf("Error: %s\n", curl_easy_strerror(res));
105 res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockfd);
107 if(res != CURLE_OK) {
108 printf("Error: %s\n", curl_easy_strerror(res));
121 res = curl_easy_send(curl, request + nsent_total,
125 if(res == CURLE_AGAIN && !wait_on_socket(sockfd, 0, 60000L)) {
129 } while(res == CURLE_AGAIN);
131 if(res != CURLE_OK) {
132 printf("Error: %s\n", curl_easy_strerror(res));
148 res = curl_easy_recv(curl, buf, sizeof(buf), &nread);
150 if(res == CURLE_AGAIN && !wait_on_socket(sockfd, 1, 60000L)) {
154 } while(res == CURLE_AGAIN);
156 if(res != CURLE_OK) {
157 printf("Error: %s\n", curl_easy_strerror(res));