瀏覽代碼

add RTLD_NODELETE flag for dlopen

this is a trivial no-op, because dlclose never deletes libraries. thus
we might as well have it in the header in case some application wants
it, since we're already providing it anyway.
Rich Felker 12 年之前
父節點
當前提交
55ddbc3e5d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/dlfcn.h

+ 1 - 0
include/dlfcn.h

@@ -10,6 +10,7 @@ extern "C" {
 #define RTLD_LAZY   1
 #define RTLD_NOW    2
 #define RTLD_NOLOAD 4
+#define RTLD_NODELETE 4096
 #define RTLD_GLOBAL 256
 #define RTLD_LOCAL  0