Mail Archives: djgpp-workers/1997/10/13/09:19:19
Mixing signed and unsigned in C is generally asking for trouble.
I don't think that risk is justified for accessing large files
on a FAT drive -- after all, the access of such a file would be
painfully slow anyway due to the way the FAT is laid out.
Solaris has
offset_t llseek(int fildes, offset_t offset, int whence);
and Linux has/had the raw syscall
int _llseek(unsigned int fd, unsigned long offset_high,
unsigned long offset_low, loff_t * result, unsigned int
whence);
(i.e., the same as Solaris, give or take a wrapper.)
Morten
- Raw text -