NAME
ddllooppeennpprreefflliigghhtt - preflight the load of a dynamic library or bundle
SYNOPSIS
##iinncclluuddee <
bool ddllooppeennpprreefflliigghhtt(const char* path);> DESCRIPTION
ddllooppeennpprreefflliigghhtt() examines the mach-o file specified by path. It checks
if the file and libraries it depends on are all compatible with the cur-
rent process. That is, they contain the correct architecture and are not otherwise ABI incompatible. ddllooppeennpprreefflliigghhtt() was first available in Mac OS X 10.5. SSEEAARRCCHHIINNGG ddllooppeennpprreefflliigghhtt() uses the same steps as ddllooppeenn() to find a compatiblemach-o file.
RETURN VALUES
ddllooppeennpprreefflliigghhtt() 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 ddlleerrrroorr().SEE ALSO
dlopen(3) dlerror(3) BSD April 17, 2006 BSD