cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Macros | Typedefs | Functions
os_spec.h File Reference
#include <limits.h>
#include <stdio.h>
#include "misc/config.h"
#include <ctype.h>

Go to the source code of this file.

Macros

#define VC_16BIT(version)   0
 
#define VC_GE_2002(version)   0
 
#define VC_LT_2005(version)   0
 
#define VC_GE_2005(version)   0
 
#define VC_GE_2008(version)   0
 
#define VC_GE_2010(version)   0
 
#define SYSTEM_16BIT
 
#define FAR_BSS
 
#define FALSE   0
 
#define TRUE   !FALSE
 
#define STATIC_DATA   static
 
#define CONST_INIT   const
 
#define CONST_INIT_STRUCT_3(decl, init1, init2, init3)   decl = { init1, init2, init3 }
 
#define CONST_INIT_STRUCT_4(decl, init1, init2, init3, init4)   decl = { init1, init2, init3, init4 }
 
#define CONST_INIT_STRUCT_5(decl, init1, init2, init3, init4, init5)   decl = { init1, init2, init3, init4, init5 }
 
#define CONST_SET_STRUCT(init)
 
#define CONST_INIT_STRUCT_A2(decl, init1, init2)   const decl = { { init1, 0 }, { init2, 0 } }
 
#define CONST_SET_STRUCT_A(init)
 
#define verifyVAList(x)   ( ( x ) != NULL )
 
#define DATA_LITTLEENDIAN
 
#define WCSIZE   ( sizeof( wchar_t ) )
 
#define isAlnum(ch)   isalnum( byteToInt( ch ) )
 
#define isAlpha(ch)   isalpha( byteToInt( ch ) )
 
#define isDigit(ch)   isdigit( byteToInt( ch ) )
 
#define isPrint(ch)   isprint( byteToInt( ch ) )
 
#define isXDigit(ch)   isxdigit( byteToInt( ch ) )
 
#define toLower(ch)   tolower( byteToInt( ch ) )
 
#define toUpper(ch)   toupper( byteToInt( ch ) )
 
#define strCompareZ(str1, str2)   stricmp( str1, str2 )
 
#define strCompare(str1, str2, len)   strnicmp( str1, str2, len )
 
#define strcpy_s(s1, s1max, s2)   strcpy( s1, s2 )
 
#define NO_NATIVE_STRLCPY
 
#define sprintf_s   snprintf
 
#define vsprintf_s   vsnprintf
 
#define gmTime_s(timer, result)   gmtime( timer )
 

Typedefs

typedef unsigned char BYTE
 
typedef int BOOLEAN
 
typedef unsigned short int wchar_t
 

Functions

int strlcpy_s (char *dest, const int destLen, const char *src)
 
int strlcat_s (char *dest, const int destLen, const char *src)
 
int mbstowcs_s (size_t *retval, wchar_t *dst, size_t dstmax, const char *src, size_t len)
 
int wcstombs_s (size_t *retval, char *dst, size_t dstmax, const wchar_t *src, size_t len)
 
void * ptr_align (const void *ptr, const int units)
 
int ptr_diff (const void *ptr1, const void *ptr2)
 

Macro Definition Documentation

#define CONST_INIT   const

Definition at line 538 of file os_spec.h.

#define CONST_INIT_STRUCT_3 (   decl,
  init1,
  init2,
  init3 
)    decl = { init1, init2, init3 }

Definition at line 539 of file os_spec.h.

#define CONST_INIT_STRUCT_4 (   decl,
  init1,
  init2,
  init3,
  init4 
)    decl = { init1, init2, init3, init4 }

Definition at line 541 of file os_spec.h.

#define CONST_INIT_STRUCT_5 (   decl,
  init1,
  init2,
  init3,
  init4,
  init5 
)    decl = { init1, init2, init3, init4, init5 }

Definition at line 543 of file os_spec.h.

#define CONST_INIT_STRUCT_A2 (   decl,
  init1,
  init2 
)    const decl = { { init1, 0 }, { init2, 0 } }

Definition at line 547 of file os_spec.h.

