release a file descriptor
#include <sys/fd.h> int qnx_fd_detach( int fd );
The qnx_fd_detach() function releases a file descriptor, fd. If a virtual circuit is attached to the file descriptor, it's released, provided that it isn't shared, or, if it is shared, its usage count goes to zero.
A meaningful example is beyond the scope of the library documentation. Contact QNX Software Systems Ltd. for availability of a technical note on resource managers.
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |
errno, qnx_fd_attach(), qnx_fd_query()