9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9fs/9auth for FreeBSD
Date: Wed, 28 Mar 2001 16:50:25 -0500	[thread overview]
Message-ID: <20010328215030.A51B0199F4@mail.cse.psu.edu> (raw)

    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


             reply	other threads:[~2001-03-28 21:50 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-28 21:50 Russ Cox [this message]
2001-03-28 21:58 ` Lyndon Nerenberg
2001-03-28 22:23   ` Alexander Viro
2001-03-28 22:28     ` Alexander Viro
2001-03-28 22:56       ` Lyndon Nerenberg
2001-03-28 23:30         ` Lyndon Nerenberg
2001-03-28 23:35         ` Alexander Viro
2001-03-28 23:44           ` Lyndon Nerenberg
2001-03-29  0:20             ` Alexander Viro
2001-04-02  8:48       ` Douglas A. Gwyn
2001-04-02 10:04         ` Alexander Viro
2001-04-02 12:58           ` Boyd Roberts
2001-03-28 22:22 ` Alexander Viro
2001-04-02  8:49   ` Douglas A. Gwyn
2001-04-02 10:23     ` Alexander Viro
  -- strict thread matches above, loose matches on Subject: below --
2001-04-02  9:28 Russ Cox
2001-03-28  3:46 Russ Cox
2001-03-28 19:26 ` Lyndon Nerenberg
2001-03-28 19:35   ` Alexander Viro
2001-03-28 19:48     ` Lyndon Nerenberg
2001-03-29  8:27   ` Boyd Roberts
2001-03-27 23:53 Lyndon Nerenberg
2001-03-28  0:32 ` Christopher Nielsen
2001-03-28 19:32   ` Lyndon Nerenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010328215030.A51B0199F4@mail.cse.psu.edu \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).