summaryrefslogtreecommitdiff
path: root/include/dlfcn.h
AgeCommit message (Collapse)Author
2003-07-01Remove reference to dlinfo - it doesn't exist in NetBSD.skrll
2003-05-30Add RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT, from FreeBSDchristos
2003-04-28Add a new feature-test macro, _NETBSD_SOURCE. If this is definedbjh21
by the application, all NetBSD interfaces are made visible, even if some other feature-test macro (like _POSIX_C_SOURCE) is defined. <sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE, _POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve existing behaviour. This has two major advantages: + Programs that require non-POSIX facilities but define _POSIX_C_SOURCE can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS. + It makes most of the #ifs simpler, in that they're all now ORs of the various macros, rather than having checks for (!defined(_ANSI_SOURCE) || !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place. I've tried not to change the semantics of the headers in any case where _NETBSD_SOURCE wasn't defined, but there were some places where the current semantics were clearly mad, and retaining them was harder than correcting them. In particular, I've mostly normalised things so that _ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE, _XOPEN_SOURCE and _NETBSD_SOURCE in that order. Tested by building for vax, encouraged by thorpej, and uncontested in tech-userlevel for a week.
2000-06-13Remove 'extern' from function declarations.simonb
2000-02-11Const'ify dli_saddr in struct _dl_info.thorpej
2000-02-08change first argument of dladdr to const.scottb
1999-05-19Declare dlerror()'s return value __aconst.kleink
1998-09-05Assign my copyright to the TNF.pk
1998-07-14Change ld.so default behavior to RTLD_LOCAL, and make RTLD_LOCAL into atv
new flag bit. Keep RTLD_GLOBAL as an actual flag bit so it won't be re-used, or may be used for something later. Mask the dlopen() mode bits in ld.elf_so so a comparison against RTLD_NOW works. (RTLD_{LOCAL,GLOBAL} needs to be implemented for ld.elf_so.)
1998-05-12Add dladdr() and `Dl_info' structure; interface cloned from Solaris 2.pk
1998-05-06Per XSH98, define the RTLD_LOCAL flag. In this implementation it's a NOP,kleink
since non-local searches have to be explicitly enabled via RTLD_GLOBAL.
1998-03-25Protect the dlctl() prototype and the DL_* macros against _XOPEN_SOURCE;kleink
they are neither specified by the XPG nor part of the name space reserved for implementation-defined use.
1998-03-15Define RTLD_GLOBAL.pk
1997-01-02Add `const' to dlopen() & dlsym() protos, per PR#2453.pk
Add RTLD_NOW.
1995-06-05{BEGIN,END}DECLSpk
1995-06-05Put dlopen() et.al. declarations in separate header file for compatibility.pk