bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rollover translator


From: Ognyan Kulev
Subject: Re: rollover translator
Date: Sun, 31 Oct 2004 11:06:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5

Alfred M. Szmidt wrote:
   If program uses POSIX API, then there should be POSIX behaviour.

Meh, I was unclear.  What I meant was that the translator can do
whatever it wants to the file offset.  Aslong as read/write/whatever
work as expected.

One way to circumvent this is by declaring that this is socket, not file, so io_seek/lseek returns ESPIPE.

But then you loose some useful functionality, it should act as a
normal file as much as possible.

POSIX read/write can't work as expected when filesystem changes file pointer at fs's own will.

Perhaps it's not explicitly stated in POSIX, but it's expected that noone except file descriptor's owner can change file pointer.

Regards,
ogi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]