Commit 2063531f authored by marko's avatar marko

branches/zip: os_file_set_nocache(): Clean up the function comment.

Add the function prototype to os0file.h.
parent 8bf7931e
......@@ -290,6 +290,17 @@ os_file_create_simple_no_error_handling(
used by a backup program reading the file */
ibool* success);/* out: TRUE if succeed, FALSE if error */
/********************************************************************
Tries to disable OS caching on an opened file descriptor. */
UNIV_INTERN
void
os_file_set_nocache(
/*================*/
int fd, /* in: file descriptor to alter */
const char* file_name, /* in: file name, used in the
diagnostic message */
const char* operation_name);/* in: "open" or "create"; used in the
diagnostic message */
/********************************************************************
Opens an existing file or creates a new. */
UNIV_INTERN
os_file_t
......
......@@ -1109,12 +1109,10 @@ void
os_file_set_nocache(
/*================*/
int fd, /* in: file descriptor to alter */
const char* file_name, /* in: used in the diagnostic message */
const char* operation_name) /* in: used in the diagnostic message,
we call os_file_set_nocache()
immediately after opening or creating
a file, so this is either "open" or
"create" */
const char* file_name, /* in: file name, used in the
diagnostic message */
const char* operation_name) /* in: "open" or "create"; used in the
diagnostic message */
{
/* some versions of Solaris may not have DIRECTIO_ON */
#if defined(UNIV_SOLARIS) && defined(DIRECTIO_ON)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment