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 使自包含库优先使用自己的符号而不是来自先前加载的库的符号。