Standard types and their utilities
More...
|
file | string.h |
| Variants on standard block memory copy/set functions.
|
|
file | _types.h |
| Internal typedefs.
|
|
file | types.h |
| Common integer types.
|
|
|
void * | memcpy4 (void *dest, const void *src, size_t count) |
| Copy a block of memory, 4 bytes at a time.
|
|
void * | memset4 (void *s, unsigned long c, size_t count) |
| Set a block of memory, 4 bytes at a time.
|
|
void * | memcpy2 (void *dest, const void *src, size_t count) |
| Copy a block of memory, 2 bytes at a time.
|
|
void * | memset2 (void *s, unsigned short c, size_t count) |
| Set a block of memory, 2 bytes at a time.
|
|
Standard types and their utilities
◆ _CLOCK_T_
#define _CLOCK_T_ unsigned long /* clock() */ |
◆ _CLOCKID_T_
#define _CLOCKID_T_ unsigned long |
◆ _TIME_T_
◆ _TIMER_T_
#define _TIMER_T_ unsigned long |
◆ AT_EACCESS
Check access using effective user and group ID.
◆ AT_REMOVEDIR
Remove directory instead of file.
◆ AT_SYMLINK_FOLLOW
#define AT_SYMLINK_FOLLOW 4 |
◆ AT_SYMLINK_NOFOLLOW
#define AT_SYMLINK_NOFOLLOW 2 |
◆ BIG_ENDIAN
◆ BYTE_ORDER
Endianness definition – Little Endian.
◆ IOV_MAX
Maximum length of an iovec, in elements.
◆ LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234 |
Little Endian test macro.
◆ PDP_ENDIAN
◆ __blkcnt_t
◆ __blksize_t
◆ __clock_t
◆ __clockid_t
◆ __daddr_t
◆ __dev_t
◆ __fsblkcnt_t
◆ __fsfilcnt_t
◆ __gid_t
◆ __id_t
◆ __ino_t
◆ __key_t
◆ __mode_t
◆ __nlink_t
◆ __off_t
◆ __pid_t
◆ __suseconds_t
◆ __time_t
◆ __timer_t
◆ __uid_t
◆ __useconds_t
◆ __va_list
◆ _flock_t
typedef __newlib_recursive_lock_t _flock_t |
◆ _fpos_t
◆ _iconv_t
◆ _off64_t
◆ _off_t
◆ _ssize_t
◆ handle_t
◆ int16
◆ int32
◆ int64
◆ int8
◆ prio_t
◆ ptr_t
◆ tid_t
◆ u_char
◆ u_int
typedef unsigned int u_int |
BSD-style unsigned integer.
◆ u_long
◆ u_short
BSD-style unsigned short.
◆ uint
typedef unsigned int uint |
BSD-style unsigned integer.
◆ uint16
◆ uint32
◆ uint64
typedef unsigned long long uint64 |
◆ uint8
typedef unsigned char uint8 |
◆ ushort
BSD-style unsigned short.
◆ vint16
16-bit volatile signed type
◆ vint32
32-bit volatile signed type
◆ vint64
64-bit volatile signed type
◆ vint8
8-bit volatile signed type
◆ vuint16
16-bit volatile unsigned type
◆ vuint32
32-bit volatile unsigned type
◆ vuint64
64-bit volatile unsigned type
◆ vuint8
8-bit volatile unsigned type
◆ memcpy2()
void * memcpy2 |
( |
void * | dest, |
|
|
const void * | src, |
|
|
size_t | count ) |
Copy a block of memory, 2 bytes at a time.
This function is identical to memcpy(), except it copies 2 bytes at a time.
- Parameters
-
dest | The destination of the copy. |
src | The source to copy. |
count | The number of bytes to copy. This should be divisible by 2 (and will be rounded down if not). |
- Returns
- The original value of dest.
◆ memcpy4()
void * memcpy4 |
( |
void * | dest, |
|
|
const void * | src, |
|
|
size_t | count ) |
Copy a block of memory, 4 bytes at a time.
This function is identical to memcpy(), except it copies 4 bytes at a time.
- Parameters
-
dest | The destination of the copy. |
src | The source to copy. |
count | The number of bytes to copy. This should be divisible by 4 (and will be rounded down if not). |
- Returns
- The original value of dest.
◆ memset2()
void * memset2 |
( |
void * | s, |
|
|
unsigned short | c, |
|
|
size_t | count ) |
Set a block of memory, 2 bytes at a time.
This function is identical to memset(), except it sets 2 bytes at a time. This implies that all 16-bits of c are used, not just the first 8 as in memset().
- Parameters
-
s | The destination of the set. |
c | The value to set to. |
count | The number of bytes to set. This should be divisible by 2 (and will be rounded down if not). |
- Returns
- The original value of dest.
◆ memset4()
void * memset4 |
( |
void * | s, |
|
|
unsigned long | c, |
|
|
size_t | count ) |
Set a block of memory, 4 bytes at a time.
This function is identical to memset(), except it sets 4 bytes at a time. This implies that all 32-bits of c are used, not just the first 8 as in memset().
- Parameters
-
s | The destination of the set. |
c | The value to set to. |
count | The number of bytes to set. This should be divisible by 4 (and will be rounded down if not). |
- Returns
- The original value of dest.