From owner-freebsd-current Tue Apr 6 2:56: 9 1999 Delivered-To: freebsd-current@freebsd.org Received: from ns.oeno.com (ns.oeno.com [194.100.99.145]) by hub.freebsd.org (Postfix) with SMTP id 5BE911542C for ; Tue, 6 Apr 1999 02:56:05 -0700 (PDT) (envelope-from will@ns.oeno.com) Received: (qmail 19457 invoked by uid 1001); 6 Apr 1999 09:54:07 -0000 To: Matthew Dillon Cc: current@freebsd.org Subject: Re: aio_read References: <199904051834.LAA11656@apollo.backplane.com.newsgate.clinet.fi> From: Ville-Pertti Keinonen Date: 06 Apr 1999 12:54:04 +0300 In-Reply-To: Matthew Dillon's message of "5 Apr 1999 21:34:54 +0300" Message-ID: <86vhfam5vn.fsf@not.oeno.com> Lines: 14 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Dillon writes: > UNIX has been broken this way from day 1. It was a major design mistake. > The only way to get your own descriptor seek offset is to open() the > file again. It's not necessarily breakage. Not having any mechanism other than open to get your own seek offset is nasty, but sharing a seek offset can also be useful. File descriptors can't be "reverse-inherited", so in order to continue writing to the same redirected output file, a sequence of commands executed by a shell needs to be able to share the actual file offset. I believe this was the original reason for the behavior. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message