Lines Matching refs:fd
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
92 bytes += write(fd, ptr + bytes, (p - ptr) - bytes); in phpdbg_output_pager()
96 zend_quiet_write(fd, ZEND_STRL("\r---Type <return> to continue or q <return> to quit---")); in phpdbg_output_pager()
101 zend_quiet_write(fd, "\r", 1); 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
115 && PHPDBG_G(io)[PHPDBG_STDOUT].fd == fd in phpdbg_mixed_write()
117 return phpdbg_output_pager(fd, ptr, len); in phpdbg_mixed_write()
120 return write(fd, ptr, len); in phpdbg_mixed_write()