Lines Matching refs:ptr
98 PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo) { argument
100 char *p = ptr;
159 return p - ptr;
162 PHPDBG_API int phpdbg_send_bytes(int sock, const char *ptr, int len) { argument
164 const char *p = ptr;
179 PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo) { argument
183 return phpdbg_consume_bytes(sock, ptr, len, tmo);
187 ret = read(sock, ptr, len);
193 static int phpdbg_output_pager(int sock, const char *ptr, int len) { argument
195 const char *p = ptr, *endp = ptr + len;
202 bytes += write(sock, ptr + bytes, (p - ptr) - bytes);
216 bytes += write(sock, ptr + bytes, len - bytes);
218 bytes += write(sock, ptr, len);
223 PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len) { argument
225 return phpdbg_send_bytes(sock, ptr, len);
232 return phpdbg_output_pager(sock, ptr, len);
235 return write(sock, ptr, len);