Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!rutgers!att!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.wizards Subject: Re: unix question: files per directory Message-ID: <8212@chinet.chi.il.us> Date: 13 Apr 89 04:01:27 GMT References: <24110@beta.lanl.gov> <8420@xanth.cs.odu.edu> <3823@ficc.uu.net> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Distribution: na Organization: Chinet - Public Access Unix Lines: 18 In article <3823@ficc.uu.net> peter@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