ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



DLOPEN_PREFLIGHT(3)      BSD Library Functions Manual      DLOPEN_PREFLIGHT(3)

NAME
     dlopen_preflight -- preflight the load of a dynamic library or bundle

SYNOPSIS
     #include <dlfcn.h>

     bool
     dlopen_preflight(const char* path);

DESCRIPTION
     dlopen_preflight() examines the mach-o file specified by path.  It checks if the file and libraries it
     depends on are all compatible with the current process.  That is, they contain the correct architecture
     and are not otherwise ABI incompatible.

     dlopen_preflight() was first available in Mac OS X 10.5.

SEARCHING
     dlopen_preflight() uses the same steps as dlopen() to find a compatible mach-o file.

RETURN VALUES
     dlopen_preflight() returns true on if the mach-o file is compatible.  If the file is not compatible, it
     returns false and sets an error string that can be examined with dlerror().

SEE ALSO
     dlopen(3) dlerror(3)

BSD                             April 17, 2006                             BSD

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.