Lines Matching refs:len
27 int bytes = PHPDBG_G(input_buflen), len = 0; in ZEND_EXTERN_MODULE_GLOBALS() local
41 for (i = len; i < len + bytes; i++) { in ZEND_EXTERN_MODULE_GLOBALS()
43 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS()
44 memmove(buf + i, buf + i + 1, len + bytes - i - 1); in ZEND_EXTERN_MODULE_GLOBALS()
46 len--; in ZEND_EXTERN_MODULE_GLOBALS()
51 PHPDBG_G(input_buflen) = len + bytes - 1 - i; in ZEND_EXTERN_MODULE_GLOBALS()
62 len += bytes; in ZEND_EXTERN_MODULE_GLOBALS()
63 …} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len… in ZEND_EXTERN_MODULE_GLOBALS()
73 PHPDBG_API int phpdbg_mixed_read(int fd, char *ptr, int len, int tmo) { in phpdbg_mixed_read() argument
77 ret = read(fd, ptr, len); in phpdbg_mixed_read()
83 static int phpdbg_output_pager(int fd, const char *ptr, int len) { in phpdbg_output_pager() argument
85 const char *p = ptr, *endp = ptr + len; in phpdbg_output_pager()
106 bytes += write(fd, ptr + bytes, len - bytes); in phpdbg_output_pager()
108 bytes += write(fd, ptr, len); in phpdbg_output_pager()
113 PHPDBG_API int phpdbg_mixed_write(int fd, const char *ptr, int len) { in phpdbg_mixed_write() argument
117 return phpdbg_output_pager(fd, ptr, len); in phpdbg_mixed_write()
120 return write(fd, ptr, len); in phpdbg_mixed_write()