Lines Matching refs:ptr

739 	char			*ptr;  in ftp_pasv()  local
778 for (ptr = ftp->inbuf; *ptr && *ptr != '('; ptr++); in ftp_pasv()
779 if (!*ptr) { in ftp_pasv()
782 delimiter = *++ptr; in ftp_pasv()
783 for (n = 0; *ptr && n < 3; ptr++) { in ftp_pasv()
784 if (*ptr == delimiter) { in ftp_pasv()
789 sin6->sin6_port = htons((unsigned short) strtoul(ptr, &endptr, 10)); in ftp_pasv()
790 if (ptr == endptr || *endptr != delimiter) { in ftp_pasv()
808 for (ptr = ftp->inbuf; *ptr && !isdigit(*ptr); ptr++); in ftp_pasv()
809 n = sscanf(ptr, "%lu,%lu,%lu,%lu,%lu,%lu", &b[0], &b[1], &b[2], &b[3], &b[4], &b[5]); in ftp_pasv()
880 char *ptr = data->buf; in ftp_get() local
881 char *e = ptr + rcvd; in ftp_get()
887 php_stream_write(outstream, ptr, (e - ptr)); in ftp_get()
888 ptr = e; in ftp_get()
890 while (e > ptr && (s = memchr(ptr, '\r', (e - ptr)))) { in ftp_get()
891 php_stream_write(outstream, ptr, (s - ptr)); in ftp_get()
896 ptr = s + 1; in ftp_get()
899 if (ptr < e) { in ftp_get()
900 php_stream_write(outstream, ptr, (e - ptr)); in ftp_get()
927 char *ptr; in ftp_put() local
963 ptr = data->buf; in ftp_put()
970 ptr = data->buf; in ftp_put()
975 *ptr++ = '\r'; in ftp_put()
979 *ptr++ = ch; in ftp_put()
1027 char *ptr; in ftp_mdtm() local
1040 for (ptr = ftp->inbuf; *ptr && !isdigit(*ptr); ptr++); in ftp_mdtm()
1041 …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()
1794 char *ptr; in ftp_genlist() local
1846 for (ptr = data->buf; rcvd; rcvd--, ptr++) { in ftp_genlist()
1847 if (*ptr == '\n' && lastch == '\r') { in ftp_genlist()
1850 lastch = *ptr; in ftp_genlist()
1952 char *ptr; in ftp_nb_continue_read() local
1973 for (ptr = data->buf; rcvd; rcvd--, ptr++) { in ftp_nb_continue_read()
1974 if (lastch == '\r' && *ptr != '\n') { in ftp_nb_continue_read()
1977 if (*ptr != '\r') { in ftp_nb_continue_read()
1978 php_stream_putc(ftp->stream, *ptr); in ftp_nb_continue_read()
1980 lastch = *ptr; in ftp_nb_continue_read()
2065 char *ptr; in ftp_nb_continue_write() local
2074 ptr = ftp->data->buf; in ftp_nb_continue_write()
2078 *ptr++ = '\r'; in ftp_nb_continue_write()
2082 *ptr++ = ch; in ftp_nb_continue_write()