Lines Matching refs:ptr
704 char *ptr; in ftp_pasv() local
742 for (ptr = ftp->inbuf; *ptr && *ptr != '('; ptr++); in ftp_pasv()
743 if (!*ptr) { in ftp_pasv()
746 delimiter = *++ptr; in ftp_pasv()
747 for (n = 0; *ptr && n < 3; ptr++) { in ftp_pasv()
748 if (*ptr == delimiter) { in ftp_pasv()
753 sin6->sin6_port = htons((unsigned short) strtoul(ptr, &endptr, 10)); in ftp_pasv()
754 if (ptr == endptr || *endptr != delimiter) { in ftp_pasv()
772 for (ptr = ftp->inbuf; *ptr && !isdigit(*ptr); ptr++); in ftp_pasv()
773 n = sscanf(ptr, "%lu,%lu,%lu,%lu,%lu,%lu", &b[0], &b[1], &b[2], &b[3], &b[4], &b[5]); in ftp_pasv()
843 char *ptr = data->buf; in ftp_get() local
844 char *e = ptr + rcvd; in ftp_get()
850 php_stream_write(outstream, ptr, (e - ptr)); in ftp_get()
851 ptr = e; in ftp_get()
853 while (e > ptr && (s = memchr(ptr, '\r', (e - ptr)))) { in ftp_get()
854 php_stream_write(outstream, ptr, (s - ptr)); in ftp_get()
859 ptr = s + 1; in ftp_get()
862 if (ptr < e) { in ftp_get()
863 php_stream_write(outstream, ptr, (e - ptr)); in ftp_get()
890 char *ptr; in ftp_put() local
926 ptr = data->buf; in ftp_put()
933 ptr = data->buf; in ftp_put()
938 *ptr++ = '\r'; in ftp_put()
942 *ptr++ = ch; in ftp_put()
990 char *ptr; in ftp_mdtm() local
1003 for (ptr = ftp->inbuf; *ptr && !isdigit(*ptr); ptr++); in ftp_mdtm()
1004 …n = sscanf(ptr, "%4u%2u%2u%2u%2u%2u", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_mi… in ftp_mdtm()
1611 char *ptr; in ftp_genlist() local
1663 for (ptr = data->buf; rcvd; rcvd--, ptr++) { in ftp_genlist()
1664 if (*ptr == '\n' && lastch == '\r') { in ftp_genlist()
1667 lastch = *ptr; in ftp_genlist()
1769 char *ptr; in ftp_nb_continue_read() local
1790 for (ptr = data->buf; rcvd; rcvd--, ptr++) { in ftp_nb_continue_read()
1791 if (lastch == '\r' && *ptr != '\n') { in ftp_nb_continue_read()
1794 if (*ptr != '\r') { in ftp_nb_continue_read()
1795 php_stream_putc(ftp->stream, *ptr); in ftp_nb_continue_read()
1797 lastch = *ptr; in ftp_nb_continue_read()
1882 char *ptr; in ftp_nb_continue_write() local
1891 ptr = ftp->data->buf; in ftp_nb_continue_write()
1895 *ptr++ = '\r'; in ftp_nb_continue_write()
1899 *ptr++ = ch; in ftp_nb_continue_write()