_IO_LINK_REPLY_PAYLOAD()

QNX SDP8.0C Library ReferenceAPIDeveloper

Generate a pointer to the payload that follows the header represented by the link_reply member of an I/O message object

Synopsis:

#include <sys/iomsg.h>

void* _IO_LINK_REPLY_PAYLOAD(msg);

Arguments:

msg
A pointer to an I/O message object that defines a link_reply member.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The _IO_LINK_REPLY_PAYLOAD() macro generates a pointer to the variable-length payload that follows the header represented by the link_reply member of the given I/O message object.

When writing message handler functions for resource managers, the _IO_*_PAYLOAD() macros should be used to obtain a pointer to the message payload. This reduces the likelihood of a false positive buffer overflow failure when compiling with the _FORTIFY_SOURCE feature enabled at a level greater than 1. The _IO_*_PAYLOAD() macros are implemented using the more general-purpose _PAYLOAD_OF() macro.

Returns:

A pointer to the variable-length payload that follows the link_reply member of msg.

Classification:

QNX OS

Safety:
Cancellation pointYes
Signal handlerYes
ThreadYes
Page updated: