Lines Matching refs:buf
49 PHPDBG_API int phpdbg_consume_stdin_line(char *buf) { in ZEND_EXTERN_MODULE_GLOBALS()
53 memcpy(buf, PHPDBG_G(input_buffer), bytes); in ZEND_EXTERN_MODULE_GLOBALS()
65 if (buf[i] == '\x03') { in ZEND_EXTERN_MODULE_GLOBALS()
67 memmove(buf + i, buf + i + 1, len + bytes - i - 1); in ZEND_EXTERN_MODULE_GLOBALS()
73 if (buf[i] == '\n') { in ZEND_EXTERN_MODULE_GLOBALS()
76 memcpy(PHPDBG_G(input_buffer), buf + i + 1, PHPDBG_G(input_buflen)); in ZEND_EXTERN_MODULE_GLOBALS()
79 buf[i + 1] = 0; 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()
203 char buf[PHPDBG_MAX_CMD]; local
205 phpdbg_consume_stdin_line(buf);
206 if (*buf == 'q') {
301 char buf[128]; local
303 snprintf(buf, sizeof(buf), "Could not translate address '%s'", addr);
305 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));
310 char buf[256]; local
312 snprintf(buf, sizeof(buf), "Host '%s' not found. %s", addr, estrdup(gai_strerror(rc)));
314 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));