~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_create.c

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
               myf MyFlags)
33
33
{
34
34
  int fd, rc;
35
 
  DBUG_ENTER("my_create");
36
 
  DBUG_PRINT("my",("Name: '%s' CreateFlags: %d  AccessFlags: %d  MyFlags: %d",
37
 
                   FileName, CreateFlags, access_flags, MyFlags));
38
35
 
39
36
#if !defined(NO_OPEN_3)
40
 
  fd = open((char *) FileName, access_flags | O_CREAT,
 
37
  fd = open(FileName, access_flags | O_CREAT,
41
38
            CreateFlags ? CreateFlags : my_umask);
42
39
#else
43
40
  fd = open(FileName, access_flags);
65
62
    my_errno= tmp;
66
63
  }
67
64
  
68
 
  DBUG_RETURN(rc);
 
65
  return(rc);
69
66
} /* my_create */