Article View: net.bugs.v7
Article #160fseek on pipe
From: Henry Spencer
Date: Thu, 09 May 1985 19:54
Date: Thu, 09 May 1985 19:54
10 lines
895 bytes
895 bytes
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
Technical Details
Message-ID:
<5581@utzoo.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!henryShow Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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