Skip to content

File stdint.h

FileList > Compat > stdint.h

  • #include <limits.h>
  • #include <stddef.h>
  • #include <types/vxTypes.h>

Detailed Description

The C99 < stdint.h > for VxWorks 6.4 kernel builds, whose header tree has none.

solidsyslog-vxworks64.mk puts this directory first on the library's include path; the VxWorks 6.4 platform page says where application code that includes SolidSyslog headers puts it, if anywhere.

The kernel's own type header already defines the exact-width types - int32_t as long - so they are taken from there, and a translation unit that also includes other kernel headers sees one definition of each. This header adds only what the kernel lacks: the least and fast types, intptr_t, and the limit and constant macros.

Every VxWorks 6.4 kernel target is ILP32 - int, long and pointers 32 bits - and a target that is not fails to compile here rather than getting limits of the wrong width. Compiled as C89, as a kernel project's own sources usually are, the 64-bit limits and constants are absent: C89 has no long long.

Public Types Documentation

int_fast16_t

typedef int16_t int_fast16_t;

int_fast32_t

typedef int32_t int_fast32_t;

int_fast8_t

typedef int8_t int_fast8_t;

int_least16_t

typedef int16_t int_least16_t;

int_least32_t

typedef int32_t int_least32_t;

int_least8_t

typedef int8_t int_least8_t;

intmax_t

typedef long intmax_t;

intptr_t

typedef long intptr_t;

uint_fast16_t

typedef uint16_t uint_fast16_t;

uint_fast32_t

typedef uint32_t uint_fast32_t;

uint_fast8_t

typedef uint8_t uint_fast8_t;

uint_least16_t

typedef uint16_t uint_least16_t;

uint_least32_t

typedef uint32_t uint_least32_t;

uint_least8_t

typedef uint8_t uint_least8_t;

uintmax_t

typedef unsigned long uintmax_t;

uintptr_t

typedef unsigned long uintptr_t;

Public Attributes Documentation

SolidSyslogVxWorks64Compat_PointerIsFourBytes

char SolidSyslogVxWorks64Compat_PointerIsFourBytes[(sizeof(void *)==4U) ? 1 :-1];

SolidSyslogVxWorks64Compat_SizeIsFourBytes

char SolidSyslogVxWorks64Compat_SizeIsFourBytes[(sizeof(size_t)==4U) ? 1 :-1];

Macro Definition Documentation

INT16_C

#define INT16_C (
    value
) `value`

INT16_MAX

#define INT16_MAX `32767`

INT16_MIN

#define INT16_MIN `(-32767 - 1)`

INT32_C

#define INT32_C (
    value
) `value##L`

INT32_MAX

#define INT32_MAX `2147483647L`

INT32_MIN

#define INT32_MIN `(-2147483647L - 1L)`

INT8_C

#define INT8_C (
    value
) `value`

INT8_MAX

#define INT8_MAX `127`

INT8_MIN

#define INT8_MIN `(-127 - 1)`

INTMAX_C

#define INTMAX_C (
    value
) `value##L`

INTMAX_MAX

#define INTMAX_MAX `INTPTR_MAX`

INTMAX_MIN

#define INTMAX_MIN `INTPTR_MIN`

INTPTR_MAX

#define INTPTR_MAX `2147483647L`

INTPTR_MIN

#define INTPTR_MIN `(-2147483647L - 1L)`

INT_FAST16_MAX

#define INT_FAST16_MAX `INT16_MAX`

INT_FAST16_MIN

#define INT_FAST16_MIN `INT16_MIN`

INT_FAST32_MAX

#define INT_FAST32_MAX `INT32_MAX`

INT_FAST32_MIN

#define INT_FAST32_MIN `INT32_MIN`

INT_FAST8_MAX

#define INT_FAST8_MAX `INT8_MAX`

INT_FAST8_MIN

#define INT_FAST8_MIN `INT8_MIN`

INT_LEAST16_MAX

#define INT_LEAST16_MAX `INT16_MAX`

INT_LEAST16_MIN

#define INT_LEAST16_MIN `INT16_MIN`

INT_LEAST32_MAX

#define INT_LEAST32_MAX `INT32_MAX`

INT_LEAST32_MIN

#define INT_LEAST32_MIN `INT32_MIN`

INT_LEAST8_MAX

#define INT_LEAST8_MAX `INT8_MAX`

INT_LEAST8_MIN

#define INT_LEAST8_MIN `INT8_MIN`

PTRDIFF_MAX

#define PTRDIFF_MAX `2147483647`

PTRDIFF_MIN

#define PTRDIFF_MIN `(-2147483647 - 1)`

SIZE_MAX

#define SIZE_MAX `4294967295U`

UINT16_C

#define UINT16_C (
    value
) `value`

UINT16_MAX

#define UINT16_MAX `65535`

UINT32_C

#define UINT32_C (
    value
) `value##UL`

UINT32_MAX

#define UINT32_MAX `4294967295UL`

UINT8_C

#define UINT8_C (
    value
) `value`

UINT8_MAX

#define UINT8_MAX `255`

UINTMAX_C

#define UINTMAX_C (
    value
) `value##UL`

UINTMAX_MAX

#define UINTMAX_MAX `UINTPTR_MAX`

UINTPTR_MAX

#define UINTPTR_MAX `4294967295UL`

UINT_FAST16_MAX

#define UINT_FAST16_MAX `UINT16_MAX`

UINT_FAST32_MAX

#define UINT_FAST32_MAX `UINT32_MAX`

UINT_FAST8_MAX

#define UINT_FAST8_MAX `UINT8_MAX`

UINT_LEAST16_MAX

#define UINT_LEAST16_MAX `UINT16_MAX`

UINT_LEAST32_MAX

#define UINT_LEAST32_MAX `UINT32_MAX`

UINT_LEAST8_MAX

#define UINT_LEAST8_MAX `UINT8_MAX`


The documentation for this class was generated from the following file Platform/VxWorks64/Compat/stdint.h