Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.sys.hp Subject: Re: tell() equivalent on Hp 800? Keywords: lseek() Message-ID: <3776@auspex.auspex.com> Date: 28 Jul 90 17:41:36 GMT References: <1367@pai.UUCP> Organization: Auspex Systems, Santa Clara Lines: 12 >The only difference between the 800 series HP-UX 7.0 and the 300 series >is that tell() does not appear to be available on the 800. If true, that'd be pretty bizarre; "tell()" came with V7, and comes with 4.3BSD and S5R3.... >Below is my hack for a tell() replacement. Do you see any problems >with this approach? It's almost exactly the same code (modulo formatting and the use of SEEK_CUR rather than 1) that's in the "tell()" in 4.3BSD and S5. The only difference is that they use 0L rather than 0 as the second argument.