~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/my_pread.c

  • Committer: Monty Taylor
  • Date: 2008-08-02 01:03:15 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080802010315-65h5938pymg9d99z
Moved m4 macros to top-level m4 dir, per GNU standards (and where gettext wanted it :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    #             Number of bytes read
40
40
*/
41
41
 
42
 
size_t my_pread(File Filedes, unsigned char *Buffer, size_t Count, my_off_t offset,
 
42
size_t my_pread(File Filedes, uchar *Buffer, size_t Count, my_off_t offset,
43
43
                myf MyFlags)
44
44
{
45
45
  size_t readbytes;
95
95
    #             Number of bytes read
96
96
*/
97
97
 
98
 
size_t my_pwrite(int Filedes, const unsigned char *Buffer, size_t Count,
 
98
size_t my_pwrite(int Filedes, const uchar *Buffer, size_t Count,
99
99
                 my_off_t offset, myf MyFlags)
100
100
{
101
101
  size_t writenbytes, written;
102
 
  uint32_t errors;
 
102
  uint errors;
103
103
  errors= 0;
104
104
  written= 0;
105
105
 
124
124
      if (!(errors++ % MY_WAIT_GIVE_USER_A_MESSAGE))
125
125
        my_error(EE_DISK_FULL,MYF(ME_BELL | ME_NOREFRESH),
126
126
                 my_filename(Filedes),my_errno,MY_WAIT_FOR_USER_TO_FIX_PANIC);
127
 
      sleep(MY_WAIT_FOR_USER_TO_FIX_PANIC);
 
127
      VOID(sleep(MY_WAIT_FOR_USER_TO_FIX_PANIC));
128
128
      continue;
129
129
    }
130
130
    if ((writenbytes && writenbytes != (size_t) -1) || my_errno == EINTR)