Mail Archives: djgpp-workers/2000/12/12/20:31:52
At 09:11 AM 12/12/00 +0100, you wrote:
<Snipped>
>> + cur_pos = lseek(fd, 0, SEEK_CUR);
>> + if (cur_pos < 0)
>> + return -1; /* Assumes lseek has set errno */
>
>Why are you using lseek() here and not llseek?
Because this is the 31-bit section, not the FAT32 section. I use
llseek in the FAT32 section.
<Snipped>
>> + cur_pos = llseek(fd, 0L, SEEK_CUR);
>> + if (cur_pos < 0)
>> + return -1; /* Assumes lseek has set errno */
> ^^^^^
>Don't you mean llseek()? (Several occurences.)
Yes, I do. Failed to check all comments match the code, sorry about
that.
---------------------------------------------------------
Peter J. Farley III (pjfarley AT dorsai DOT org OR
pjfarley AT banet DOT net)
- Raw text -