musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/dlfcn.h
AgeCommit message (Collapse)AuthorLines
2019年11月02日add time64 redirect for, and redirecting implementation of, dlsym Rich Felker-0/+4
if symbols are being redirected to provide the new time64 ABI, dlsym must perform matching redirections; otherwise, it would poke a hole in the magic and return pointers to functions that are not safe to call from a caller using time64 types. rather than duplicating a table of redirections, use the time64 symbols present in libc's symbol table to derive the decision for whether a particular symbol needs to be redirected.
2014年01月06日const-qualify the address argument to dladdr Rich Felker-1/+1
this agrees with implementation practice on glibc and BSD systems, and is the const-correct way to do things; it eliminates warnings from passing pointers to const. the prototype without const came from seemingly erroneous man pages.
2013年06月29日implement minimal dlinfo function Rich Felker-0/+3
2013年01月23日add RTLD_NODELETE flag for dlopen Rich Felker-0/+1
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.
2013年01月23日add support for RTLD_NOLOAD to dlopen Rich Felker-0/+1
based on patch by Pierre Carrier <pierre@gcarrier.fr> that just added the flag constant, but with minimal additional code so that it actually works as documented. this is a nonstandard option but some major software (reportedly, Firefox) uses it and it was easy to add anyway.
2012年09月07日default features: make musl usable without feature test macros Rich Felker-5/+1
the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
2012年09月06日dladdr should be available under _BSD_SOURCE as well as _GNU_SOURCE Rich Felker-1/+1
2012年09月06日use restrict everywhere it's required by c99 and/or posix 2008 Rich Felker-1/+7
to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict.
2012年08月26日dladdr support for dynamic linker (nonstandard extension) Rich Felker-0/+10
based on patches submitted by boris brezillon. this commit also fixes the issue whereby the main application and libc don't have the address ranges of their mappings stored, which was theoretically a problem for RTLD_NEXT support in dlsym; it didn't actually matter because libc never calls dlsym, and it seemed to be doing the right thing (by chance) for symbols in the main program as well.
2011年06月27日further fixup dlfcn.h Rich Felker-4/+10
2011年06月27日match LSB/glibc constants for dynamic loader Rich Felker-4/+4
2011年02月12日initial check-in, version 0.5.0 v0.5.0 Rich Felker-0/+19
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月03日 21:16:57 +0000

AltStyle によって変換されたページ (->オリジナル) /