Lines Matching refs:ptr
96 PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo) { argument
98 char *p = ptr;
157 return p - ptr;
160 PHPDBG_API int phpdbg_send_bytes(int sock, const char *ptr, int len) { argument
162 const char *p = ptr;
177 PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo) { argument
181 return phpdbg_consume_bytes(sock, ptr, len, tmo);
185 ret = read(sock, ptr, len);
191 static int phpdbg_output_pager(int sock, const char *ptr, int len) { argument
193 const char *p = ptr, *endp = ptr + len;
200 bytes += write(sock, ptr + bytes, (p - ptr) - bytes);
214 bytes += write(sock, ptr + bytes, len - bytes);
216 bytes += write(sock, ptr, len);
221 PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len) { argument
223 return phpdbg_send_bytes(sock, ptr, len);
230 return phpdbg_output_pager(sock, ptr, len);
233 return write(sock, ptr, len);