Xref: utzoo comp.unix.questions:16089 comp.unix.wizards:17939 comp.databases:3483 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!gatech!mcnc!unccvax!cs00chs From: cs00chs@unccvax.UUCP (charles spell) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.databases Subject: [fl]seek mechanism Keywords: file seeks on large files Message-ID: <1631@unccvax.UUCP> Date: 1 Sep 89 16:54:57 GMT Organization: Univ. of NC at Charlotte, Charlotte, NC Lines: 13 Does the kernal optimize seeks within an open file? Eg. if you have a file descriptor that is currently at offset 500,000 of a 1,000,000 byte file, which would be faster (to get to byte 500,001)?: lseek(fd, 1L, 1); -OR- lseek(fd, 500001L, 0); with file descriptors: fseek(fp, 1L, 1); -OR- fseek(fp, 500001L, 0); _____________________________________________________________________________ Clemson IPTAY: It's Probation Time Again Y'all....