md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
[gnulib.git] / doc / posix-functions / mkdir.texi
1 @node mkdir
2 @section @code{mkdir}
3 @findex mkdir
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mkdir.html}
6
7 Gnulib module: mkdir
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is declared in different header files (namely, @code{<io.h>} or
13 @code{<direct.h>}) on some platforms:
14 mingw, MSVC 9.
15 @item
16 When the argument ends in a slash, the function call fails on some platforms.
17 @item
18 This function mistakenly succeeds on @samp{mkdir("d/./",mode)} on
19 some platforms:
20 Cygwin 1.5.x, mingw, MSVC 9.
21 @item
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
24 like this:
25 @smallexample
26 #define mkdir ((int (*)()) _mkdir)
27 @end smallexample
28 or
29 @smallexample
30 #define mkdir(path,mode) _mkdir (path)
31 @end smallexample
32 @end itemize
33
34 Portability problems not fixed by Gnulib:
35 @itemize
36 @end itemize