|
From: | Ognyan Kulev |
Subject: | Re: rollover translator |
Date: | Sun, 31 Oct 2004 12:01:27 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 |
Ognyan Kulev wrote:
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.
After thinking more about it, it's perfectly legal (in POSIX) someone else to truncate file that is processed by another user. So concerning POSIX, this rollover translator that truncates file from time to time is OK. But I still think that in the general case noone except owner of file descriptor can change fd's file pointer.
Regards, ogi
[Prev in Thread] | Current Thread | [Next in Thread] |