Lines Matching refs:handle

2489 				file_handle.handle.fp = NULL;
2493 file_handle.handle.fp = stdin;
2563 if (file_handle.handle.fd < 0) {
2567 file_handle.handle.fp = fdopen(file_handle.handle.fd, "rb");
2570 if (!file_handle.handle.fp ||
2571 (file_handle.handle.fp == stdin)) {
2574 c = fgetc(file_handle.handle.fp);
2577 c = fgetc(file_handle.handle.fp); /* skip to end of line */
2581 if (fgetc(file_handle.handle.fp) != '\n') {
2582 zend_long pos = zend_ftell(file_handle.handle.fp);
2583 zend_fseek(file_handle.handle.fp, pos - 1, SEEK_SET);
2588 rewind(file_handle.handle.fp);
2592 c = php_stream_getc((php_stream*)file_handle.handle.stream.handle);
2595 … c = php_stream_getc((php_stream*)file_handle.handle.stream.handle); /* skip to end of line */
2599 if (php_stream_getc((php_stream*)file_handle.handle.stream.handle) != '\n') {
2600 zend_off_t pos = php_stream_tell((php_stream*)file_handle.handle.stream.handle);
2601 php_stream_seek((php_stream*)file_handle.handle.stream.handle, pos - 1, SEEK_SET);
2606 php_stream_rewind((php_stream*)file_handle.handle.stream.handle);
2610 if (file_handle.handle.stream.mmap.buf[0] == '#') {
2613 c = file_handle.handle.stream.mmap.buf[i++];
2614 while (c != '\n' && c != '\r' && i < file_handle.handle.stream.mmap.len) {
2615 c = file_handle.handle.stream.mmap.buf[i++];
2618 … if (i < file_handle.handle.stream.mmap.len && file_handle.handle.stream.mmap.buf[i] == '\n') {
2622 if(i > file_handle.handle.stream.mmap.len) {
2623 i = file_handle.handle.stream.mmap.len;
2625 file_handle.handle.stream.mmap.buf += i;
2626 file_handle.handle.stream.mmap.len -= i;