5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mkdir.html}
9 Portability problems fixed by Gnulib:
12 This function is declared in different header files (namely, @code{<io.h>} or
13 @code{<direct.h>}) on some platforms:
16 When the argument ends in a slash, the function call fails on some platforms.
18 This function mistakenly succeeds on @samp{mkdir("d/./",mode)} on
20 Cygwin 1.5.x, mingw, MSVC 9.
22 On Windows platforms (excluding Cygwin), this function is called @code{_mkdir}
23 and takes only one argument. The fix (without Gnulib) is to define a macro
26 #define mkdir ((int (*)()) _mkdir)
30 #define mkdir(path,mode) _mkdir (path)
34 Portability problems not fixed by Gnulib: