From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] 9fs/9auth for FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010328215030.A51B0199F4@mail.cse.psu.edu> Date: Wed, 28 Mar 2001 16:50:25 -0500 Topicbox-Message-UUID: 762780a6-eac9-11e9-9e20-41e7f4b1d025 O_APPEND probably isn't needed on BSD kernels, either. That was me being paranoid based on the comment that writes didn't always get treated as appends. No, it's needed. The behavior on FreeBSD really is what I said -- if you do a write with a file offset that is not the end of the file, the write fails. It doesn't pretend the offset really is at the end (as Plan 9 and apparently Linux do). It fails. Opening O_APPEND should, at least on a single system, insulate you from worrying about the offset. I hadn't thought of that. (My Unix instincts continue to dull.) Russ