1 Star 0 Fork 4.9K

罗小黑 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dlfcn-h.md 9.42 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

dlfcn.h

Overview

Related Modules:

LINKER

Description:

Provides functions and structures related to linking and loading.

This file provides functions and structures for opening and closing a dynamic-link library (DLL) and searching for the specified symbols based on the DLL.

Since:

1.0

Version:

1.0

Summary

Macros

Macro Name and Value

Description

RTLD_LAZY   1

All undefined symbols in the shared object are not resolved before dlopen() returns.

RTLD_NOW   2

All undefined symbols in the shared object are resolved before dlopen() returns.

RTLD_NOLOAD   4

The shared object is not loaded. It can be used to test whether the object resides in the memory.

RTLD_NODELETE   4096

The shared object is not deleted during dlclose().

RTLD_GLOBAL   256

The symbols defined by the loaded shared object can be resolved by other shared objects opened later.

RTLD_LOCAL   0

The symbols defined by the loaded shared object cannot be resolved by other shared objects opened later.

RTLD_NEXT   ((void *)-1)

The next match of the required symbol is searched in the search order after the current object.

RTLD_DEFAULT   ((void *)0)

The first match of the required symbol is searched in the default shared object search order. The search scope includes the global symbols of the program and its dependencies, and the global symbols loaded by the dlopen() function.

RTLD_DI_LINKMAP   2

The pointer to the link_map structure of the specified handle.

Functions

Function Name

Description

dlclose (void *handle)

int 

Closes the DLL of a specified handle.

dlerror (void)

char * 

Obtains the latest error that occurred during a DLL function execution failure.

dlopen (const char *filename, int flags)

void * 

Opens a DLL and returns its handle.

dlsym (void *handle, const char *symbol)

void * 

Searches for a specified symbol based on the DLL handle.

1
https://gitee.com/lawguiren/docs.git
git@gitee.com:lawguiren/docs.git
lawguiren
docs
docs
master

搜索帮助