![]() |
MySQL 9.6.0
Source Code Documentation
|
File service allows file manipulation depending on the "mysql_file" component service implementation. More...
#include <mysql_file.h>
Public Attributes | |
| FILE_h(* | open )(const char *file_name, int open_flags) |
| Open a file. More... | |
| FILE_h(* | create )(const char *file_name, int open_flags, int permission_flags) |
| Create a new file. More... | |
| int(* | close )(FILE_h file) |
| Close a file previously opened or created using the open/create functions. More... | |
| size_t(* | write )(FILE_h file, const unsigned char *data, size_t size) |
| Write data into a file. More... | |
| size_t(* | read )(FILE_h file, unsigned char *data, size_t size) |
| Read data from a file. More... | |
| int(* | flush )(FILE_h file) |
| Flush written data into the file. More... | |
| unsigned long long(* | seek )(FILE_h file, unsigned long long pos, int whence) |
| Go to the specified position within a file. More... | |
| unsigned long long(* | tell )(FILE_h file) |
| Get current absolute position within a file. More... | |
File service allows file manipulation depending on the "mysql_file" component service implementation.
Every function has additional my_flags argument that can be customized depending on the custom implementation.
| int(* s_mysql_mysql_file::close) (FILE_h file) |
Close a file previously opened or created using the open/create functions.
| file | File handle. |
| FILE_h(* s_mysql_mysql_file::create) (const char *file_name, int open_flags, int permission_flags) |
Create a new file.
| file_name | File path. |
| open_flags | File open flags starting with MY_FILE_O prefix, e.g. MY_FILE_O_RDONLY. |
| permission_flags | File permission specifier flags starting with MY_FILE_PERMISSION prefix. |
| int(* s_mysql_mysql_file::flush) (FILE_h file) |
Flush written data into the file.
| file | File handle. |
| FILE_h(* s_mysql_mysql_file::open) (const char *file_name, int open_flags) |
Open a file.
| file_name | File path. |
| open_flags | File open flags starting with MY_FILE_O prefix, e.g. MY_FILE_O_RDONLY. |
| size_t(* s_mysql_mysql_file::read) (FILE_h file, unsigned char *data, size_t size) |
Read data from a file.
| file | File handle. |
| data | Data buffer, where data will be written. |
| size | Data buffer size. |
Go to the specified position within a file.
| file | File handle. |
| pos | A new read/write position within a file. |
| whence | File position flag starting with MY_FILE_SEEK prefix. |
| unsigned long long(* s_mysql_mysql_file::tell) (FILE_h file) |
Get current absolute position within a file.
| file | File handle. |
| size_t(* s_mysql_mysql_file::write) (FILE_h file, const unsigned char *data, size_t size) |
Write data into a file.
| file | File handle. |
| data | Data to be written. |
| size | Data size. |