111 int main(
int argc,
char *argv[])
114 fprintf(stderr,
"Usage: %s test_id\n", argv[0]);
118 switch (argv[1][0]) {
138 fprintf(stderr,
"Invalid test_id: %s \n", argv[1]);
int main(int argc, char *argv[])
unsigned char hipc_msg[HIPC_MSG_ALLOCSIZE]
static void test_msg_basics(void)
size_t hipcMsgTotalSize(const hipc_msg msg)
Returns total size of a HIPC message, which is the header size plus the body size.
static void test_hipcMsgOffset(void)
static void test_hipcMsgStruno(void)
unsigned char hipcMsgOffset(const hipc_msg msg)
Returns offset of a HIPC message.
static void test_hipcMsgBdyPtr(void)
unsigned char hipcMsgBdySize(const hipc_msg msg)
Returns body size of a HIPC message.
static void test_msg_sizes(void)
#define HIPC_MSG_ALLOCSIZE
static void test_hipcMsgType(void)
unsigned char hipcMsgStruno(const hipc_msg msg)
Returns structure number of a HIPC message.
unsigned char hipcMsgType(const hipc_msg msg)
Returns type of a HIPC message.
unsigned char hipcMsgRngsize(const hipc_msg msg)
Returns range size of a HIPC message.
const void * hipcMsgBdyPtr(const hipc_msg msg)
Returns a pointer to a body of a HIPC message.