~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_mkdir.c

  • Committer: Monty Taylor
  • Date: 2008-07-05 22:08:52 UTC
  • mto: This revision was merged to the branch mainline in revision 77.
  • Revision ID: monty@inaugust.com-20080705220852-cqd9t6tfkhvlcf73
Removed HAVE_LONG_LONG, as this is now assumed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
int my_mkdir(const char *dir, int Flags, myf MyFlags)
22
22
{
 
23
  DBUG_ENTER("my_dir");
 
24
  DBUG_PRINT("enter",("dir: %s",dir));
 
25
 
23
26
  if (mkdir((char*) dir, Flags & my_umask_dir))
24
27
  {
25
28
    my_errno=errno;
 
29
    DBUG_PRINT("error",("error %d when creating direcory %s",my_errno,dir));
26
30
    if (MyFlags & (MY_FFNF | MY_FAE | MY_WME))
27
31
      my_error(EE_CANT_MKDIR,  MYF(ME_BELL+ME_WAITTANG), dir, my_errno);
28
 
    return(-1);
 
32
    DBUG_RETURN(-1);
29
33
  }
30
 
  return(0);
 
34
  DBUG_RETURN(0);
31
35
}