~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/transparent_file.cc

  • Committer: Monty Taylor
  • Date: 2008-12-08 10:34:49 UTC
  • mto: This revision was merged to the branch mainline in revision 670.
  • Revision ID: monty@inaugust.com-20081208103449-4rz1ffja67yfcdgc
Removed my_seek, my_tell, my_fwrite, my_fseek.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  filedes= filedes_arg;
33
33
  /* read the beginning of the file */
34
34
  lower_bound= 0;
35
 
  my_seek(filedes, 0, MY_SEEK_SET, MYF(0));
 
35
  lseek(filedes, 0, SEEK_SET);
36
36
  if (filedes && buff)
37
37
    upper_bound= my_read(filedes, buff, buff_size, MYF(0));
38
38
}
82
82
  if ((lower_bound <= offset) && (offset < upper_bound))
83
83
    return buff[offset - lower_bound];
84
84
 
85
 
  my_seek(filedes, offset, MY_SEEK_SET, MYF(0));
 
85
  lseek(filedes, offset, SEEK_SET);
86
86
  /* read appropriate portion of the file */
87
87
  if ((bytes_read= my_read(filedes, buff, buff_size,
88
88
                           MYF(0))) == MY_FILE_ERROR)