Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/m/msginfo.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/m/msginfo.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/m/msginfo.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/m/msginfo.html on line 8
Get additional information about a message
#include <sys/neutrino.h>
int MsgInfo( int rcvid,
struct _msg_info* info );
int MsgInfo_r( int rcvid,
struct _msg_info* info );
- rcvid
- The return value from MsgReceive*().
- info
- A pointer to a
_msg_info
structure where the function
can store information about the message.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The MsgInfo() and MsgInfo_r()
kernel calls get additional information about a received message and store
it in the specified _msg_info structure.
These functions are identical,
except in the way they indicate errors. See the Returns section for details.
|
The info->msglen and info->srcmsglen members are
valid only until the next call to MsgRead*() or
MsgWrite*(). |
This call doesn't block.
The only difference between these functions is the way they indicate errors:
- MsgInfo()
- If an error occurs, -1 is returned and
errno
is set. Any other value returned
indicates success.
- MsgInfo_r()
- EOK is returned on success. This function does NOT set errno.
If an error occurs, any value in the Errors section may be returned.
- EFAULT
- A fault occurred when the kernel tried to access the buffers provided.
- ESRCH
- The thread indicated by rcvid doesn't exist.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
ChannelCreate(),
_msg_info,
MsgRead(),
MsgReadv(),
MsgReceive(),
MsgReceivev(),
MsgSend(),
MsgSendv(),
Message Passing
chapter of Getting Started with QNX Neutrino
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/m/msginfo.html on line 185
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/m/msginfo.html on line 185