MySQL 8.0.39
Source Code Documentation
|
Common #defines and includes for file and socket I/O. More...
#include <mysql/components/services/bits/my_io_bits.h>
Go to the source code of this file.
Macros | |
#define | MY_FOPEN_BINARY 0 /* Ignore on non-Windows */ |
#define | FN_LEN 256 /* Max file name len */ |
#define | FN_HEADLEN 253 /* Max length of filepart of file name */ |
#define | FN_EXTLEN 20 /* Max length of extension (part of FN_LEN) */ |
#define | FN_REFLEN 512 /* Max length of full path-name */ |
#define | FN_REFLEN_SE 4000 /* Max length of full path-name in SE */ |
#define | FN_EXTCHAR '.' |
#define | FN_HOMELIB '~' /* ~/ is used as abbrev for home dir */ |
#define | FN_CURLIB '.' /* ./ is used as abbrev for current dir */ |
#define | FN_PARENTDIR ".." /* Parent directory; Must be a string */ |
#define | FN_LIBCHAR '/' |
#define | FN_DIRSEP "/" /* Valid directory separators */ |
#define | FN_EXEEXT "" |
#define | FN_SOEXT ".so" |
#define | FN_ROOTDIR "/" |
#define | MY_FILE_MIN 0 |
#define | MY_NFILE 64 |
#define | OS_FILE_LIMIT UINT_MAX |
#define | socket_errno errno |
#define | closesocket(A) close(A) |
#define | SOCKET_EINTR EINTR |
#define | SOCKET_EAGAIN EAGAIN |
#define | SOCKET_EWOULDBLOCK EWOULDBLOCK |
#define | SOCKET_EADDRINUSE EADDRINUSE |
#define | SOCKET_ETIMEDOUT ETIMEDOUT |
#define | SOCKET_ECONNRESET ECONNRESET |
#define | SOCKET_ENFILE ENFILE |
#define | SOCKET_EMFILE EMFILE |
#define | INVALID_SOCKET -1 |
#define | USER_READ (1L << 0) |
#define | USER_WRITE (1L << 1) |
#define | USER_EXECUTE (1L << 2) |
#define | GROUP_READ (1L << 3) |
#define | GROUP_WRITE (1L << 4) |
#define | GROUP_EXECUTE (1L << 5) |
#define | OTHERS_READ (1L << 6) |
#define | OTHERS_WRITE (1L << 7) |
#define | OTHERS_EXECUTE (1L << 8) |
#define | USER_RWX USER_READ | USER_WRITE | USER_EXECUTE |
#define | GROUP_RWX GROUP_READ | GROUP_WRITE | GROUP_EXECUTE |
#define | OTHERS_RWX OTHERS_READ | OTHERS_WRITE | OTHERS_EXECUTE |
Functions | |
static int | is_directory_separator (char c) |
Variables | |
constexpr const size_t | IO_SIZE {4096} |
constexpr const unsigned int | READ_RECORD_BUFFER {IO_SIZE * 8} |
constexpr const unsigned int | DISK_BUFFER_SIZE {IO_SIZE * 16} |
Common #defines and includes for file and socket I/O.
#define closesocket | ( | A | ) | close(A) |
#define FN_CURLIB '.' /* ./ is used as abbrev for current dir */ |
#define FN_DIRSEP "/" /* Valid directory separators */ |
#define FN_EXEEXT "" |
#define FN_EXTCHAR '.' |
#define FN_EXTLEN 20 /* Max length of extension (part of FN_LEN) */ |
#define FN_HEADLEN 253 /* Max length of filepart of file name */ |
#define FN_HOMELIB '~' /* ~/ is used as abbrev for home dir */ |
#define FN_LEN 256 /* Max file name len */ |
#define FN_LIBCHAR '/' |
#define FN_PARENTDIR ".." /* Parent directory; Must be a string */ |
#define FN_ROOTDIR "/" |
#define FN_SOEXT ".so" |
#define GROUP_EXECUTE (1L << 5) |
#define GROUP_READ (1L << 3) |
#define GROUP_RWX GROUP_READ | GROUP_WRITE | GROUP_EXECUTE |
#define GROUP_WRITE (1L << 4) |
#define INVALID_SOCKET -1 |
#define MY_FILE_MIN 0 |
#define MY_FOPEN_BINARY 0 /* Ignore on non-Windows */ |
#define MY_NFILE 64 |
#define OS_FILE_LIMIT UINT_MAX |
#define OTHERS_EXECUTE (1L << 8) |
#define OTHERS_READ (1L << 6) |
#define OTHERS_RWX OTHERS_READ | OTHERS_WRITE | OTHERS_EXECUTE |
#define OTHERS_WRITE (1L << 7) |
#define SOCKET_EADDRINUSE EADDRINUSE |
#define SOCKET_EAGAIN EAGAIN |
#define SOCKET_ECONNRESET ECONNRESET |
#define SOCKET_EINTR EINTR |
#define SOCKET_EMFILE EMFILE |
#define SOCKET_ENFILE ENFILE |
#define socket_errno errno |
#define SOCKET_ETIMEDOUT ETIMEDOUT |
#define SOCKET_EWOULDBLOCK EWOULDBLOCK |
#define USER_EXECUTE (1L << 2) |
#define USER_READ (1L << 0) |
#define USER_RWX USER_READ | USER_WRITE | USER_EXECUTE |
#define USER_WRITE (1L << 1) |
|
inlinestatic |
|
constexpr |
|
constexpr |
|
constexpr |