Next: mkdirat
, Previous: memset_explicit
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
mkdir
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html
Gnulib module: sys_stat or mkdir
Portability problems fixed by either Gnulib module sys_stat
or mkdir
:
<io.h>
or
<direct.h>
) on some platforms:
mingw, MSVC 14.
_mkdir
and takes only one argument. The fix (without Gnulib) is to define a macro
like this:
#define mkdir ((int (*)()) _mkdir)
or
#define mkdir(path,mode) _mkdir (path)
Portability problems fixed by Gnulib module mkdir
:
Portability problems not fixed by Gnulib: