summaryrefslogtreecommitdiff
path: root/innobase/include/os0file.h
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2004-05-28 11:15:59 +0300
committerunknown <marko@hundin.mysql.fi>2004-05-28 11:15:59 +0300
commit7aa93578dd7ad9a5a1dd86237a9fa4351f9e8525 (patch)
tree88be6cefdd42b98a592c693840125dce06a86d4f /innobase/include/os0file.h
parent606cb09d86413fa13c98c9ebd0bfc50379a01a65 (diff)
downloadmariadb-git-7aa93578dd7ad9a5a1dd86237a9fa4351f9e8525.tar.gz
InnoDB: Add diagnostics when tmpfile() fails at start (Bug #3919)
innobase/dict/dict0dict.c: Replace tmpfile() with os_file_create_tmpfile() innobase/include/os0file.h: Add os_file_create_tmpfile() innobase/lock/lock0lock.c: Replace tmpfile() with os_file_create_tmpfile() innobase/os/os0file.c: Add os_file_create_tmpfile() os_file_handle_error(): remove unused first parameter
Diffstat (limited to 'innobase/include/os0file.h')
-rw-r--r--innobase/include/os0file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/innobase/include/os0file.h b/innobase/include/os0file.h
index de17e2302ae..43741f79855 100644
--- a/innobase/include/os0file.h
+++ b/innobase/include/os0file.h
@@ -133,6 +133,13 @@ Creates the seek mutexes used in positioned reads and writes. */
void
os_io_init_simple(void);
/*===================*/
+/***************************************************************************
+Creates a temporary file. In case of error, causes abnormal termination. */
+
+FILE*
+os_file_create_tmpfile(void);
+/*========================*/
+ /* out: temporary file handle (never NULL) */
/********************************************************************
A simple function to open or create a file. */