From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20150621104444.GA7504@dinah> References: <20150621104444.GA7504@dinah> Date: Sun, 21 Jun 2015 13:35:40 +0100 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7bb04ade1d368f05190665a5 Subject: Re: [9fans] Why does pread(2) modify the channel offset? Topicbox-Message-UUID: 5a01a630-ead9-11e9-9d60-3106f5b1d025 --047d7bb04ade1d368f05190665a5 Content-Type: text/plain; charset=UTF-8 On 21 June 2015 at 11:44, Anthony Martin wrote: > Thoughts? As with programming language specifications, when it says "equivalent" it is ignoring any subtle differences. Neither call is supposed to change the offset, although it wasn't noticed for the reason you gave. One exception is reading directories, where pread should act the same as read. --047d7bb04ade1d368f05190665a5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On 21 June 2015 at 11:44, Anthony Martin <ality@pbrane.org> w= rote:
Thoughts?

As = with programming language specifications, when it says "equivalent&quo= t; it is ignoring any subtle differences.
<= br>
Neither call is supposed to change the = offset, although it wasn't noticed for the reason you gave.
One exception is reading directories, where pread shou= ld act the same as read.
--047d7bb04ade1d368f05190665a5--