extern "C" void cygwin_detach_dll (int dll_index);
This function does not have support for all targets. A future release will provide more usage.