comparison src/lstream.c @ 274:ca9a9ec9c1c1 r21-0b35

Import from CVS: tag r21-0b35
author cvs
date Mon, 13 Aug 2007 10:29:42 +0200
parents c5d627a313b1
children 8626e4521993
comparison
equal deleted inserted replaced
273:411aac7253ef 274:ca9a9ec9c1c1
897 fstr->blocked_ok = !!(flags & LSTR_BLOCKED_OK); 897 fstr->blocked_ok = !!(flags & LSTR_BLOCKED_OK);
898 fstr->pty_flushing = !!(flags & LSTR_PTY_FLUSHING); 898 fstr->pty_flushing = !!(flags & LSTR_PTY_FLUSHING);
899 fstr->blocking_error_p = 0; 899 fstr->blocking_error_p = 0;
900 fstr->chars_sans_newline = 0; 900 fstr->chars_sans_newline = 0;
901 fstr->starting_pos = lseek (filedesc, offset, SEEK_CUR); 901 fstr->starting_pos = lseek (filedesc, offset, SEEK_CUR);
902 fstr->current_pos = max (fstr->current_pos, 0); 902 fstr->current_pos = max (fstr->starting_pos, 0);
903 if (count < 0) 903 if (count < 0)
904 fstr->end_pos = -1; 904 fstr->end_pos = -1;
905 else 905 else
906 fstr->end_pos = fstr->starting_pos + count; 906 fstr->end_pos = fstr->starting_pos + count;
907 lstr->flags |= LSTREAM_FL_CLOSE_AT_DISKSAVE; 907 lstr->flags |= LSTREAM_FL_CLOSE_AT_DISKSAVE;