Lines Matching full:res
649 int res = -1, cur = -1;
680 res = cur;
696 if (res < 0) goto get_more;
704 xmlGenericError(xmlGenericErrorContext, "Got %d\n", res);
706 return(res / 100);
719 int res;
721 res = xmlNanoFTPReadResponse(ctx);
723 return(res);
766 int res;
777 res = send(ctxt->controlFd, buf, len, 0);
778 if (res < 0) {
780 return(res);
794 int res;
805 res = send(ctxt->controlFd, buf, len, 0);
806 if (res < 0) {
808 return(res);
827 int len, res;
836 res = send(ctxt->controlFd, buf, len, 0);
837 if (res < 0) {
839 return(res);
858 int res;
973 res = xmlNanoFTPGetResponse(ctxt);
974 if (res != 2) {
1029 res = send(ctxt->controlFd, buf, len, 0);
1030 if (res < 0) {
1034 return(res);
1036 res = xmlNanoFTPGetResponse(ctxt);
1037 switch (res) {
1051 res = send(ctxt->controlFd, buf, len, 0);
1052 if (res < 0) {
1056 return(res);
1058 res = xmlNanoFTPGetResponse(ctxt);
1059 if (res > 3) {
1092 res = send(ctxt->controlFd, buf, len, 0);
1093 if (res < 0) {
1097 return(res);
1099 res = xmlNanoFTPGetResponse(ctxt);
1100 if (res == 2) {
1123 res = send(ctxt->controlFd, buf, len, 0);
1124 if (res < 0) {
1128 return(res);
1130 res = xmlNanoFTPGetResponse(ctxt);
1131 if ((res == 1) || (res == 2)) {
1145 res = send(ctxt->controlFd, buf, len, 0);
1146 if (res < 0) {
1150 return(res);
1152 res = xmlNanoFTPGetResponse(ctxt);
1153 if ((res == 1) || (res == 2)) {
1177 res = xmlNanoFTPSendUser(ctxt);
1178 if (res < 0) {
1183 res = xmlNanoFTPGetResponse(ctxt);
1184 switch (res) {
1198 res = xmlNanoFTPSendPasswd(ctxt);
1199 if (res < 0) {
1204 res = xmlNanoFTPGetResponse(ctxt);
1205 switch (res) {
1237 int res;
1248 res = xmlNanoFTPConnect(ctxt);
1249 if (res < 0) {
1271 int res;
1289 res = send(ctxt->controlFd, buf, len, 0);
1290 if (res < 0) {
1292 return(res);
1294 res = xmlNanoFTPGetResponse(ctxt);
1295 if (res == 4) {
1298 if (res == 2) return(1);
1299 if (res == 5) {
1320 int res;
1340 res = send(ctxt->controlFd, buf, len, 0);
1341 if (res < 0) {
1343 return(res);
1345 res = xmlNanoFTPGetResponse(ctxt);
1346 if (res == 4) {
1349 if (res == 2) return(1);
1350 if (res == 5) {
1370 int res;
1412 res = send(ctxt->controlFd, buf, len, 0);
1413 if (res < 0) {
1416 return(res);
1418 res = xmlNanoFTPReadResponse(ctx);
1419 if (res != 2) {
1420 if (res == 5) {
1513 res = send(ctxt->controlFd, buf, len, 0);
1514 if (res < 0) {
1517 return(res);
1519 res = xmlNanoFTPGetResponse(ctxt);
1520 if (res != 2) {
1541 int res;
1554 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv);
1555 if (res < 0) {
1562 if (res == 0) {
1569 res = xmlNanoFTPGetResponse(ctxt);
1570 if (res != 2) {
1722 int len, res;
1750 res = send(ctxt->controlFd, buf, len, 0);
1751 if (res < 0) {
1754 return(res);
1756 res = xmlNanoFTPReadResponse(ctxt);
1757 if (res != 1) {
1759 return(-res);
1769 res = select(ctxt->dataFd + 1, &rfd, NULL, &efd, &tv);
1770 if (res < 0) {
1777 if (res == 0) {
1778 res = xmlNanoFTPCheckResponse(ctxt);
1779 if (res < 0) {
1784 if (res == 2) {
1805 res = xmlNanoFTPParseList(&buf[base], callback, userData);
1806 base += res;
1807 } while (res > 0);
1831 int res, len;
1845 res = send(ctxt->controlFd, buf, len, 0);
1846 if (res < 0) {
1849 return(res);
1851 res = xmlNanoFTPReadResponse(ctxt);
1852 if (res != 2) {
1854 return(-res);
1865 res = send(ctxt->controlFd, buf, len, 0);
1866 if (res < 0) {
1869 return(res);
1871 res = xmlNanoFTPReadResponse(ctxt);
1872 if (res != 1) {
1874 return(-res);
1897 int len = 0, res;
1914 res = select(ctxt->dataFd + 1, &rfd, NULL, NULL, &tv);
1915 if (res < 0) {
1922 if (res == 0) {
1923 res = xmlNanoFTPCheckResponse(ctxt);
1924 if (res < 0) {
1929 if (res == 2) {