X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..2fd3f4e8fd2c2f2c7d149fbea471d8b3fb56f15a:/doc/man/man3/dlclose.3 diff --git a/doc/man/man3/dlclose.3 b/doc/man/man3/dlclose.3 index c966d6a..1200e80 100644 --- a/doc/man/man3/dlclose.3 +++ b/doc/man/man3/dlclose.3 @@ -1,4 +1,4 @@ -.Dd Sept 25, 2004 +.Dd Nov 6, 2006 .Dt DLCLOSE 3 .Sh NAME .Nm dlclose @@ -19,6 +19,13 @@ Just before removing a dynamic library or bundle in this way, any termination routines in it are called. .Fa handle is the value returned by a previous call to dlopen. +.Pp +Prior to Mac OS X 10.5, only bundles could be unloaded. Starting in Mac OS X 10.5, +dynamic libraries may also be unloaded. There are a couple of cases in which a +dynamic library will never be unloaded: 1) the main executable links against it, +2) An API that does not supoort unloading (e.g. NSAddImage()) was used to load +it or some other dynnamic library that depends on it, 3) the dynamic library +is in dyld's shared cache. .Sh RETURN VALUES If .Fn dlclose @@ -32,7 +39,5 @@ retrived with .Xr dlsym 3 .Xr dlerror 3 .Xr dyld 3 -.Xr NSModule 3 -.Xr NSObjectFileImage 3 .Xr ld 1 .Xr cc 1