MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_open

Function my_open

mysys/my_open.c:38–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36*/
37
38File my_open(const char *FileName, int Flags, myf MyFlags)
39 /* Path-name of file */
40 /* Read | write .. */
41 /* Special flags */
42{
43 File fd;
44 DBUG_ENTER("my_open");
45 DBUG_PRINT("my",("Name: '%s' Flags: %d MyFlags: %d",
46 FileName, Flags, MyFlags));
47#if defined(_WIN32)
48 fd= my_win_open(FileName, Flags);
49#elif !defined(NO_OPEN_3)
50 fd = open(FileName, Flags, my_umask); /* Normal unix */
51#else
52 fd = open((char *) FileName, Flags);
53#endif
54
55 fd= my_register_filename(fd, FileName, FILE_BY_OPEN, EE_FILENOTFOUND, MyFlags);
56 DBUG_RETURN(fd);
57} /* my_open */
58
59
60/*

Callers 6

open_fileFunction · 0.85
my_sync_dirFunction · 0.85
symdirgetFunction · 0.85
create_temp_fileFunction · 0.85
my_copyFunction · 0.85
inline_mysql_file_openFunction · 0.85

Calls 2

my_win_openFunction · 0.85
my_register_filenameFunction · 0.85

Tested by

no test coverage detected