Skip site navigation (1)Skip section navigation (2)
Date:      7 Apr 1999 09:50:27 -0000
From:      Ville-Pertti Keinonen <will@iki.fi>
To:        dillon@apollo.backplane.com
Cc:        current@freebsd.org
Subject:   Re: aio_read
Message-ID:  <19990407095027.435.qmail@ns.oeno.com>
In-Reply-To: <199904061701.KAA09326@apollo.backplane.com> (message from Matthew Dillon on Tue, 6 Apr 1999 10:01:36 -0700 (PDT))

next in thread | previous in thread | raw e-mail | index | archive | help

>     If it's a redirected output file you simply make it O_APPEND, at which
>     point the seek offset in the descriptor becomes irrelevant.

As others have pointed out, O_APPEND is much newer than the
offset-sharing behavior.

It also doesn't fix things for inputs.  Of course with buffering, it's
hard for it to have sensible semantics, but for some commands, it does
work and can even useful.

While I doubt many scripts rely on such behavior, it does avoid
inconsistencies between internal and external commands, as well as
files, ttys and pipes.


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?19990407095027.435.qmail>