#include <pthread.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/stat.h>#include <stdarg.h>#include <limits.h>#include <mach-o/dyld.h>#include <mach-o/nlist.h>#include <mach-o/getsect.h>#include <asterisk/dlfcn-compat.h>Include dependency graph for dlfcn.c:

Go to the source code of this file.
Data Structures | |
| struct | dlthread |
| struct | dlstatus |
Defines | |
| #define | __BSD_VISIBLE 1 |
| #define | dl_restrict __restrict |
| #define | LC_LOAD_WEAK_DYLIB (0x18 | LC_REQ_DYLD) |
| #define | LC_REQ_DYLD 0x80000000 |
| #define | NSADDIMAGE_OPTION_RETURN_ONLY_IF_LOADED 0x4 |
| #define | NSADDIMAGE_OPTION_RETURN_ON_ERROR 0x1 |
| #define | NSLOOKUPSYMBOLINIMAGE_OPTION_BIND 0x0 |
| #define | NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR 0x4 |
| #define | ERR_STR_LEN 251 |
| #define | MAX_SEARCH_PATHS 32 |
| #define | MAGIC_DYLIB_OFI ((NSObjectFileImage) 'DYOF') |
| #define | MAGIC_DYLIB_MOD ((NSModule) 'DYMO') |
| #define | DL_IN_LIST 0x01 |
| #define | RTLD_SELF ((void *) -3) |
Functions | |
| void * | dlopen (const char *path, int mode) |
| void * | dlsym (void *dl_restrict handle, const char *dl_restrict symbol) |
| int | dlclose (void *handle) |
| const char * | dlerror (void) |
| int | dladdr (const void *dl_restrict p, Dl_info *dl_restrict info) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 98 of file dlfcn.c. Referenced by dlclose(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 1166 of file dlfcn.c.
|
|
|
Definition at line 1040 of file dlfcn.c. References dlstatus::lib, MAGIC_DYLIB_MOD, dlstatus::mode, dlstatus::module, dlstatus::refs, and RTLD_NODELETE. Referenced by ast_load_resource(), and ast_unload_resource().
|
|
|
Definition at line 1118 of file dlfcn.c. Referenced by ast_load_resource().
|
|
||||||||||||
|
Definition at line 896 of file dlfcn.c. References dlstatus::refs, RTLD_LAZY, RTLD_NOLOAD, and RTLD_NOW. Referenced by ast_load_resource().
|
|
||||||||||||
|
Definition at line 944 of file dlfcn.c. Referenced by ast_load_resource().
|
1.3.7