| 36 | */ |
| 37 | |
| 38 | File 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 | /* |
no test coverage detected