Lines Matching refs:buf
51 PHPDBG_API int phpdbg_consume_stdin_line(char *buf) { in ZEND_EXTERN_MODULE_GLOBALS()
55 memcpy(buf, PHPDBG_G(input_buffer), bytes); in ZEND_EXTERN_MODULE_GLOBALS()
67 if (buf[i] == '\x03') { in ZEND_EXTERN_MODULE_GLOBALS()
69 memmove(buf + i, buf + i + 1, len + bytes - i - 1); in ZEND_EXTERN_MODULE_GLOBALS()
75 if (buf[i] == '\n') { in ZEND_EXTERN_MODULE_GLOBALS()
78 memcpy(PHPDBG_G(input_buffer), buf + i + 1, PHPDBG_G(input_buflen)); in ZEND_EXTERN_MODULE_GLOBALS()
81 buf[i + 1] = 0; 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()
205 char buf[PHPDBG_MAX_CMD]; local
207 phpdbg_consume_stdin_line(buf);
208 if (*buf == 'q') {
303 char buf[128]; local
305 snprintf(buf, sizeof(buf), "Could not translate address '%s'", addr);
307 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));
312 char buf[256]; local
314 snprintf(buf, sizeof(buf), "Host '%s' not found. %s", addr, estrdup(gai_strerror(rc)));
316 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));