Lines Matching refs:len
50 int bytes = PHPDBG_G(input_buflen), len = 0; in ZEND_EXTERN_MODULE_GLOBALS() local
64 for (i = len; i < len + bytes; i++) { in ZEND_EXTERN_MODULE_GLOBALS()
66 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS()
67 memmove(buf + i, buf + i + 1, len + bytes - i - 1); in ZEND_EXTERN_MODULE_GLOBALS()
69 len--; in ZEND_EXTERN_MODULE_GLOBALS()
74 PHPDBG_G(input_buflen) = len + bytes - 1 - i; in ZEND_EXTERN_MODULE_GLOBALS()
85 len += bytes; in ZEND_EXTERN_MODULE_GLOBALS()
86 …} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len… in ZEND_EXTERN_MODULE_GLOBALS()
96 PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo) { argument
97 int got_now, i = len, j;
160 PHPDBG_API int phpdbg_send_bytes(int sock, const char *ptr, int len) { argument
161 int sent, i = len;
173 return len;
177 PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo) { argument
181 return phpdbg_consume_bytes(sock, ptr, len, tmo);
185 ret = read(sock, ptr, len);
191 static int phpdbg_output_pager(int sock, const char *ptr, int len) { argument
193 const char *p = ptr, *endp = ptr + len;
214 bytes += write(sock, ptr + bytes, len - bytes);
216 bytes += write(sock, ptr, len);
221 PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len) { argument
223 return phpdbg_send_bytes(sock, ptr, len);
230 return phpdbg_output_pager(sock, ptr, len);
233 return write(sock, ptr, len);