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
306 wrote = snprintf(buf, 128, "Could not translate address '%s'", addr);
307 buf[wrote] = '\0';
308 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));
313 char buf[256]; local
316 wrote = snprintf(buf, 256, "Host '%s' not found. %s", addr, estrdup(gai_strerror(rc)));
317 buf[wrote] = '\0';
318 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));
328 char buf[128]; local
331 wrote = sprintf(buf, "Unable to create socket");
332 buf[wrote] = '\0';
333 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));