summaryrefslogtreecommitdiff
path: root/innobase/include/os0file.h
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2002-03-21 18:03:09 +0200
committerheikki@hundin.mysql.fi <>2002-03-21 18:03:09 +0200
commite90a57aa49c79d75cabef38c764b5f81ba0288dc (patch)
tree8484c3bb65d40af0743b44a24a788dc2d5cf7d48 /innobase/include/os0file.h
parent254df5fdd66989c404ff2f4253bf05afc2df53fa (diff)
downloadmariadb-git-e90a57aa49c79d75cabef38c764b5f81ba0288dc.tar.gz
Many files:
Merge InnoDB-3.23.50
Diffstat (limited to 'innobase/include/os0file.h')
-rw-r--r--innobase/include/os0file.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/innobase/include/os0file.h b/innobase/include/os0file.h
index 411a9fb2c21..67d76814936 100644
--- a/innobase/include/os0file.h
+++ b/innobase/include/os0file.h
@@ -11,6 +11,12 @@ Created 10/21/1995 Heikki Tuuri
#include "univ.i"
+
+/* If the following is set to TRUE, we do not call os_file_flush in every
+os_file_write */
+extern ibool os_do_not_call_flush_at_each_write;
+extern ibool os_has_said_disk_full;
+
#ifdef __WIN__
/* We define always WIN_ASYNC_IO, and check at run-time whether
@@ -55,6 +61,9 @@ log. */
#define OS_FILE_CREATE 52
#define OS_FILE_OVERWRITE 53
+#define OS_FILE_READ_ONLY 333
+#define OS_FILE_READ_WRITE 444
+
/* Options for file_create */
#define OS_FILE_AIO 61
#define OS_FILE_NORMAL 62
@@ -118,6 +127,27 @@ os_get_os_version(void);
/*===================*/
/* out: OS_WIN95, OS_WIN31, OS_WINNT (2000 == NT) */
/********************************************************************
+Creates the seek mutexes used in positioned reads and writes. */
+
+void
+os_io_init_simple(void);
+/*===================*/
+/********************************************************************
+A simple function to open or create a file. */
+
+os_file_t
+os_file_create_simple(
+/*==================*/
+ /* out, own: handle to the file, not defined if error,
+ error number can be retrieved with os_get_last_error */
+ char* name, /* in: name of the file or path as a null-terminated
+ string */
+ ulint create_mode,/* in: OS_FILE_OPEN if an existing file is opened
+ (if does not exist, error), or OS_FILE_CREATE if a new
+ file is created (if exists, error) */
+ ulint access_type,/* in: OS_FILE_READ_ONLY or OS_FILE_READ_WRITE */
+ ibool* success);/* out: TRUE if succeed, FALSE if error */
+/********************************************************************
Opens an existing file or creates a new. */
os_file_t