Free all locks allocated for the client process
#include <sys/iofunc.h> int iofunc_close_dup( resmgr_context_t* ctp, io_close_t* msg, iofunc_ocb_t* ocb, iofunc_attr_t* attr );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The iofunc_close_dup() helper function handles a _IO_CLOSE message. This function frees all locks allocated for the client process on the file descriptor and performs any POSIX-related cleanup required when a duplicated ocb is detached.
The io_close_t structure holds the _IO_CLOSE message received by the resource manager:
struct _io_close { uint16_t type; uint16_t combine_len; }; typedef union { struct _io_close i; } io_close_t;
The I/O message structures are unions of an input message (coming to the resource manager) and an output or reply message (going back to the client). In this case, there's only an input message, i.
The i member is a structure of type _io_close that contains the following members:
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
iofunc_close_dup_default(), iofunc_close_ocb()
Resource Managers chapter of Getting Started with QNX Neutrino