~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/my_pread.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#include "myisam_priv.h"
17
17
#include "drizzled/my_error.h"
18
 
#include <errno.h>
 
18
#include <cerrno>
19
19
#include <unistd.h>
20
20
 
 
21
using namespace drizzled;
 
22
 
21
23
/*
22
24
  Read a chunk of bytes from a file from a given position
23
25
 
39
41
    #             Number of bytes read
40
42
*/
41
43
 
42
 
size_t my_pread(int Filedes, unsigned char *Buffer, size_t Count, my_off_t offset,
 
44
size_t my_pread(int Filedes, unsigned char *Buffer, size_t Count, internal::my_off_t offset,
43
45
                myf MyFlags)
44
46
{
45
47
  size_t readbytes;
94
96
*/
95
97
 
96
98
size_t my_pwrite(int Filedes, const unsigned char *Buffer, size_t Count,
97
 
                 my_off_t offset, myf MyFlags)
 
99
                 internal::my_off_t offset, myf MyFlags)
98
100
{
99
101
  size_t writenbytes, written;
100
102
  uint32_t errors;