From d8cce17d2a8f572f26ed483246a505f45579ea0e Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 3 Jun 2021 08:26:04 +0200 Subject: dlfcn: Move dlclose into libc The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella --- include/dlfcn.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/dlfcn.h b/include/dlfcn.h index a92b2ae..352eb79 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 -- cgit v1.1