maint: fts.c: remove #if-0'd FTS_WHITEOUT code
[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 When the argument ends in a slash, the function call fails on some platforms.
13 @item
14 This function mistakenly succeeds on @samp{mkdir("d/./",mode)} on
15 some platforms:
16 Cygwin 1.5.x, mingw.
17 @item
18 On Windows platforms (excluding Cygwin), this function is called @code{_mkdir}
19 and takes only one argument.  The fix (without Gnulib) is to define a macro
20 like this:
21 @smallexample
22 #define mkdir ((int (*)()) _mkdir)
23 @end smallexample
24 or
25 @smallexample
26 #define mkdir(path,mode) _mkdir (path)
27 @end smallexample
28 @end itemize
29
30 Portability problems not fixed by Gnulib:
31 @itemize
32 @end itemize