Deleted Added
full compact
dlfcn.h (205606) dlfcn.h (229768)
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/include/dlfcn.h 205606 2010-03-24 15:59:51Z gahr $
29 * $FreeBSD: head/include/dlfcn.h 229768 2012-01-07 10:33:01Z kib $
30 */
31
32#ifndef _DLFCN_H_
33#define _DLFCN_H_
34
35#include <sys/_types.h>
36
37/*

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

113__BEGIN_DECLS
114/* XSI functions first. */
115int dlclose(void *);
116char *dlerror(void);
117void *dlopen(const char *, int);
118void *dlsym(void * __restrict, const char * __restrict);
119
120#if __BSD_VISIBLE
30 */
31
32#ifndef _DLFCN_H_
33#define _DLFCN_H_
34
35#include <sys/_types.h>
36
37/*

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

113__BEGIN_DECLS
114/* XSI functions first. */
115int dlclose(void *);
116char *dlerror(void);
117void *dlopen(const char *, int);
118void *dlsym(void * __restrict, const char * __restrict);
119
120#if __BSD_VISIBLE
121void *fdlopen(int, int);
121int dladdr(const void * __restrict, Dl_info * __restrict);
122dlfunc_t dlfunc(void * __restrict, const char * __restrict);
123int dlinfo(void * __restrict, int, void * __restrict);
124void dllockinit(void *_context,
125 void *(*_lock_create)(void *_context),
126 void (*_rlock_acquire)(void *_lock),
127 void (*_wlock_acquire)(void *_lock),
128 void (*_lock_release)(void *_lock),
129 void (*_lock_destroy)(void *_lock),
130 void (*_context_destroy)(void *_context));
131void *dlvsym(void * __restrict, const char * __restrict,
132 const char * __restrict);
133#endif /* __BSD_VISIBLE */
134__END_DECLS
135
136#endif /* !_DLFCN_H_ */
122int dladdr(const void * __restrict, Dl_info * __restrict);
123dlfunc_t dlfunc(void * __restrict, const char * __restrict);
124int dlinfo(void * __restrict, int, void * __restrict);
125void dllockinit(void *_context,
126 void *(*_lock_create)(void *_context),
127 void (*_rlock_acquire)(void *_lock),
128 void (*_wlock_acquire)(void *_lock),
129 void (*_lock_release)(void *_lock),
130 void (*_lock_destroy)(void *_lock),
131 void (*_context_destroy)(void *_context));
132void *dlvsym(void * __restrict, const char * __restrict,
133 const char * __restrict);
134#endif /* __BSD_VISIBLE */
135__END_DECLS
136
137#endif /* !_DLFCN_H_ */