So it was not finish :-(
mkdir("C:\\cygwin\\home\\undefer\\TEST") is working
mkdir("/home/undefer/TEST") creates directory and hangs, doesn't
pass control to the next instruction.
DirEntry("/") works in my simple program, but doesn't work in big
program..
windbg, gdb doen't help at all.
It is failure :-(