On Mon, Jul 6, 2009 at 2:15 PM, Albert ARIBAUD<albert.aribaud@xxxxxxx> wrote:pipe doesn't refer to pos when reading or writing. Please refer toI wasn't thinking of actively seeking a file position, but simply that reads
pipe doesn't support llseek.
and writes were independent (and both variable) in size, thus even without
(l)seeking, each endpoint has an independent read (resp. write) position to
track what's been read from (resp.written into) it at any time, and such a
position is, IIUC, single for a given fd, making a fd (a struct file)
insufficient for representing a pipe.
Amicalement,
--
Albert.
pipe_read() and pipe_write() for more detail.