
In article <cdj26s$et$1@sea.gmane.org>, Vladimir Prus <ghost@cs.msu.su> wrote:
Actually, I'm not sure what it means to atomically create a directory.
It means that if one processes is attempting directory creation and other processes are performing other filesystem operations (including directory creation, but not limited to it), then directory creation in the first process is guaranteed to completely succeed (creating a directory with the desired path and permissions and returning 0) or completely fail (returning an error and not touching the file system). This is not the case on all file systems and on those on which it is, the POSIX API does not guarantee that mkdir() is implemented to take advantage of it. meeroh -- If this message helped you, consider buying an item from my wish list: <http://web.meeroh.org/wishlist>