Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-08-16 18:44:26 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-08-16 18:44:26 +0400
commit6bc64eac26739db38c9ecc99ab26599bd4b4310e (patch)
treef90d5e7fa987e46c3f43a831913048ddd5099730 /winsup/cygwin/include/dlfcn.h
parent56c387b1b32a36204de6071cc4d192561bb359ed (diff)
* autoload.cc (GetModuleHandleExW): Define.
* dlfcn.cc: Throughout mark exported symbols as extern "C". (dlopen): Unignore flags argument. Define ret to NULL. Fix typo in comment. Support Glibc flags RTLD_NOLOAD and RTLD_NODELETE. * include/dlfcn.h: Clean up comments. (RTLD_NODELETE): Define. (RTLD_NOLOAD): Define. (RTLD_DEEPBIND): Define.
Diffstat (limited to 'winsup/cygwin/include/dlfcn.h')
-rw-r--r--winsup/cygwin/include/dlfcn.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/winsup/cygwin/include/dlfcn.h b/winsup/cygwin/include/dlfcn.h
index 56a7fb4cb..9ffbdb388 100644
--- a/winsup/cygwin/include/dlfcn.h
+++ b/winsup/cygwin/include/dlfcn.h
@@ -1,6 +1,6 @@
/* dlfcn.h
- Copyright 1998, 1999, 2000, 2001, 2010 Red Hat, Inc.
+ Copyright 1998, 1999, 2000, 2001, 2010, 2011 Red Hat, Inc.
This file is part of Cygwin.
@@ -31,10 +31,18 @@ extern void dlfork (int);
#define RTLD_DEFAULT NULL
/* valid values for mode argument to dlopen */
-#define RTLD_LOCAL 0 /* symbols in this dlopen'ed obj are not visible to other dlopen'ed objs */
-#define RTLD_LAZY 1 /* lazy function call binding */
-#define RTLD_NOW 2 /* immediate function call binding */
-#define RTLD_GLOBAL 4 /* symbols in this dlopen'ed obj are visible to other dlopen'ed objs */
+#define RTLD_LOCAL 0 /* Symbols in this dlopen'ed obj are not */
+ /* visible to other dlopen'ed objs. */
+#define RTLD_LAZY 1 /* Lazy function call binding. */
+#define RTLD_NOW 2 /* Immediate function call binding. */
+#define RTLD_GLOBAL 4 /* Symbols in this dlopen'ed obj are visible */
+ /* to other dlopen'ed objs. */
+/* Non-standard GLIBC extensions */
+#define RTLD_NODELETE 8 /* Don't unload lib in dlcose. */
+#define RTLD_NOLOAD 16 /* Don't load lib, just return handle if lib */
+ /* is already loaded, NULL otherwise. */
+#define RTLD_DEEPBIND 32 /* Place lookup scope so that this lib is */
+ /* preferred over global scope. */
#ifdef __cplusplus
}