Martin> "Jason R. Mastaler" email@example.com writes: >> Python 2.3.1 (#1, Sep 24 2003, 15:55:24) >> [GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> from os import fsync >> Traceback (most recent call last): >> File "<stdin>", line 1, in ? >> ImportError: cannot import name fsync >> >>>
Martin> Why is that a bug? Your system just does not have a declared Martin> fsync function.
No, it was a typo in the configure scripts. I checked in a fix for both the head and release23-maint branches yesterday. Red Hat 8.0 does have fsync:
FSYNC(2) Linux Programmer's Manual FSYNC(2)
NAME fsync, fdatasync - synchronize a file's complete in-core state with that on disk ...
That is from an 8.0 system.