#define CONST_SET_STRUCT (   init)

Definition at line 545 of file os_spec.h.

#define CONST_SET_STRUCT_A (   init)

Definition at line 549 of file os_spec.h.

#define DATA_LITTLEENDIAN

Definition at line 783 of file os_spec.h.

#define FALSE   0

Definition at line 469 of file os_spec.h.

#define FAR_BSS

Definition at line 417 of file os_spec.h.

#define gmTime_s (   timer,
  result 
)    gmtime( timer )

Definition at line 1146 of file os_spec.h.

#define isAlnum (   ch)    isalnum( byteToInt( ch ) )

Definition at line 1012 of file os_spec.h.

#define isAlpha (   ch)    isalpha( byteToInt( ch ) )

Definition at line 1013 of file os_spec.h.

#define isDigit (   ch)    isdigit( byteToInt( ch ) )

Definition at line 1014 of file os_spec.h.

#define isPrint (   ch)    isprint( byteToInt( ch ) )

Definition at line 1015 of file os_spec.h.

#define isXDigit (   ch)    isxdigit( byteToInt( ch ) )

Definition at line 1016 of file os_spec.h.

#define NO_NATIVE_STRLCPY

Definition at line 1115 of file os_spec.h.

#define sprintf_s   snprintf

Definition at line 1141 of file os_spec.h.

#define STATIC_DATA   static

Definition at line 496 of file os_spec.h.

#define strCompare (   str1,
  str2,
  len 
)    strnicmp( str1, str2, len )

Definition at line 1021 of file os_spec.h.

#define strCompareZ (   str1,
  str2 
)    stricmp( str1, str2 )

Definition at line 1019 of file os_spec.h.

#define strcpy_s (   s1,
  s1max,
  s2 
)    strcpy( s1, s2 )

Definition at line 1103 of file os_spec.h.

#define SYSTEM_16BIT

Definition at line 359 of file os_spec.h.

#define toLower (   ch)    tolower( byteToInt( ch ) )

Definition at line 1017 of file os_spec.h.

#define toUpper (   ch)    toupper( byteToInt( ch ) )

Definition at line 1018 of file os_spec.h.

#define TRUE   !FALSE

Definition at line 470 of file os_spec.h.

#define VC_16BIT (   version)    0

Definition at line 172 of file os_spec.h.

#define VC_GE_2002 (   version)    0

Definition at line 173 of file os_spec.h.

#define VC_GE_2005 (   version)    0

Definition at line 175 of file os_spec.h.

#define VC_GE_2008 (   version)    0

Definition at line 176 of file os_spec.h.

#define VC_GE_2010 (   version)    0

Definition at line 177 of file os_spec.h.

#define VC_LT_2005 (   version)    0

Definition at line 174 of file os_spec.h.

#define verifyVAList (   x)    ( ( x ) != NULL )

Definition at line 618 of file os_spec.h.

#define vsprintf_s   vsnprintf

Definition at line 1142 of file os_spec.h.

#define WCSIZE   ( sizeof( wchar_t ) )

Definition at line 900 of file os_spec.h.

Typedef Documentation

typedef int BOOLEAN

Definition at line 396 of file os_spec.h.

typedef unsigned char BYTE

Definition at line 384 of file os_spec.h.

typedef unsigned short int wchar_t

Definition at line 898 of file os_spec.h.

Function Documentation

int mbstowcs_s ( size_t *  retval,
wchar_t dst,
size_t  dstmax,
const char *  src,
size_t  len 
)
void* ptr_align ( const void *  ptr,
const int  units 
)

Definition at line 2050 of file os_spec.c.

int ptr_diff ( const void *  ptr1,
const void *  ptr2 
)

Definition at line 2063 of file os_spec.c.

int strlcat_s ( char *  dest,
const int  destLen,
const char *  src 
)
int strlcpy_s ( char *  dest,
const int  destLen,
const char *  src 
)
int wcstombs_s ( size_t *  retval,
char *  dst,
size_t  dstmax,
const wchar_t src,
size_t  len 
)