#include "mysys_priv.h"#include <my_dir.h>#include "mysys_err.h"#include <errno.h>Include dependency graph for my_create.c:

Go to the source code of this file.
Functions | |
| File | my_create (const char *FileName, int CreateFlags, int access_flags, myf MyFlags) |
Definition at line 35 of file my_create.c.
References DBUG_ENTER, DBUG_PRINT, DBUG_RETURN, EE_CANTCREATEFILE, FILE_BY_CREATE, my_register_filename(), MY_S_IREAD, MY_S_IWRITE, my_umask, O_BINARY, and SH_DENYNO.
00037 { 00038 int fd; 00039 DBUG_ENTER("my_create"); 00040 DBUG_PRINT("my",("Name: '%s' CreateFlags: %d AccessFlags: %d MyFlags: %d", 00041 FileName, CreateFlags, access_flags, MyFlags)); 00042 00043 #if !defined(NO_OPEN_3) 00044 fd = open((my_string) FileName, access_flags | O_CREAT, 00045 CreateFlags ? CreateFlags : my_umask); 00046 #elif defined(VMS) 00047 fd = open((my_string) FileName, access_flags | O_CREAT, 0, 00048 "ctx=stm","ctx=bin"); 00049 #elif defined(__WIN__) 00050 fd= my_sopen((my_string) FileName, access_flags | O_CREAT | O_BINARY, 00051 SH_DENYNO, MY_S_IREAD | MY_S_IWRITE); 00052 #else 00053 fd = open(FileName, access_flags); 00054 #endif 00055 00056 DBUG_RETURN(my_register_filename(fd, FileName, FILE_BY_CREATE, 00057 EE_CANTCREATEFILE, MyFlags)); 00058 } /* my_create */
Here is the call graph for this function:

1.4.7

