OSDEP API
Extensions
Osdep | Operating system dependent layer that provides a portable cross-platform abstraction layer. |
Functions
Typedefs
Offset | Signed file offset data type. |
Socket | Argument for sockets. |
Socklen | Size to hold the length of a socket address. |
Ticks | Elapsed time data type. |
Time | Time in milliseconds since Jan 1, 1970. |
bool | Boolean data type. |
cchar | Constant char data type. |
cint | Constant int data type. |
cuchar | Unsigned char data type. |
cushort | Constant unsigned short data type. |
cvoid | Constant void data type. |
int16 | Integer 16 bits data type. |
int32 | Integer 32 bits data type. |
int8 | Integer 8 bits data type. |
schar | Signed char data type. |
size_t | Unsigned integral type. |
ssize | Signed integer size field large enough to hold a pointer offset. |
time_t | Unsigned time type. |
uchar | Unsigned char data type. |
uint | Unsigned integer (machine dependent bit size) data type. |
uint16 | Unsigned integer 16 bits data type. |
uint32 | Unsigned integer 32 bits data type. |
uint8 | Unsigned integer 8 bits data type. |
ulong | Unsigned long (machine dependent bit size) data type. |
ushort | Unsigned short data type. |
wsize | Windows uses uint for write/read counts (Ugh!). |
Defines
#define | ME_BIG_ENDIAN 2 |
Big endian byte ordering. | |
#define | ME_BUFSIZE 8192 |
Reasonable size for buffers. | |
#define | ME_CPU_ARM 1 |
Arm. | |
#define | ME_CPU_ARM64 2 |
Arm64. | |
#define | ME_CPU_ITANIUM 3 |
Intel Itanium. | |
#define | ME_CPU_MIPS 6 |
Mips. | |
#define | ME_CPU_PPC 7 |
Power PC. | |
#define | ME_CPU_PPC64 8 |
Power PC 64. | |
#define | ME_CPU_RISCV 12 |
RiscV. | |
#define | ME_CPU_RISCV64 13 |
RiscV64. | |
#define | ME_CPU_SH 11 |
SuperH. | |
#define | ME_CPU_SPARC 9 |
Sparc. | |
#define | ME_CPU_TIDSP 10 |
TI DSP. | |
#define | ME_CPU_X64 5 |
AMD64 or EMT64. | |
#define | ME_CPU_X86 4 |
X86. | |
#define | ME_DEBUG 0 |
Default to a debug build. | |
#define | ME_LITTLE_ENDIAN 1 |
Little endian byte ordering. | |
#define | ME_MAX_ARGC 32 |
Maximum number of command line args if using MAIN(). | |
#define | ME_MAX_FNAME 256 |
Reasonable filename size. | |
#define | ME_MAX_PATH 1024 |
Reasonable filename size. | |
#define | ME_STACK_SIZE (128 * 1024) |
Default thread stack size (0 means use system default). | |
#define | TPS 1000 |
Time/Ticks units per second (milliseconds). | |
#define | TPS 1000 |
Time/Ticks units per second (milliseconds). |
Osdep
Operating system dependent layer that provides a portable cross-platform abstraction layer.
- API Stability:
- Evolving.
- Fields:
-
Functions
Typedefs
Unsigned integral type.
Equivalent in size to void*Unsigned time type.
Time in seconds since Jan 1, 1970Boolean data type.
- API Stability:
- Stable.
Constant char data type.
- API Stability:
- Stable.
Constant int data type.
- API Stability:
- Stable.
Unsigned char data type.
- API Stability:
- Stable.
Constant unsigned short data type.
- API Stability:
- Stable.
Constant void data type.
- API Stability:
- Stable.
Integer 16 bits data type.
- API Stability:
- Stable.
Integer 32 bits data type.
- API Stability:
- Stable.
Integer 8 bits data type.
- API Stability:
- Stable.
Signed file offset data type.
Supports large files greater than 4GB in size on all systems- API Stability:
- Stable.
Signed char data type.
- API Stability:
- Stable.
Argument for sockets.
- API Stability:
- Stable.
Size to hold the length of a socket address.
- API Stability:
- Stable.
Signed integer size field large enough to hold a pointer offset.
- API Stability:
- Stable.
Elapsed time data type.
Stores time in milliseconds from some arbitrary start epoch- API Stability:
- Stable.
Time in milliseconds since Jan 1, 1970.
- API Stability:
- Stable.
Unsigned char data type.
- API Stability:
- Stable.
Unsigned integer (machine dependent bit size) data type.
- API Stability:
- Stable.
Unsigned integer 16 bits data type.
- API Stability:
- Stable.
Unsigned integer 32 bits data type.
- API Stability:
- Stable.
Unsigned integer 8 bits data type.
- API Stability:
- Stable.
Unsigned long (machine dependent bit size) data type.
- API Stability:
- Stable.
Unsigned short data type.
- API Stability:
- Stable.
Windows uses uint for write/read counts (Ugh!).
- API Stability:
- Stable.