![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Modify the flags associated with a connection
#include <sys/neutrino.h>
int ConnectFlags( pid_t pid,
int coid,
unsigned mask,
unsigned bits );
int ConnectFlags_r( pid_t pid,
int coid,
unsigned mask,
unsigned bits );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The ConnectFlags() and ConnectFlags_r() kernel calls modify flags associated with the specified connection. These kernel calls don't block.
These functions are identical except in the way they indicate errors. See the Returns section for details.
You need to initialize the bits that correspond to the flag in both the mask and bits arguments:
The only difference between these functions is the way they indicate errors:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
![]() |
![]() |
![]() |
![]() |