opendir and changes in the opened directory

Nikolaus Rath <[email protected]>
Newsgroups gmane.comp.python.ctypes
Message-ID <[email protected]>
Hello,

From the comments in fuse_lowlevel.h:

	 * Filesystem may also implement stateless directory I/O and not
	 * store anything in fi->fh, though that makes it impossible to
	 * implement standard conforming directory stream operations in
	 * case the contents of the directory can change between opendir
	 * and releasedir.

How would a standard conforming stream operation have to behave in this
case, and which standard is meant here? According to
http://www.opengroup.org/onlinepubs/007908799/xsh/readdir.html, the
behaviour of e.g. readdir is not defined at all if there directory
contents change:

       If a file is removed from or added to the directory after the
       most recent call to opendir() or rewinddir(), whether a
       subsequent call to readdir() returns an entry for that file is
       unspecified.  

Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
ctypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ctypes-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.