50
43
errno= 0; /* Linux doesn't reset this */
51
44
if ((readbytes= read(Filedes, Buffer, Count)) != Count)
54
47
if ((readbytes == 0 || (int) readbytes == -1) && errno == EINTR)
56
49
continue; /* Interrupted */
58
51
if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
60
53
if (readbytes == (size_t) -1)
61
54
my_error(EE_READ, MYF(ME_BELL+ME_WAITTANG),
63
56
else if (MyFlags & (MY_NABP | MY_FNABP))
64
57
my_error(EE_EOFERR, MYF(ME_BELL+ME_WAITTANG),
67
60
if (readbytes == (size_t) -1 ||
68
61
((MyFlags & (MY_FNABP | MY_NABP)) && !(MyFlags & MY_FULL_IO)))