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



_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to