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 10:53:24 +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:
   I'm not sure if POSIX allows filesystem (by its own will) to change
   file offset of user file descriptor.

We don't have to care about POSIX here.

If program uses POSIX API, then there should be POSIX behaviour. In POSIX, each file descriptor has file pointer/offset/whatever. Only holder of the file descriptor can change this file pointer. So it's logical that noone but the program itself can change this file pointer (except if it has given file descriptor to another process).

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

Regards,
ogi





reply via email to

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