dlopen 常量


【dlopen constants】

如果操作系统支持,以下常量会在 os.constants.dlopen 中导出。详细信息请参见 dlopen(3)

【If available on the operating system, the following constants are exported in os.constants.dlopen. See dlopen(3) for detailed information.】

常量 描述
RTLD_LAZY 执行延迟绑定。Node.js 默认设置此标志。
RTLD_NOW 在 dlopen(3) 返回之前解析库中所有未定义的符号。
RTLD_GLOBAL 库定义的符号将可用于随后加载的库的符号解析。
RTLD_LOCAL RTLD_GLOBAL 相反。如果未指定任何标志,这是默认行为。
RTLD_DEEPBIND 让一个自包含库优先使用其自身的符号,而不是之前加载的库中的符号。