summaryrefslogtreecommitdiffstats
path: root/ldso/include/dlfcn.h
blob: 03afd34fbda6350342054aa154a47f04c380df73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* vi: set sw=4 ts=4: */
/*
 * Copyright (C) 2000-2005 by Erik Andersen <andersen@codepoet.org>
 *
 * GNU Lesser General Public License version 2.1 or later.
 */

/* User functions for run-time dynamic loading.  libdl version */
#ifndef	_DLFCN_H
#define	_DLFCN_H 1

#include <features.h>
#include <bits/dlfcn.h>

#define RTLD_NEXT	((void *) -1l)
#define RTLD_DEFAULT	((void *) 0)

/* Structure containing information about object searched using
   `dladdr'.  */
typedef struct
{
	__const char *dli_fname;  /* File name of defining object.  */
	void *dli_fbase;          /* Load address of that object.  */
	__const char *dli_sname;  /* Name of nearest symbol.  */
	void *dli_saddr;          /* Exact value of nearest symbol.  */
} Dl_info;

#endif	/* _DLFCN_H */