Exemplo n.º 1
0
/**
 * Description not yet available.
 * \param
 */
void fixed_smartlist2::restore_end(void)
{
  if (written_flag)
  {
    if (end_saved)
    {
      /*off_t ipos=*/lseek(fp,endof_file_ptr,SEEK_SET);
      read_buffer();
      set_recend();
    }
  }
}
Exemplo n.º 2
0
/**
Set to end of file ptr.
*/
void fixed_smartlist2::restore_end()
{
  if (written_flag)
  {
    if (end_saved)
    {
#ifdef OPT_LIB
      lseek(fp, endof_file_ptr, SEEK_SET);
#else
      off_t ret = lseek(fp, endof_file_ptr, SEEK_SET);
      assert(ret >= 0);
#endif
      read_buffer();
      set_recend();
    }
  }
}