Lines Matching refs:size
120 socklen_t size; in ftp_open() local
141 size = sizeof(ftp->localaddr); in ftp_open()
142 memset(&ftp->localaddr, 0, size); in ftp_open()
143 if (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, &size) != 0) { in ftp_open()
652 ftp_alloc(ftpbuf_t *ftp, const zend_long size, zend_string **response) in ftp_alloc() argument
657 if (ftp == NULL || size <= 0) { in ftp_alloc()
661 buffer_len = snprintf(buffer, sizeof(buffer) - 1, ZEND_LONG_FMT, size); in ftp_alloc()
987 zend_long size; in ftp_put() local
1027 size = 0; in ftp_put()
1031 if (FTP_BUFSIZE - size < 2) { in ftp_put()
1032 if (my_send(ftp, data->fd, data->buf, size) != size) { in ftp_put()
1036 size = 0; in ftp_put()
1041 size++; in ftp_put()
1045 size++; in ftp_put()
1048 if (size && my_send(ftp, data->fd, data->buf, size) != size) { in ftp_put()
1070 zend_long size; in ftp_append() local
1095 size = 0; in ftp_append()
1099 if (FTP_BUFSIZE - size < 2) { in ftp_append()
1100 if (my_send(ftp, data->fd, data->buf, size) != size) { in ftp_append()
1104 size = 0; in ftp_append()
1109 size++; in ftp_append()
1113 size++; in ftp_append()
1116 if (size && my_send(ftp, data->fd, data->buf, size) != size) { in ftp_append()
1272 int size; in ftp_putcmd() local
1287 size = slprintf(ftp->outbuf, sizeof(ftp->outbuf), "%s %s\r\n", cmd, args); in ftp_putcmd()
1293 size = slprintf(ftp->outbuf, sizeof(ftp->outbuf), "%s\r\n", cmd); in ftp_putcmd()
1301 if (my_send(ftp, ftp->fd, data, size) != size) { in ftp_putcmd()
1313 long size, rcvd; in ftp_readline() local
1317 size = FTP_BUFSIZE; in ftp_readline()
1327 size -= rcvd; in ftp_readline()
1351 if ((rcvd = my_recv(ftp, ftp->fd, data, size)) < 1) { in ftp_readline()
1354 } while (size); in ftp_readline()
1403 zend_long size, sent; in my_send() local
1413 size = len; in my_send()
1414 while (size) { in my_send()
1441 sent = SSL_write(handle, buf, size); in my_send()
1476 sent = send(s, buf, size, 0); in my_send()
1485 size -= sent; in my_send()
1656 socklen_t size; in ftp_getdata() local
1687 size = php_sockaddr_size(&ftp->pasvaddr); in ftp_getdata()
1690 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
1706 size = php_sockaddr_size(&addr); in ftp_getdata()
1708 if (bind(fd, (struct sockaddr*) &addr, size) != 0) { in ftp_getdata()
1713 if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) { in ftp_getdata()
1784 socklen_t size; in data_accept() local
1796 size = sizeof(addr); in data_accept()
1797 data->fd = my_accept(ftp, data->listener, (struct sockaddr*) &addr, &size); in data_accept()
1994 size_t size, rcvd; in ftp_genlist() local
2033 size = 0; in ftp_genlist()
2037 if (rcvd == (size_t)-1 || rcvd > ((size_t)(-1))-size) { in ftp_genlist()
2043 size += rcvd; in ftp_genlist()
2056 ret = safe_emalloc((lines + 1), sizeof(char*), size); in ftp_genlist()
2270 long size; in ftp_nb_continue_write() local
2279 size = 0; in ftp_nb_continue_write()
2285 size++; in ftp_nb_continue_write()
2289 size++; in ftp_nb_continue_write()
2292 if (FTP_BUFSIZE - size < 2) { in ftp_nb_continue_write()
2293 if (my_send(ftp, ftp->data->fd, ftp->data->buf, size) != size) { in ftp_nb_continue_write()
2300 if (size && my_send(ftp, ftp->data->fd, ftp->data->buf, size) != size) { in ftp_nb_continue_write()