FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/cached_data.c
/* Open the representation REP for a node-revision in filesystem FS, seek
   to its position and store the newly opened file in FILE.  Perform
   temporary allocations in POOL. */
Open the representation REP for a node-revision in filesystem FS, seek
to its position and store the newly opened file in FILE.  Perform
temporary allocations in POOL.
Open the representation REP for a node - revision in filesystem FS seek to its position and store the newly opened file in FILE . Perform temporary allocations in POOL .
static svn_error_t *
open_and_seek_transaction(svn_fs_fs__revision_file_t **file,
                          svn_fs_t *fs,
                          representation_t *rep,
                          apr_pool_t *pool)
{
  apr_off_t offset;
  SVN_ERR(svn_fs_fs__open_proto_rev_file(file, fs, &rep->txn_id, pool, pool));
  SVN_ERR(svn_fs_fs__item_offset(&offset, fs, NULL, SVN_INVALID_REVNUM,
                                 &rep->txn_id, rep->item_index, pool));
  SVN_ERR(aligned_seek(fs, (*file)->file, NULL, offset, pool));
  return SVN_NO_ERROR;
}
static svn_error_t * open_and_seek_transaction ( svn_fs_fs__revision_file_t * * file , svn_fs_t * fs , representation_t * rep , apr_pool_t * pool ) { apr_off_t offset ; SVN_ERR ( svn_fs_fs__open_proto_rev_file ( file , fs , & rep -> txn_id , pool , pool ) ) ; SVN_ERR ( svn_fs_fs__item_offset ( & offset , fs , NULL , SVN_INVALID_REVNUM , & rep -> txn_id , rep -> item_index , pool ) ) ; SVN_ERR ( aligned_seek ( fs , ( * file ) -> file , NULL , offset , pool ) ) ; return SVN_NO_ERROR ; }
Open the representation REP for a node-revision in filesystem FS, seek
to its position and store the newly opened file in FILE.
Open the representation REP for a node - revision in filesystem FS seek to its position and store the newly opened file in FILE .