#include <dlfnc.h>int dlclose(void *handle);
Delete the reference to the shared library referenced by handle. When the reference count reaches zero, the shared library is removed the OSKit kernel's address space, and the descriptor becomes invalid. Subsequent attempts to use the descriptor will result in undefined behavior. When the final reference to a shared library is deleted, the library's finalization function _fini(), if it exists, is called by the linker.
- handle
- The descriptor of the shared library to delete.
Returns 0 on success.