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. |
int16 | Integer 16 bits data type. |
int32 | Integer 32 bits data type. |
int8 | Integer 8 bits data type. |
schar | Signed char data type. |
ssize | Signed integer size field large enough to hold a pointer offset. |
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 4096 |
Reasonable size for buffers. | |
#define | ME_CPU_ARM 1 |
Arm. | |
#define | ME_CPU_ITANIUM 2 |
Intel Itanium. | |
#define | ME_CPU_MIPS 5 |
Mips. | |
#define | ME_CPU_PPC 6 |
Power PC. | |
#define | ME_CPU_SH 9 |
SuperH. | |
#define | ME_CPU_SPARC 7 |
Sparc. | |
#define | ME_CPU_TIDSP 8 |
TI DSP. | |
#define | ME_CPU_X64 4 |
AMD64 or EMT64. | |
#define | ME_CPU_X86 3 |
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:
-
const typedef char const typedef char cchar Constant char data type. API Stability:Stable const typedef int const typedef int cint Constant int data type. API Stability:Stable const typedef unsigned char const typedef unsigned char cuchar Unsigned char data type. API Stability:Stable const typedef unsigned short const typedef unsigned short cushort Constant unsigned short data type. API Stability:Stable const typedef void const typedef void cvoid Constant void data type. API Stability:Stable
Functions
Typedefs
Boolean data type.
- API Stability:
- Stable.
- See Also:
Integer 16 bits data type.
- API Stability:
- Stable.
- See Also:
Integer 32 bits data type.
- API Stability:
- Stable.
- See Also:
Integer 8 bits data type.
- API Stability:
- Stable.
- See Also:
Signed file offset data type.
Supports large files greater than 4GB in size on all systems- API Stability:
- Stable.
- See Also:
Signed char data type.
- API Stability:
- Stable.
- See Also:
Argument for sockets.
- API Stability:
- Stable.
- See Also:
Size to hold the length of a socket address.
- API Stability:
- Stable.
- See Also:
Signed integer size field large enough to hold a pointer offset.
- API Stability:
- Stable.
- See Also:
Elapsed time data type.
Stores time in milliseconds from some arbitrary start epoch- API Stability:
- Stable.
- See Also:
Time in milliseconds since Jan 1, 1970.
- API Stability:
- Stable.
- See Also:
Unsigned char data type.
- API Stability:
- Stable.
- See Also:
Unsigned integer (machine dependent bit size) data type.
- API Stability:
- Stable.
- See Also:
Unsigned integer 16 bits data type.
- API Stability:
- Stable.
- See Also:
Unsigned integer 32 bits data type.
- API Stability:
- Stable.
- See Also:
Unsigned integer 8 bits data type.
- API Stability:
- Stable.
- See Also:
Unsigned long (machine dependent bit size) data type.
- API Stability:
- Stable.
- See Also:
Unsigned short data type.
- API Stability:
- Stable.
- See Also:
Windows uses uint for write/read counts (Ugh!).
- API Stability:
- Stable.
- See Also: