6 .Nd preflight the load of a dynamic library or bundle
10 .Fn dlopen_preflight "const char* path"
13 examines the mach-o file specified by
15 It checks if the file and libraries it depends on are all compatible with the current process.
16 That is, they contain the correct architecture and are not otherwise ABI incompatible.
19 was created for the PowerPC to Intel transition for use by apps with plugins that the user chooses to load.
20 The app could use dlopen_preflight() to show only loadable plugins to the user (such as in a menu).
22 This is potentially an expensive call because it may internally do the same as dlopen/dlclose. Only
23 use dlopen_preflight() if you need to show the user a list of potentially loadable plugins.
26 was first available in Mac OS X 10.5.
29 uses the same steps as
31 to find a compatible mach-o file.
34 returns true on if the mach-o file is compatible. If the file is not compatible, it returns false
35 and sets an error string that can be examined with