Deleted Added
full compact
dlfcn.h (90174) dlfcn.h (93032)
1/*
2 * Copyright (c) 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*
2 * Copyright (c) 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: head/include/dlfcn.h 90172 2002-02-04 10:33:48Z sobomax $
33 * $FreeBSD: head/include/dlfcn.h 93032 2002-03-23 17:24:55Z imp $
34 */
35
36#ifndef _DLFCN_H_
37#define _DLFCN_H_
38#include <sys/cdefs.h>
39
40/*
41 * Modes and flags for dlopen().

--- 17 unchanged lines hidden (view full) ---

59typedef struct dl_info {
60 const char *dli_fname; /* Pathname of shared object */
61 void *dli_fbase; /* Base address of shared object */
62 const char *dli_sname; /* Name of nearest symbol */
63 void *dli_saddr; /* Address of nearest symbol */
64} Dl_info;
65
66__BEGIN_DECLS
34 */
35
36#ifndef _DLFCN_H_
37#define _DLFCN_H_
38#include <sys/cdefs.h>
39
40/*
41 * Modes and flags for dlopen().

--- 17 unchanged lines hidden (view full) ---

59typedef struct dl_info {
60 const char *dli_fname; /* Pathname of shared object */
61 void *dli_fbase; /* Base address of shared object */
62 const char *dli_sname; /* Name of nearest symbol */
63 void *dli_saddr; /* Address of nearest symbol */
64} Dl_info;
65
66__BEGIN_DECLS
67int dladdr __P((const void *, Dl_info *));
68int dlclose __P((void *));
69const char *dlerror __P((void));
70void dllockinit __P((void *_context,
71 void *(*_lock_create)(void *_context),
72 void (*_rlock_acquire)(void *_lock),
73 void (*_wlock_acquire)(void *_lock),
74 void (*_lock_release)(void *_lock),
75 void (*_lock_destroy)(void *_lock),
76 void (*_context_destroy)(void *_context)));
77void *dlopen __P((const char *, int));
78void *dlsym __P((void *, const char *));
67int dladdr(const void *, Dl_info *);
68int dlclose(void *);
69const char *dlerror(void);
70void dllockinit(void *_context,
71 void *(*_lock_create)(void *_context),
72 void (*_rlock_acquire)(void *_lock),
73 void (*_wlock_acquire)(void *_lock),
74 void (*_lock_release)(void *_lock),
75 void (*_lock_destroy)(void *_lock),
76 void (*_context_destroy)(void *_context));
77void *dlopen(const char *, int);
78void *dlsym(void *, const char *);
79__END_DECLS
80
81#endif /* !_DLFCN_H_ */
79__END_DECLS
80
81#endif /* !_DLFCN_H_ */