Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
eb163377
Commit
eb163377
authored
Jan 29, 2013
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding os.h forgotten in the previous changeset.
added: storage/connect/os.h
parent
7d0887e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
storage/connect/os.h
storage/connect/os.h
+57
-0
No files found.
storage/connect/os.h
0 → 100644
View file @
eb163377
#ifndef _OS_H_INCLUDED
#define _OS_H_INCLUDED
#if defined __FreeBSD__
typedef
off_t
off64_t
;
#define lseek64(fd, offset, whence) lseek((fd), (offset), (whence))
#define open64(path, flags, mode) open((path), (flags), (mode))
#define ftruncate64(fd, length) ftruncate((fd), (length))
#define O_LARGEFILE 0
#endif
#if defined(WIN32)
typedef
__int64
BIGINT
;
#else // !WIN32
typedef
off64_t
BIGINT
;
#define FILE_BEGIN SEEK_SET
#define FILE_CURRENT SEEK_CUR
#define FILE_END SEEK_END
#endif // !WIN32
#if !defined(WIN32)
typedef
const
void
*
LPCVOID
;
typedef
const
char
*
LPCTSTR
;
typedef
const
char
*
LPCSTR
;
typedef
unsigned
char
BYTE
;
typedef
char
*
LPSTR
;
typedef
char
*
LPTSTR
;
typedef
char
*
PSZ
;
typedef
int
INT
;
#if !defined(NODW)
typedef
int
DWORD
;
#endif
/* !NODW */
#undef HANDLE
typedef
int
HANDLE
;
/* TODO-BAR: remove this */
#ifdef __cplusplus
typedef
int
bool
;
#else
#define bool my_bool
#endif
#define _MAX_PATH PATH_MAX
#define stricmp strcasecmp
#define _stricmp strcasecmp
#define strnicmp strncasecmp
#define _strnicmp strncasecmp
#define _MAX_PATH 260
#define _MAX_DRIVE 3
#define _MAX_DIR 256
#define _MAX_FNAME 256
#define _MAX_EXT 256
#define INVALID_HANDLE_VALUE (-1)
#define __stdcall
#endif
/* !WIN32 */
#endif
/* _OS_H_INCLUDED */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment