16 #include "mysys_priv.h"
17 #include "mysys_err.h"
18 #include <sys/types.h>
24 int my_mkdir(
const char *dir,
int Flags, myf MyFlags)
27 DBUG_PRINT(
"enter",(
"dir: %s",dir));
30 if (mkdir((
char*) dir))
32 if (mkdir((
char*) dir, Flags & my_umask_dir))
36 DBUG_PRINT(
"error",(
"error %d when creating direcory %s",my_errno,dir));
37 if (MyFlags & (MY_FFNF | MY_FAE | MY_WME))
39 char errbuf[MYSYS_STRERROR_SIZE];
40 my_error(EE_CANT_MKDIR, MYF(ME_BELL+ME_WAITTANG), dir,
41 my_errno, my_strerror(errbuf,
sizeof(errbuf), my_errno));