Lines Matching refs:File_read
1781 * fileread.h (File_read::get_view): Clarify comment about ALIGNED.
4562 * fileread.cc (File_read::find_view): Add assert.
4563 (File_read::make_view): Move bounds check (replace with assert)...
4564 (File_read::find_or_make_view): ... to here.
6314 (File_read::View::~View): Use free rather than delete[].
6315 (File_read::make_view): Use malloc rather than new[]. If mmap
6317 (File_read::find_or_make_view): Use malloc rather than new[].
6970 * fileread.cc (File_read::clear_views): Don't delete the whole
6978 (File_read::read_multiple): Limit number of entries by iov_max.
6979 * fileread.h (class File_read): Always set max_readv_entries to
7127 Move definition before File_read::View member definitions.
7128 (File_read::View::~View): Initialize and hold lock before
9450 * fileread.cc (File_read::~File_read): Don't delete whole_file_view_.
9451 (File_read::open[1]): Remove initial mapping of whole_file_view_.
9452 (File_read::open[2]): Add whole_file_view_ to list of views.
9453 (File_read::make_view): Remove test of whole_file_view_.
9454 (File_read::find_or_make_view): Create whole_file_view_ if
9456 (File_read::clear_views): Replace bool parameter with enum;
9461 * fileread.h (File_read::Clear_views_mode): New enum.
9462 (File_read::View::is_permanent_view): New method.
9463 (File_read::clear_views): Replace bool parameter
9888 (File_read::release): Only increment counts when using --stats.
11684 * fileread.cc (File_read::get_mtime): Use st_mtim if available.
11893 * fileread.cc: (File_read::View::~View): Use the new
11895 (File_read::~File_read): Dispose the new whole_file_view_.
11896 (File_read::open): Mmap the whole file if needed.
11897 (File_read::open): Use whole_file_view_ instead of contents_.
11898 (File_read::find_view): Use whole_file_view_ if applicable.
11899 (File_read::do_read): Use whole_file_view_ instead of contents_.
11900 (File_read::make_view): Use whole_file_view_ instead of contents_,
11901 update File_read::View::View call.
11902 (File_read::find_or_make_view): Update File_read::View::View
11904 * fileread.h: (File_read::File_read): Initialize whole_file_view_,
11906 (File_read::View::Data_ownership): New enum.
11907 (File_read::View::View): Replace bool mapped_ with Data_ownership
11909 (File_read::View::mapped_): Remove (replaced by data_ownership_).
11910 (File_read::View::data_ownership_): New field.
11911 (File_read::contents_): Remove (replaced by whole_file_view_).
11912 (File_read::whole_file_view_): New field.
12216 * fileread.h (File_read:: max_readv_entries): Set to 1 if readv
13095 * fileread.cc (File_read::get_mtime): New method.
13097 (File_read::get_mtime): New method.
14289 to File_read::claim_for_plugin.
14296 * fileread.cc (File_read::claim_for_plugin): Remove.
14297 * fileread.h (File_read::claim_for_plugin): Remove.
14298 (File_read::descriptor): Reopen descriptor if necessary.
14322 File_read::claim_for_plugin; use Object::unlock to unlock the file.
14598 * fileread.cc (File_read::claim_for_plugin): New function.
14599 * fileread.h (File_read::claim_for_plugin): New function.
14600 (File_read::descriptor): New function.
14695 * fileread.cc (File_read::make_view): Add check for attempt to map
14715 * fileread.cc (File_read::open): Do not lock the file unless it
14873 (File_read::~File_read): Release descriptor rather than closing
14875 (File_read::open) [file]: Call open_descriptor rather than open.
14877 (File_read::open) [memory]: Assert that descriptor is not open.
14878 (File_read::reopen_descriptor): New function.
14879 (File_read::release): Release descriptor.
14880 (File_read::do_read): Make non-const. Reopen descriptor.
14881 (File_read::read): Make non-const.
14882 (File_read::make_view): Reopen descriptor.
14883 (File_read::do_readv): Likewise.
14884 * fileread.h (class File_read): Add is_descriptor_opened_ field.
15169 * fileread.cc (File_read::make_view): Assert on zero-length view.
16346 * fileread.cc (File_read::find_view): Add byteshift and vshifted
16349 (File_read::read): Adjust for byteshift in returned view.
16350 (File_read::add_view): New function, broken out of
16352 (File_read::make_view): New function, broken out of
16354 (File_read::find_or_make_view): Add offset and aligned
16356 (File_read::get_view): Add offset and aligned parameters. Adjust
16358 (File_read::get_lasting_view): Likewise.
16359 * fileread.h (class File_read): Update declarations.
16360 (class File_read::View): Add byteshift_ field. Add byteshift to
16368 * fileread.cc (File_read::release): Don't call clear_views if
16370 * fileread.h (File_read::clear_uncached_views): New function.