Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.bugs.v7 Subject: fseek on pipe Message-ID: <5581@utzoo.UUCP> Date: Thu, 9-May-85 15:54:19 EDT Article-I.D.: utzoo.5581 Posted: Thu May 9 15:54:19 1985 Date-Received: Thu, 9-May-85 15:54:19 EDT Organization: U of Toronto Zoology Lines: 10 Be warned that doing an fseek() on a pipe is not merely useless, it will confuse stdio and foul up further activity on that file descriptor. The only safe thing is to use lseek() first with a zero offset to find out whether it's really useful/safe to seek on that descriptor. This bug exists in V7, and may appear in x.yBSD or System N; I haven't checked. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry