19 #include "mysys_priv.h"
24 extern size_t my_win_read(File Filedes,uchar *
Buffer,
size_t Count);
27 size_t my_quick_read(File Filedes,uchar *
Buffer,
size_t Count,myf MyFlags)
31 readbytes= my_win_read(Filedes, Buffer, Count);
33 readbytes= read(Filedes, Buffer, Count);
35 if(readbytes != Count)
38 if ((readbytes == 0 || readbytes == (
size_t) -1) && errno == EINTR)
40 DBUG_PRINT(
"error", (
"my_quick_read() was interrupted and returned %d"
41 ". This function does not retry the read!",
48 return (MyFlags & (MY_NABP | MY_FNABP)) ? 0 : readbytes;
53 size_t my_quick_write(File Filedes,
const uchar *Buffer,
size_t Count)
56 return my_win_write(Filedes, Buffer, Count);
67 (
size_t) write(Filedes,Buffer,Count)) != Count)
70 if ((writtenbytes == 0 || writtenbytes == (
size_t) -1) && errno == EINTR)
72 DBUG_PRINT(
"error", (
"my_quick_write() was interrupted and returned %d"
73 ". This function does not retry the write!",