From: Alexander Viro <viro@math.psu.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9fs/9auth for FreeBSD
Date: Wed, 28 Mar 2001 18:35:34 -0500 [thread overview]
Message-ID: <Pine.GSO.4.21.0103281831200.26500-100000@weyl.math.psu.edu> (raw)
In-Reply-To: <200103282256.f2SMuEl95658@orthanc.ab.ca>
On Wed, 28 Mar 2001, Lyndon Nerenberg wrote:
> >>>>> "Alexander" == Alexander Viro <viro@math.psu.edu> writes:
>
> Alexander> PS: POSIX says nothing, since append-only is BSDism and
> Alexander> POSIX is a codification of Missed'em'V bugs, so
> Alexander> append-only is out of scope.
>
> Let's make sure we're talking about the same thing here. The chflags()
> behaviour is 4.4BSD-specific. The O_APPEND behaviour has been around
> since the dawn of time (or at least SVR1). My copy of POSIX is at
> home, however SuS V2 states explicitly (both open(2) and write(2))
> that O_APPEND causes all writes to set the file pointer to the end of
> the file prior to performing the write I/O, and that the combination
> of the implicit seek and the associated write are atomic.
Wait a second. The question being: what happens if you open append-only
file with fd = open("foo", O_RDWR), then lseek(fd, 0, SEEK_SET), then
write(fd, buf, len)?
Plan9: append to EOF.
Linux: -EPERM on open()
FreeBSD: -EPERM on write() (open() succeeds).
next prev parent reply other threads:[~2001-03-28 23:35 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-28 21:50 Russ Cox
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 [this message]
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=Pine.GSO.4.21.0103281831200.26500-100000@weyl.math.psu.edu \
--to=viro@math.psu.edu \
--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).