summaryrefslogtreecommitdiffstats
path: root/include/dlfcn.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement fdlopen(3), an rtld interface to load shared object by filekib2012-01-071-0/+1
| | | | | | | | descriptor. Requested and tested by: des (previous version) Reviewed by: des, kan (previous version) MFC after: 2 weeks
* - Remove const'ness from dlerror(3) prototype, for consistency with POSIX.gahr2010-03-241-2/+1
| | | | | Approved by: cognet MFC after: 1 week
* Remove the Berkeley clause 3's.imp2010-02-161-5/+1
| | | | Add a few $FreeBSD$
* Implement RTLD_NOLOAD flag for dlopen(3).kib2009-07-171-0/+1
| | | | | | Requested and tested by: jkim Reviewed by: kan Approved by: re (kensmith)
* Implement support for RTLD_NODELETE flag for dlopen() and -z nodeletekib2009-03-301-0/+1
| | | | | | | static linker option. Do it by incrementing reference count on the loaded object and its dependencies. Reviewed by: davidxu, kan
* Implement ELF symbol versioning using GNU semantics. This code aimskan2005-12-181-0/+2
| | | | | | | | | to be compatible with symbol versioning support as implemented by GNU libc and documented by http://people.redhat.com/~drepper/symbol-versioning and LSB 3.0. Implement dlvsym() function to allow lookups for a specific version of a given symbol.
* Implement dlinfo() function.kan2003-02-131-3/+34
| | | | | | | | | | Introdice RTLD_SELF special handle and properly process it within dlsym() and dlinfo() functions. The intention is to improve our compatibility with Solaris and to make a Java port easier. Partially submitted by: phantom
* Conditionalize some objects to match the functions that they are usedmike2002-09-111-2/+5
| | | | with. Enable `restrict' type-qualifier.
* Fix some style bugs:mike2002-09-101-30/+32
| | | | | | o Space used instead of a tab after `#define' and `typedef'. o Sentences not ended with a period. o Unaligned function names and other spacing issues.
* Since POSIX gives us plenary authority to define _t types, changewollman2002-05-291-2/+2
| | | | | | | __dlfunc_t to dlfunc_t to match what I have proposed to the Austin Group. (This also makes it easier for applications to store these values before they decide what to do with them, e.g., in a wrapper function.)
* Reorganize dlfcn.h slightly to separate out XSI and BSD interfaces.wollman2002-05-291-3/+23
| | | | | | | | Add new dlfunc() interface, which is a version of dlsym() with a return type that can be cast to a function pointer without turning your computer into a frog. Reviewed by: freebsd-standards
* Breath deep and take __P out of the system include files.imp2002-03-231-12/+12
| | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
* Allow ldd(1) be used on shared libraries in addition to executables.sobomax2002-02-041-0/+1
|
* Add a definition for RTLD_DEFAULT.jdp2000-09-191-4/+3
|
* Add a #define for RTLD_LOCAL as required by the Single Unixjdp2000-01-291-0/+1
| | | | Specification.
* Remove the comment warning that the dllockinit() interface mightjdp2000-01-091-1/+0
| | | | | change. I have decided that the interface is general enough to last.
* Work around an assert failure in the dynamic linker's default threadjdp1999-12-281-0/+1
| | | | | | | | | | | | | | | | locking functions. If an application loads a shared object with dlopen() and the shared object has an init function which requires lazy binding, then _rtld_bind is called when the thread is already inside the dynamic linker. This leads to a recursive acquisition of the lock, which I was not expecting -- hence the assert failure. This work-around makes the default locking functions handle recursive locking. It is NOT the correct fix -- that should be implemented at the generic locking level rather than in the default locking functions. I will implement the correct fix in a future commit. Since the dllockinit() interface will likely need to change, warn about that in both the man page and the header file.
* Add a new function dllockinit() for registering thread lockingjdp1999-12-271-0/+7
| | | | | | | | | | | | | | | | | | | functions to be used by the dynamic linker. This can be called by threads packages at start-up time. I will add the call to libc_r soon. Also add a default locking method that is used up until dllockinit() is called. The default method works by blocking SIGVTALRM, SIGPROF, and SIGALRM in critical sections. It is based on the observation that most user-space threads packages implement thread preemption with one of these signals (usually SIGVTALRM). The dynamic linker has never been reentrant, but it became less reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c". Starting with that revision, multiple threads each doing lazy binding could interfere with each other. The usual symptom was that a symbol was falsely reported as undefined at start-up time. It was rare but not unseen. This commit fixes it.
* Add definition for RTLD_GLOBAL, which is soon to be supported.jdp1999-08-301-1/+3
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Back out my change from 6 April PDT that added a new dlversion()jdp1999-04-221-1/+0
| | | | | | | function. It was an ill-considered feature. It didn't solve the problem I wanted it to solve. And it added Yet Another Version Number that would have to be maintained at every release point. I'm nuking it now before anybody grows too fond of it.
* Add a new function dlversion() which returns the version number ofjdp1999-04-071-1/+2
| | | | | | the dynamic linker in the same form as __FreeBSD_version. This is mainly intended for checking the dynamic linker version during a make world.
* Replace bogus "@(#)err.h 8.1 (Berkeley) 6/2/93" with RCS Id keyword.jdp1998-02-111-1/+1
| | | | | Somebody must have blindly copied the leader comment when they created this file.
* Remove the include of <dlfcn.h> from crt0.c; it is not needed nowjdp1998-02-111-0/+71
that the dl* trampolines have been moved into libc. Move dlfcn.h from src/lib/csu/i386 into src/include. Nothing in src/lib/csu/i386 uses it any more.
OpenPOWER on IntegriCloud