TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CascPort.h File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <errno.h>
+ Include dependency graph for CascPort.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define bool   char
 
#define true   1
 
#define false   0
 
#define PATH_SEPARATOR   '/'
 
#define CREATE_DIRECTORY(name)   mkdir(name, 0755)
 
#define PLATFORM_LITTLE_ENDIAN
 
#define PLATFORM_LINUX
 
#define PLATFORM_DEFINED
 
#define FIELD_OFFSET(t, f)   offsetof(t,f)
 
#define PLATFORM_32BIT
 
#define _LZMA_UINT32_IS_ULONG
 
#define MAX_PATH   1024
 
#define WINAPI
 
#define FILE_BEGIN   SEEK_SET
 
#define FILE_CURRENT   SEEK_CUR
 
#define FILE_END   SEEK_END
 
#define INVALID_HANDLE_VALUE   ((HANDLE)-1)
 
#define _T(x)   x
 
#define _tcslen   strlen
 
#define _tcscpy   strcpy
 
#define _tcscat   strcat
 
#define _tcschr   strchr
 
#define _tcsrchr   strrchr
 
#define _tcsstr   strstr
 
#define _tcsspn   strspn
 
#define _tcsncmp   strncmp
 
#define _tprintf   printf
 
#define _stprintf   sprintf
 
#define _tremove   remove
 
#define _tmkdir   mkdir
 
#define _stricmp   strcasecmp
 
#define _strnicmp   strncasecmp
 
#define _tcsicmp   strcasecmp
 
#define _tcsnicmp   strncasecmp
 
#define ERROR_SUCCESS   0
 
#define ERROR_FILE_NOT_FOUND   ENOENT
 
#define ERROR_ACCESS_DENIED   EPERM
 
#define ERROR_INVALID_HANDLE   EBADF
 
#define ERROR_NOT_ENOUGH_MEMORY   ENOMEM
 
#define ERROR_NOT_SUPPORTED   ENOTSUP
 
#define ERROR_INVALID_PARAMETER   EINVAL
 
#define ERROR_DISK_FULL   ENOSPC
 
#define ERROR_ALREADY_EXISTS   EEXIST
 
#define ERROR_INSUFFICIENT_BUFFER   ENOBUFS
 
#define ERROR_BAD_FORMAT   1000
 
#define ERROR_NO_MORE_FILES   1001
 
#define ERROR_HANDLE_EOF   1002
 
#define ERROR_CAN_NOT_COMPLETE   1003
 
#define ERROR_FILE_CORRUPT   1004
 
#define BSWAP_INT16_UNSIGNED(a)   (a)
 
#define BSWAP_INT16_SIGNED(a)   (a)
 
#define BSWAP_INT32_UNSIGNED(a)   (a)
 
#define BSWAP_INT32_SIGNED(a)   (a)
 
#define BSWAP_INT64_SIGNED(a)   (a)
 
#define BSWAP_INT64_UNSIGNED(a)   (a)
 
#define BSWAP_ARRAY16_UNSIGNED(a, b)   {}
 
#define BSWAP_ARRAY32_UNSIGNED(a, b)   {}
 
#define BSWAP_ARRAY64_UNSIGNED(a, b)   {}
 

Typedefs

typedef unsigned char BYTE
 
typedef unsigned short USHORT
 
typedef int LONG
 
typedef unsigned int DWORD
 
typedef unsigned long DWORD_PTR
 
typedef long LONG_PTR
 
typedef long INT_PTR
 
typedef long long LONGLONG
 
typedef unsigned long long ULONGLONG
 
typedef unsigned long long * PULONGLONG
 
typedef void * HANDLE
 
typedef void * LPOVERLAPPED
 
typedef char TCHAR
 
typedef unsigned int LCID
 
typedef LONGPLONG
 
typedef DWORDPDWORD
 
typedef BYTELPBYTE
 

Macro Definition Documentation

#define _LZMA_UINT32_IS_ULONG
#define _stprintf   sprintf
#define _stricmp   strcasecmp
#define _strnicmp   strncasecmp
#define _T (   x)    x
#define _tcscat   strcat
#define _tcschr   strchr
#define _tcscpy   strcpy
#define _tcsicmp   strcasecmp
#define _tcslen   strlen
#define _tcsncmp   strncmp
#define _tcsnicmp   strncasecmp
#define _tcsrchr   strrchr
#define _tcsspn   strspn
#define _tcsstr   strstr
#define _tmkdir   mkdir
#define _tprintf   printf
#define _tremove   remove
#define bool   char
#define BSWAP_ARRAY16_UNSIGNED (   a,
 
)    {}
#define BSWAP_ARRAY32_UNSIGNED (   a,
 
)    {}
#define BSWAP_ARRAY64_UNSIGNED (   a,
 
)    {}
#define BSWAP_INT16_SIGNED (   a)    (a)
#define BSWAP_INT16_UNSIGNED (   a)    (a)
#define BSWAP_INT32_SIGNED (   a)    (a)
#define BSWAP_INT32_UNSIGNED (   a)    (a)
#define BSWAP_INT64_SIGNED (   a)    (a)
#define BSWAP_INT64_UNSIGNED (   a)    (a)
#define CREATE_DIRECTORY (   name)    mkdir(name, 0755)
#define ERROR_ACCESS_DENIED   EPERM
#define ERROR_ALREADY_EXISTS   EEXIST
#define ERROR_BAD_FORMAT   1000
#define ERROR_CAN_NOT_COMPLETE   1003
#define ERROR_DISK_FULL   ENOSPC
#define ERROR_FILE_CORRUPT   1004
#define ERROR_FILE_NOT_FOUND   ENOENT
#define ERROR_HANDLE_EOF   1002
#define ERROR_INSUFFICIENT_BUFFER   ENOBUFS
#define ERROR_INVALID_HANDLE   EBADF
#define ERROR_INVALID_PARAMETER   EINVAL
#define ERROR_NO_MORE_FILES   1001
#define ERROR_NOT_ENOUGH_MEMORY   ENOMEM
#define ERROR_NOT_SUPPORTED   ENOTSUP
#define ERROR_SUCCESS   0
#define false   0
#define FIELD_OFFSET (   t,
 
)    offsetof(t,f)
#define FILE_BEGIN   SEEK_SET
#define FILE_CURRENT   SEEK_CUR
#define FILE_END   SEEK_END
#define INVALID_HANDLE_VALUE   ((HANDLE)-1)
#define MAX_PATH   1024
#define PATH_SEPARATOR   '/'
#define PLATFORM_32BIT
#define PLATFORM_DEFINED
#define PLATFORM_LINUX
#define PLATFORM_LITTLE_ENDIAN
#define true   1
#define WINAPI

Typedef Documentation

typedef unsigned char BYTE
typedef unsigned int DWORD
typedef unsigned long DWORD_PTR
typedef void* HANDLE
typedef long INT_PTR
typedef unsigned int LCID
typedef int LONG
typedef long LONG_PTR
typedef long long LONGLONG
typedef BYTE* LPBYTE
typedef void* LPOVERLAPPED
typedef DWORD* PDWORD
typedef LONG* PLONG
typedef unsigned long long* PULONGLONG
typedef char TCHAR
typedef unsigned long long ULONGLONG
typedef unsigned short USHORT