Lines Matching refs:len
52 int bytes = PHPDBG_G(input_buflen), len = 0; in ZEND_EXTERN_MODULE_GLOBALS() local
66 for (i = len; i < len + bytes; i++) { in ZEND_EXTERN_MODULE_GLOBALS()
68 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS()
69 memmove(buf + i, buf + i + 1, len + bytes - i - 1); in ZEND_EXTERN_MODULE_GLOBALS()
71 len--; in ZEND_EXTERN_MODULE_GLOBALS()
76 PHPDBG_G(input_buflen) = len + bytes - 1 - i; in ZEND_EXTERN_MODULE_GLOBALS()
87 len += bytes; in ZEND_EXTERN_MODULE_GLOBALS()
88 …} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len… in ZEND_EXTERN_MODULE_GLOBALS()
98 PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo) { argument
99 int got_now, i = len, j;
162 PHPDBG_API int phpdbg_send_bytes(int sock, const char *ptr, int len) { argument
163 int sent, i = len;
175 return len;
179 PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo) { argument
183 return phpdbg_consume_bytes(sock, ptr, len, tmo);
187 ret = read(sock, ptr, len);
193 static int phpdbg_output_pager(int sock, const char *ptr, int len) { argument
195 const char *p = ptr, *endp = ptr + len;
216 bytes += write(sock, ptr + bytes, len - bytes);
218 bytes += write(sock, ptr, len);
223 PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len) { argument
225 return phpdbg_send_bytes(sock, ptr, len);
232 return phpdbg_output_pager(sock, ptr, len);
235 return write(sock, ptr, len);