summaryrefslogtreecommitdiff
path: root/innobase/include
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-11-25 20:39:06 +0200
committerunknown <heikki@hundin.mysql.fi>2003-11-25 20:39:06 +0200
commit379d64958e50df42fde8e213b80111360fd04e0c (patch)
treea19c7184495b927e60a18deea130bbc7d738ef68 /innobase/include
parentab563848cd4ccf8469795434e7577d3032e91aca (diff)
downloadmariadb-git-379d64958e50df42fde8e213b80111360fd04e0c.tar.gz
os0file.h, os0file.c:
Changes needed for ibbackup directory scanning fault tolerance innobase/os/os0file.c: Changes needed for ibbackup directory scanning fault tolerance innobase/include/os0file.h: Changes needed for ibbackup directory scanning fault tolerance
Diffstat (limited to 'innobase/include')
-rw-r--r--innobase/include/os0file.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/innobase/include/os0file.h b/innobase/include/os0file.h
index 4a9fae90f07..5f2d6e3ed21 100644
--- a/innobase/include/os0file.h
+++ b/innobase/include/os0file.h
@@ -282,6 +282,15 @@ os_file_delete(
/*===========*/
/* out: TRUE if success */
char* name); /* in: file path as a null-terminated string */
+
+/***************************************************************************
+Deletes a file if it exists. The file has to be closed before calling this. */
+
+ibool
+os_file_delete_if_exists(
+/*=====================*/
+ /* out: TRUE if success */
+ char* name); /* in: file path as a null-terminated string */
/***************************************************************************
Renames a file (can also move it to another directory). It is safest that the
file is closed before calling this function. */
@@ -379,6 +388,23 @@ os_file_read(
offset */
ulint n); /* in: number of bytes to read */
/***********************************************************************
+Requests a synchronous positioned read operation. This function does not do
+any error handling. In case of error it returns FALSE. */
+
+ibool
+os_file_read_no_error_handling(
+/*===========================*/
+ /* out: TRUE if request was
+ successful, FALSE if fail */
+ os_file_t file, /* in: handle to a file */
+ void* buf, /* in: buffer where to read */
+ ulint offset, /* in: least significant 32 bits of file
+ offset where to read */
+ ulint offset_high,/* in: most significant 32 bits of
+ offset */
+ ulint n); /* in: number of bytes to read */
+
+/***********************************************************************
Requests a synchronous write operation. */
ibool