SETIOV(), SETIOV_CONST()
QNX SDP8.0C Library ReferenceAPIDeveloper
Fill in the fields of an iov_t structure
Synopsis:
#include <sys/types.h>
#include <unistd.h>
void SETIOV( iov_t *msg,
void *addr,
size_t len );
void SETIOV_CONST( iov_t *msg,
const void *addr,
size_t len );
Arguments:
- msg
- A pointer to the iov_t structure that you want to set.
- addr
- The value you want to use for the structure's iov_base or iov_base_const member.
- len
- The value you want to use for the structure's iov_len member.
Description:
The SETIOV() macro fills in the fields of an iov_t message structure. The iov_t structure consists of the following fields:
typedef struct iovec {
union {
void *iov_base;
const void *iov_base_const;
};
_Sizet iov_len;
} iov_t;
Note:
SETIOV() doesn't make a copy of the data that addr
points to; it just copies the pointer.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | Yes |
Thread | Yes |
Page updated: