Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2008 07:05:51 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Jeff Roberson <jroberson@jroberson.net>
Cc:        arch@freebsd.org
Subject:   Re: f_offset 
Message-ID:  <18354.1208070351@critter.freebsd.dk>
In-Reply-To: Your message of "Sat, 12 Apr 2008 13:51:15 -1000." <20080412132457.W43186@desktop> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20080412132457.W43186@desktop>, Jeff Roberson writes:

>It's worth discussing what posix actually guarantees for f_offset as well 
>as what other operating systems do.

I think DWIM is quite easily defined here:  concurrent access only
makes sense with pwrite[v](2)/pread[v](2).

The non p-prefix versions should always be serialized, because there
is know way of knowing where they read/write if you don't.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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