diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-04-26 19:07:11 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-04-26 19:07:11 +0200 |
commit | 5b8ac23030a59a8ed3636d441180fec571dbe3d1 (patch) | |
tree | 2276f28705e8cf407ed84eb58cedd2166ea4150a /storage/xtradb/include/os0file.h | |
parent | d76eba6a6b7de3077487ff3e4e7fa0ef2a7a9b00 (diff) | |
download | mariadb-git-5b8ac23030a59a8ed3636d441180fec571dbe3d1.tar.gz |
5.6.29-76.2
Diffstat (limited to 'storage/xtradb/include/os0file.h')
-rw-r--r-- | storage/xtradb/include/os0file.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/storage/xtradb/include/os0file.h b/storage/xtradb/include/os0file.h index de5ef1b59fb..330067576f6 100644 --- a/storage/xtradb/include/os0file.h +++ b/storage/xtradb/include/os0file.h @@ -455,14 +455,19 @@ UNIV_INTERN void os_io_init_simple(void); /*===================*/ -/***********************************************************************//** -Creates a temporary file. This function is like tmpfile(3), but -the temporary file is created in the MySQL temporary directory. -@return temporary file handle, or NULL on error */ + +/** Create a temporary file. This function is like tmpfile(3), but +the temporary file is created in the given parameter path. If the path +is null then it will create the file in the mysql server configuration +parameter (--tmpdir). +@param[in] path location for creating temporary file +@return temporary file handle, or NULL on error */ +UNIV_INTERN FILE* -os_file_create_tmpfile(void); -/*========================*/ +os_file_create_tmpfile( + const char* path); + #endif /* !UNIV_HOTBACKUP */ /***********************************************************************//** The os_file_opendir() function opens a directory stream corresponding to the @@ -1284,14 +1289,14 @@ os_file_get_status( file can be opened in RW mode */ #if !defined(UNIV_HOTBACKUP) -/*********************************************************************//** -Creates a temporary file that will be deleted on close. -This function is defined in ha_innodb.cc. -@return temporary file descriptor, or < 0 on error */ +/** Create a temporary file in the location specified by the parameter +path. If the path is null, then it will be created in tmpdir. +@param[in] path location for creating temporary file +@return temporary file descriptor, or < 0 on error */ UNIV_INTERN int -innobase_mysql_tmpfile(void); -/*========================*/ +innobase_mysql_tmpfile( + const char* path); #endif /* !UNIV_HOTBACKUP */ |