Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 1999 17:00:21 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        dillon@apollo.backplane.com
Cc:        current@freebsd.org
Subject:   Re: aio_read
Message-ID:  <199904070000.RAA00584@vashon.polstra.com>
In-Reply-To: <199904061701.KAA09326@apollo.backplane.com>
References:  <Pine.BSF.3.96.990405141834.22049D-100000@fledge.watson.org> <199904051834.LAA11656@apollo.backplane.com.newsgate.clinet.fi> <86vhfam5vn.fsf@not.oeno.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199904061701.KAA09326@apollo.backplane.com>,
Matthew Dillon  <dillon@apollo.backplane.com> wrote:
> :
> :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.
> 
>     If it's a redirected output file you simply make it O_APPEND, at which
>     point the seek offset in the descriptor becomes irrelevant.

But O_APPEND didn't exist in early versions of Unix.  I'm sure it
wasn't present in V6, and I'm pretty sure it wasn't present in V7
either.

John
-- 
  John Polstra                                               jdp@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Self-interest is the aphrodisiac of belief."           -- James V. DeLong


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904070000.RAA00584>