mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
removing MSDOS defines and code
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include <my_dir.h>
|
||||
#include "mysys_err.h"
|
||||
#include <errno.h>
|
||||
#if defined(MSDOS) || defined(__WIN__)
|
||||
#if defined(__WIN__)
|
||||
#include <share.h>
|
||||
#endif
|
||||
|
||||
@@ -47,13 +47,6 @@ File my_create(const char *FileName, int CreateFlags, int access_flags,
|
||||
#elif defined(VMS)
|
||||
fd = open((my_string) FileName, access_flags | O_CREAT, 0,
|
||||
"ctx=stm","ctx=bin");
|
||||
#elif defined(MSDOS)
|
||||
if (access_flags & O_SHARE)
|
||||
fd = sopen((my_string) FileName, access_flags | O_CREAT | O_BINARY,
|
||||
SH_DENYNO, MY_S_IREAD | MY_S_IWRITE);
|
||||
else
|
||||
fd = open((my_string) FileName, access_flags | O_CREAT | O_BINARY,
|
||||
MY_S_IREAD | MY_S_IWRITE);
|
||||
#elif defined(__WIN__)
|
||||
fd= my_sopen((my_string) FileName, access_flags | O_CREAT | O_BINARY,
|
||||
SH_DENYNO, MY_S_IREAD | MY_S_IWRITE);
|
||||
|
||||
Reference in New Issue
Block a user