Kodi Documentation
Kodi is an open source media player and entertainment hub.
posix/PlatformDefs.h File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include <sys/sysinfo.h>
#include <sys/time.h>
#include <stdint.h>
Include dependency graph for posix/PlatformDefs.h:
This graph shows which files directly or indirectly include this file:

Classes

union  _LARGE_INTEGER
 
union  _ULARGE_INTEGER
 
struct  _stati64
 

Macros

#define PIXEL_ASHIFT   24
 
#define PIXEL_RSHIFT   16
 
#define PIXEL_GSHIFT   8
 
#define PIXEL_BSHIFT   0
 
#define _fdopen   fdopen
 
#define _vsnprintf   vsnprintf
 
#define __stdcall
 
#define __cdecl
 
#define WINAPI   __stdcall
 
#define INVALID_HANDLE_VALUE   ((HANDLE)~0U)
 
#define MAXWORD   0xffff
 
#define SOCKET_ERROR   (-1)
 
#define INVALID_SOCKET   (~0)
 
#define closesocket(s)   close(s)
 
#define ioctlsocket(s, f, v)   ioctl(s, f, v)
 
#define WSAGetLastError()   (errno)
 
#define WSAECONNRESET   ECONNRESET
 
#define O_BINARY   0
 
#define _O_TRUNC   O_TRUNC
 
#define _O_RDONLY   O_RDONLY
 
#define _O_WRONLY   O_WRONLY
 
#define __stat64   stat64
 
#define FILE_BEGIN   0
 
#define FILE_CURRENT   1
 
#define FILE_END   2
 
#define _S_IFREG   S_IFREG
 
#define _S_IFDIR   S_IFDIR
 
#define MAX_PATH   PATH_MAX
 
#define FILE_FLAG_NO_BUFFERING   0x20000000
 
#define FILE_FLAG_DELETE_ON_CLOSE   0x04000000
 
#define CREATE_NEW   1
 
#define CREATE_ALWAYS   2
 
#define OPEN_EXISTING   3
 
#define OPEN_ALWAYS   4
 
#define TRUNCATE_EXISTING   5
 
#define FILE_READ_DATA   ( 0x0001 )
 
#define FILE_WRITE_DATA   ( 0x0002 )
 

Typedefs

typedef CXHandleHANDLE
 
typedef voidHINSTANCE
 
typedef voidHMODULE
 
typedef unsigned int DWORD
 
typedef union _LARGE_INTEGER LARGE_INTEGER
 
typedef union _LARGE_INTEGERPLARGE_INTEGER
 
typedef union _ULARGE_INTEGER ULARGE_INTEGER
 
typedef int SOCKET
 
typedef int(* LPTHREAD_START_ROUTINE) (void *)
 

Macro Definition Documentation

◆ __cdecl

#define __cdecl

◆ __stat64

#define __stat64   stat64

◆ __stdcall

#define __stdcall

◆ _fdopen

#define _fdopen   fdopen

◆ _O_RDONLY

#define _O_RDONLY   O_RDONLY

◆ _O_TRUNC

#define _O_TRUNC   O_TRUNC

◆ _O_WRONLY

#define _O_WRONLY   O_WRONLY

◆ _S_IFDIR

#define _S_IFDIR   S_IFDIR

◆ _S_IFREG

#define _S_IFREG   S_IFREG

◆ _vsnprintf

#define _vsnprintf   vsnprintf

◆ closesocket

#define closesocket (   s)    close(s)

◆ CREATE_ALWAYS

#define CREATE_ALWAYS   2

◆ CREATE_NEW

#define CREATE_NEW   1

◆ FILE_BEGIN

#define FILE_BEGIN   0

◆ FILE_CURRENT

#define FILE_CURRENT   1

◆ FILE_END

#define FILE_END   2

◆ FILE_FLAG_DELETE_ON_CLOSE

#define FILE_FLAG_DELETE_ON_CLOSE   0x04000000

◆ FILE_FLAG_NO_BUFFERING

#define FILE_FLAG_NO_BUFFERING   0x20000000

◆ FILE_READ_DATA

#define FILE_READ_DATA   ( 0x0001 )

◆ FILE_WRITE_DATA

#define FILE_WRITE_DATA   ( 0x0002 )

◆ INVALID_HANDLE_VALUE

#define INVALID_HANDLE_VALUE   ((HANDLE)~0U)

◆ INVALID_SOCKET

#define INVALID_SOCKET   (~0)

◆ ioctlsocket

#define ioctlsocket (   s,
  f,
 
)    ioctl(s, f, v)

◆ MAX_PATH

#define MAX_PATH   PATH_MAX

◆ MAXWORD

#define MAXWORD   0xffff

◆ O_BINARY

#define O_BINARY   0

◆ OPEN_ALWAYS

#define OPEN_ALWAYS   4

◆ OPEN_EXISTING

#define OPEN_EXISTING   3

◆ PIXEL_ASHIFT

#define PIXEL_ASHIFT   24

◆ PIXEL_BSHIFT

#define PIXEL_BSHIFT   0

◆ PIXEL_GSHIFT

#define PIXEL_GSHIFT   8

◆ PIXEL_RSHIFT

#define PIXEL_RSHIFT   16

◆ SOCKET_ERROR

#define SOCKET_ERROR   (-1)

◆ TRUNCATE_EXISTING

#define TRUNCATE_EXISTING   5

◆ WINAPI

#define WINAPI   __stdcall

◆ WSAECONNRESET

#define WSAECONNRESET   ECONNRESET

◆ WSAGetLastError

#define WSAGetLastError ( )    (errno)

Typedef Documentation

◆ DWORD

typedef unsigned int DWORD

◆ HANDLE

typedef CXHandle* HANDLE

◆ HINSTANCE

typedef void* HINSTANCE

◆ HMODULE

typedef void* HMODULE

◆ LARGE_INTEGER

◆ LPTHREAD_START_ROUTINE

typedef int(* LPTHREAD_START_ROUTINE) (void *)

◆ PLARGE_INTEGER

typedef union _LARGE_INTEGER * PLARGE_INTEGER

◆ SOCKET

typedef int SOCKET

◆ ULARGE_INTEGER