26#define MY_IO_INCLUDED 1
62#define MY_FOPEN_BINARY _O_BINARY
64#define MY_FOPEN_BINARY 0
73#define _SH_DENYRWD 0x110
74#define _SH_DENYWRD 0x120
75#define _SH_DENYRDD 0x130
76#define _SH_DENYDEL 0x140
84#define FN_REFLEN_SE 4000
88#define FN_PARENTDIR ".."
91#define FN_LIBCHAR '\\'
92#define FN_LIBCHAR2 '/'
93#define FN_DIRSEP "/\\"
94#define FN_EXEEXT ".exe"
95#define FN_SOEXT ".dll"
96#define FN_ROOTDIR "\\"
98#define FN_NETWORK_DRIVES
100#define FN_LIBCHAR '/'
106#define FN_SOEXT ".so"
107#define FN_ROOTDIR "/"
131#define MY_FILE_MIN 2048
147#define MY_NFILE (16384 + MY_FILE_MIN)
152#define OS_FILE_LIMIT UINT_MAX
167#define socket_errno WSAGetLastError()
168#define SOCKET_EINTR WSAEINTR
169#define SOCKET_EAGAIN WSAEINPROGRESS
170#define SOCKET_EWOULDBLOCK WSAEWOULDBLOCK
171#define SOCKET_EADDRINUSE WSAEADDRINUSE
172#define SOCKET_ETIMEDOUT WSAETIMEDOUT
173#define SOCKET_ECONNRESET WSAECONNRESET
174#define SOCKET_ENFILE ENFILE
175#define SOCKET_EMFILE EMFILE
177#define socket_errno errno
178#define closesocket(A) close(A)
179#define SOCKET_EINTR EINTR
180#define SOCKET_EAGAIN EAGAIN
181#define SOCKET_EWOULDBLOCK EWOULDBLOCK
182#define SOCKET_EADDRINUSE EADDRINUSE
183#define SOCKET_ETIMEDOUT ETIMEDOUT
184#define SOCKET_ECONNRESET ECONNRESET
185#define SOCKET_ENFILE ENFILE
186#define SOCKET_EMFILE EMFILE
190#define INVALID_SOCKET -1
194#define USER_READ (1L << 0)
195#define USER_WRITE (1L << 1)
196#define USER_EXECUTE (1L << 2)
197#define GROUP_READ (1L << 3)
198#define GROUP_WRITE (1L << 4)
199#define GROUP_EXECUTE (1L << 5)
200#define OTHERS_READ (1L << 6)
201#define OTHERS_WRITE (1L << 7)
202#define OTHERS_EXECUTE (1L << 8)
203#define USER_RWX USER_READ | USER_WRITE | USER_EXECUTE
204#define GROUP_RWX GROUP_READ | GROUP_WRITE | GROUP_EXECUTE
205#define OTHERS_RWX OTHERS_READ | OTHERS_WRITE | OTHERS_EXECUTE
constexpr const unsigned int DISK_BUFFER_SIZE
Definition: my_io.h:164
constexpr const unsigned int READ_RECORD_BUFFER
Definition: my_io.h:162
static int is_directory_separator(char c)
Definition: my_io.h:110
#define FN_LIBCHAR
Definition: my_io.h:100
constexpr const size_t IO_SIZE
Definition: my_io.h:159
Types to make file and socket I/O compatible.