Mail Archives: djgpp-workers/1997/10/12/13:12:25
> Then POSIX has no way to support files larger than 2GB, unless you go to
> 64-bit ints, right?
POSIX doesn't say that off_t has to be 32 bits, but for most
implementations there is a 2G limit for files before they get
difficult to deal with.
> I think we shouldn't be POSIX adepts on this one. If we make it
> unsigned, what specifically would break?
lseek() would be unable to return an error, nor would you be able to
seek backwards with SEEK_CUR or SEEK_END. Same for file locking with
fcntl().
- Raw text -