unix question: files per directory
Mike McNally
m5 at lynx.uucp
Thu Apr 13 00:48:25 AEST 1989
In article <8420 at xanth.cs.odu.edu> kremer at cs.odu.edu (Lloyd Kremer) writes:
>Why was it decided that off_t should be signed? . . .
>And it doesn't make sense to have a negative offset into a file . . .
Except when performing relative seeks:
newpos = lseek(fd, (off_t) distance, L_INCR);
I suppose one could create a new type for this purpose, and iterate to
traverse distances greater than 2GB.
Of course, an implementation with 64-bit longs would probably stave off
these complaints for quite some time.
--
Mike McNally Lynx Real-Time Systems
uucp: {voder,athsys}!lynx!m5 phone: 408 370 2233
Where equal mind and contest equal, go.
More information about the Comp.unix.wizards
mailing list