WindowsCompatibility.cpp File Reference

#include <support/atomic.h>
#include <support/ByteOrder.h>
#include <support/Errors.h>
#include <support/StdIO.h>
#include <support/String.h>
#include <support/SupportDefs.h>
#include <support/TLS.h>
#include <PalmTypesCompatibility.h>
#include <support_p/WindowsCompatibility.h>
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <limits.h>
#include <sys/time.h>
#include <ErrorMgr.h>
#include <LocaleMgr.h>
#include <TextMgr.h>
#include <TextMgrPrv.h>
#include <SysThreadConcealed.h>
#include <SystemPDK.h>

Defines

#define _PACKED

Functions

int32_t __declspec (naked) SysAtomicInc32(volatile int32_t *ioOperandP)
double _swap_double (double arg)
float _swap_float (float arg)
uint32_t _swap_int32 (uint32_t uarg)
uint64_t _swap_int64 (uint64_t uarg)
int32_t atomic_add (volatile int32_t *value, int32_t addvalue)
int32_t atomic_and (volatile int32_t *value, int32_t andvalue)
int32_t atomic_or (volatile int32_t *value, int32_t orvalue)
int32_t compare_and_swap32 (volatile int32_t *location, int32_t oldValue, int32_t newValue)
BOOL WINAPI DllMain (HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
void ErrFatalErrorInContext (const char *fileName, uint32_t lineNum, const char *errMsg)
status_t get_image_symbol (image_id imid, const char *name, int32_t sclass, void **ptr)
status_t get_next_image_info (team_id team, int32_t *cookie, image_info *info)
status_t get_nth_image_symbol (image_id imid, int32_t index, char *buf, int32_t *bufsize, int32_t *sclass, void **ptr)
void init_thread_message_queue ()
status_t KALCurrentThreadDelay (nsecs_t timeout, timeoutFlags_t flags)
CharEncodingType LmGetSystemLocale (LmLocaleType *oSystemLocale)
image_id load_add_on (const char *path)
int rand_r (unsigned int *seed)
const char * strerror_r (int errnumber, char *buf, size_t buflen)
size_t strlcpy (char *dst, char const *src, size_t siz)
uint32_t strnlen (const char *str, int32_t maxLength)
SysHandle SysCurrentThread (void)
 Return the handle for the calling thread.
Boolean SysIsInstrumentationAllowed (void)
uint32_t SysProcessID ()
const char * SysProcessName ()
status_t SysThreadDelay (nsecs_t timeout, timeoutFlags_t flags)
 Go to sleep for the given amount of time.
status_t SysTSDAllocate (SysTSDSlotID *oTSDSlot, SysTSDDestructorFunc *iDestructor, uint32_t iName)
status_t SysTSDFree (SysTSDSlotID tsdslot)
void * SysTSDGet (SysTSDSlotID tsdslot)
void SysTSDSet (SysTSDSlotID tsdslot, void *iValue)
status_t TxtConvertEncoding (Boolean newConversion, TxtConvertStateType *ioStateP, const char *srcTextP, size_t *ioSrcBytes, CharEncodingType srcEncoding, char *dstTextP, size_t *ioDstBytes, CharEncodingType dstEncoding, const char *substitutionStr, size_t substitutionLen)
status_t TxtDeviceToUTF32Lengths (const uint8_t *srcTextP, size_t srcBytes, wchar32_t *dstTextP, uint8_t *srcCharLengths, size_t dstLength)
size_t TxtSetNextChar (char *iTextP, size_t iOffset, wchar32_t iChar)
status_t unload_add_on (image_id imid)

Variables

int64_t oldValue


Define Documentation

#define _PACKED
 


Function Documentation

__declspec naked   )  volatile
 

double _swap_double double  arg  ) 
 

float _swap_float float  arg  ) 
 

uint32_t _swap_int32 uint32_t  uarg  ) 
 

uint64_t _swap_int64 uint64_t  uarg  ) 
 

int32_t atomic_add volatile int32_t *  value,
int32_t  addvalue
 

int32_t atomic_and volatile int32_t *  value,
int32_t  andvalue
 

int32_t atomic_or volatile int32_t *  value,
int32_t  orvalue
 

int32_t compare_and_swap32 volatile int32_t *  location,
int32_t  oldValue,
int32_t  newValue
 

BOOL WINAPI DllMain HANDLE  hModule,
DWORD  ul_reason_for_call,
LPVOID  lpReserved
 

void ErrFatalErrorInContext const char *  fileName,
uint32_t  lineNum,
const char *  errMsg
 

status_t get_image_symbol image_id  imid,
const char *  name,
int32_t  sclass,
void **  ptr
 

status_t get_next_image_info team_id  team,
int32_t *  cookie,
image_info *  info
 

status_t get_nth_image_symbol image_id  imid,
int32_t  index,
char *  buf,
int32_t *  bufsize,
int32_t *  sclass,
void **  ptr
 

void init_thread_message_queue  ) 
 

status_t KALCurrentThreadDelay nsecs_t  timeout,
timeoutFlags_t  flags
 

CharEncodingType LmGetSystemLocale LmLocaleType oSystemLocale  ) 
 

image_id load_add_on const char *  path  ) 
 

int rand_r unsigned int *  seed  ) 
 

const char* strerror_r int  errnumber,
char *  buf,
size_t  buflen
 

size_t strlcpy char *  dst,
char const *  src,
size_t  siz
 

uint32_t strnlen const char *  str,
int32_t  maxLength
 

SysHandle SysCurrentThread void   ) 
 

Return the handle for the calling thread.

Boolean SysIsInstrumentationAllowed void   ) 
 

uint32_t SysProcessID void   ) 
 

const char* SysProcessName void   ) 
 

status_t SysThreadDelay nsecs_t  timeout,
timeoutFlags_t  flags
 

Go to sleep for the given amount of time.

status_t SysTSDAllocate SysTSDSlotID oTSDSlot,
SysTSDDestructorFunc iDestructor,
uint32_t  iName
 

status_t SysTSDFree SysTSDSlotID  tsdslot  ) 
 

void* SysTSDGet SysTSDSlotID  tsdslot  ) 
 

void SysTSDSet SysTSDSlotID  tsdslot,
void *  iValue
 

status_t TxtConvertEncoding Boolean  newConversion,
TxtConvertStateType ioStateP,
const char *  srcTextP,
size_t *  ioSrcBytes,
CharEncodingType  srcEncoding,
char *  dstTextP,
size_t *  ioDstBytes,
CharEncodingType  dstEncoding,
const char *  substitutionStr,
size_t  substitutionLen
 

status_t TxtDeviceToUTF32Lengths const uint8_t *  srcTextP,
size_t  srcBytes,
wchar32_t dstTextP,
uint8_t *  srcCharLengths,
size_t  dstLength
 

size_t TxtSetNextChar char *  iTextP,
size_t  iOffset,
wchar32_t  iChar
 

status_t unload_add_on image_id  imid  ) 
 


Variable Documentation

int64_t oldValue