about summary refs log tree commit diff
path: root/include/dlfcn.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-03 08:26:04 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-03 08:26:04 +0200
commitd8cce17d2a8f572f26ed483246a505f45579ea0e (patch)
treeb47794d2d5ddd5e9fc0cd8cbec2c005ea0a19381 /include/dlfcn.h
parentc9ff9cf66a7ae0617a2f39e752ca19c88c58f5b6 (diff)
downloadglibc-d8cce17d2a8f572f26ed483246a505f45579ea0e.tar.gz
glibc-d8cce17d2a8f572f26ed483246a505f45579ea0e.tar.xz
glibc-d8cce17d2a8f572f26ed483246a505f45579ea0e.zip
dlfcn: Move dlclose into libc
The symbol was moved using scripts/move-symbol-to-libc.py.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'include/dlfcn.h')
-rw-r--r--include/dlfcn.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h
index a92b2aefb8..352eb79500 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -126,12 +126,15 @@ struct dlfcn_hook
 extern struct dlfcn_hook *_dlfcn_hook;
 libc_hidden_proto (_dlfcn_hook)
 
+/* Note: These prototypes are for initializing _dflcn_hook in static
+   libraries.  Internal calls in glibc should use the __libc_dl*
+   functions defined in elf/dl-libc.c instead.  */
+
 extern void *__dlopen (const char *file, int mode DL_CALLER_DECL)
      attribute_hidden;
 extern void *__dlmopen (Lmid_t nsid, const char *file, int mode DL_CALLER_DECL)
      attribute_hidden;
-extern int __dlclose (void *handle)
-     attribute_hidden;
+extern int __dlclose (void *handle);
 extern void *__dlsym (void *handle, const char *name DL_CALLER_DECL)
      attribute_hidden;
 extern void *__dlvsym (void *handle, const char *name, const char *version