Lines Matching refs:rc
52 CURLUcode rc; in checkparts() local
73 rc = curl_url_get(u, parts[i].part, &p, getflags); in checkparts()
74 if(!rc && p) { in checkparts()
78 msnprintf(bufp, len, "%s[%d]", buf[0]?" | ":"", (int)rc); in checkparts()
1247 CURLUcode rc; in set_url() local
1251 rc = curl_url_set(urlp, CURLUPART_URL, set_url_list[i].in, in set_url()
1253 if(!rc) { in set_url()
1254 rc = curl_url_set(urlp, CURLUPART_URL, set_url_list[i].set, in set_url()
1256 if(rc) { in set_url()
1259 (int)rc, curl_url_strerror(rc)); in set_url()
1264 rc = curl_url_get(urlp, CURLUPART_URL, &url, 0); in set_url()
1265 if(rc) { in set_url()
1267 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in set_url()
1278 else if(rc != set_url_list[i].ucode) { in set_url()
1280 set_url_list[i].in, (int)rc, set_url_list[i].ucode); in set_url()
1298 CURLUcode rc; in setget_parts() local
1305 rc = curl_url_set(urlp, CURLUPART_URL, setget_parts_list[i].in, in setget_parts()
1308 rc = CURLUE_OK; in setget_parts()
1309 if(!rc) { in setget_parts()
1326 else if(rc != CURLUE_OK) { in setget_parts()
1328 setget_parts_list[i].in, (int)rc, 0); in setget_parts()
1342 CURLUcode rc; in set_parts() local
1349 rc = curl_url_set(urlp, CURLUPART_URL, set_parts_list[i].in, in set_parts()
1352 rc = CURLUE_OK; in set_parts()
1353 if(!rc) { in set_parts()
1365 rc = curl_url_get(urlp, CURLUPART_URL, &url, 0); in set_parts()
1367 if(rc) { in set_parts()
1369 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in set_parts()
1378 else if(rc != set_parts_list[i].ucode) { in set_parts()
1380 set_parts_list[i].in, (int)rc, set_parts_list[i].ucode); in set_parts()
1393 CURLUcode rc; in get_url() local
1399 rc = curl_url_set(urlp, CURLUPART_URL, get_url_list[i].in, in get_url()
1401 if(!rc) { in get_url()
1403 rc = curl_url_get(urlp, CURLUPART_URL, &url, get_url_list[i].getflags); in get_url()
1405 if(rc) { in get_url()
1407 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc), in get_url()
1418 if(rc != get_url_list[i].ucode) { in get_url()
1420 get_url_list[i].in, (int)rc, get_url_list[i].ucode); in get_url()
1433 CURLUcode rc; in get_parts() local
1439 rc = curl_url_set(urlp, CURLUPART_URL, in get_parts()
1442 if(rc != get_parts_list[i].ucode) { in get_parts()
1444 get_parts_list[i].in, (int)rc, get_parts_list[i].ucode); in get_parts()
1481 CURLUcode rc; in append() local
1487 rc = curl_url_set(urlp, CURLUPART_URL, in append()
1490 if(rc) in append()
1493 rc = curl_url_set(urlp, CURLUPART_QUERY, in append()
1498 else if(rc != append_list[i].ucode) { in append()
1500 append_list[i].in, (int)rc, append_list[i].ucode); in append()
1508 rc = curl_url_get(urlp, CURLUPART_URL, &url, 0); in append()
1509 if(rc) { in append()
1511 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in append()
1530 CURLUcode rc; in scopeid() local
1533 rc = curl_url_set(u, CURLUPART_URL, in scopeid()
1535 if(rc != CURLUE_OK) { in scopeid()
1537 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1541 rc = curl_url_get(u, CURLUPART_HOST, &url, 0); in scopeid()
1542 if(rc != CURLUE_OK) { in scopeid()
1544 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1551 rc = curl_url_set(u, CURLUPART_HOST, "[::1]", 0); in scopeid()
1552 if(rc != CURLUE_OK) { in scopeid()
1554 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1558 rc = curl_url_get(u, CURLUPART_URL, &url, 0); in scopeid()
1559 if(rc != CURLUE_OK) { in scopeid()
1561 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1568 rc = curl_url_set(u, CURLUPART_HOST, "example.com", 0); in scopeid()
1569 if(rc != CURLUE_OK) { in scopeid()
1571 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1575 rc = curl_url_get(u, CURLUPART_URL, &url, 0); in scopeid()
1576 if(rc != CURLUE_OK) { in scopeid()
1578 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1585 rc = curl_url_set(u, CURLUPART_HOST, in scopeid()
1587 if(rc != CURLUE_OK) { in scopeid()
1589 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1593 rc = curl_url_get(u, CURLUPART_URL, &url, 0); in scopeid()
1594 if(rc != CURLUE_OK) { in scopeid()
1596 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1603 rc = curl_url_get(u, CURLUPART_HOST, &url, 0); in scopeid()
1604 if(rc != CURLUE_OK) { in scopeid()
1606 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1613 rc = curl_url_get(u, CURLUPART_ZONEID, &url, 0); in scopeid()
1614 if(rc != CURLUE_OK) { in scopeid()
1616 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1623 rc = curl_url_set(u, CURLUPART_ZONEID, "clown", 0); in scopeid()
1624 if(rc != CURLUE_OK) { in scopeid()
1626 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1630 rc = curl_url_get(u, CURLUPART_URL, &url, 0); in scopeid()
1631 if(rc != CURLUE_OK) { in scopeid()
1633 __FILE__, __LINE__, (int)rc, curl_url_strerror(rc)); in scopeid()
1650 CURLUcode rc; in get_nothing() local
1652 rc = curl_url_get(u, CURLUPART_SCHEME, &p, 0); in get_nothing()
1653 if(rc != CURLUE_NO_SCHEME) in get_nothing()
1656 rc = curl_url_get(u, CURLUPART_HOST, &p, 0); in get_nothing()
1657 if(rc != CURLUE_NO_HOST) in get_nothing()
1660 rc = curl_url_get(u, CURLUPART_USER, &p, 0); in get_nothing()
1661 if(rc != CURLUE_NO_USER) in get_nothing()
1664 rc = curl_url_get(u, CURLUPART_PASSWORD, &p, 0); in get_nothing()
1665 if(rc != CURLUE_NO_PASSWORD) in get_nothing()
1668 rc = curl_url_get(u, CURLUPART_OPTIONS, &p, 0); in get_nothing()
1669 if(rc != CURLUE_NO_OPTIONS) in get_nothing()
1672 rc = curl_url_get(u, CURLUPART_PATH, &p, 0); in get_nothing()
1673 if(rc != CURLUE_OK) in get_nothing()
1678 rc = curl_url_get(u, CURLUPART_QUERY, &p, 0); in get_nothing()
1679 if(rc != CURLUE_NO_QUERY) in get_nothing()
1682 rc = curl_url_get(u, CURLUPART_FRAGMENT, &p, 0); in get_nothing()
1683 if(rc != CURLUE_NO_FRAGMENT) in get_nothing()
1686 rc = curl_url_get(u, CURLUPART_ZONEID, &p, 0); in get_nothing()
1687 if(rc != CURLUE_NO_ZONEID) in get_nothing()
1688 fprintf(stderr, "unexpected return code %u on line %u\n", (int)rc, in get_nothing()
1716 CURLUcode rc; in clear_url() local
1719 rc = curl_url_set(u, clear_url_list[i].part, clear_url_list[i].in, 0); in clear_url()
1720 if(rc != CURLUE_OK) in clear_url()
1723 rc = curl_url_set(u, CURLUPART_URL, NULL, 0); in clear_url()
1724 if(rc != CURLUE_OK) in clear_url()
1727 rc = curl_url_get(u, clear_url_list[i].part, &p, 0); in clear_url()
1728 if(rc != clear_url_list[i].ucode || (clear_url_list[i].out && in clear_url()
1734 if(rc == CURLUE_OK) in clear_url()
1755 CURLUcode rc; in huge() local
1783 rc = curl_url_set(urlp, CURLUPART_URL, total, CURLU_NON_SUPPORT_SCHEME); in huge()
1784 if((!i && (rc != CURLUE_BAD_SCHEME)) || in huge()
1785 (i && rc)) { in huge()
1791 if(!rc) { in huge()
1832 CURLUcode rc = curl_url_set(h, CURLUPART_URL, url[i], in urldup() local
1834 if(rc) in urldup()
1838 rc = curl_url_get(h, CURLUPART_URL, &h_str, 0); in urldup()
1839 if(rc) in urldup()
1842 rc = curl_url_get(copy, CURLUPART_URL, ©_str, 0); in urldup()
1843 if(rc) in urldup()