unix question: files per directory
Leslie Mikesell
les at chinet.chi.il.us
Thu Apr 13 14:01:27 AEST 1989
In article <3823 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>Speaking of lseek, how about this case:
> lseek(fd, -1024L, 2); /* Seek to last 1K of file */
>
>It would negatively impact the performance of tail(1) to not have this
>ability.
There are still a few values that could be used without overloading
the capacity of the 3rd argument to lseek().
How about adding:
3 = the pointer is set to its current location minus offset
4 = the pointer is set to the size of the file minus offset
?
Les Mikesell
More information about the Comp.unix.wizards
mailing list